Skip to content

Commit 0ed6c61

Browse files
committed
Use sym::dummy in one more place.
It makes it clearer that the symbol is unused and doesn't matter.
1 parent 217693a commit 0ed6c61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_resolve/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
10911091
));
10921092
}
10931093
Scope::BuiltinAttrs => {
1094-
let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(kw::Empty));
1094+
let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(sym::dummy));
10951095
if filter_fn(res) {
10961096
suggestions.extend(
10971097
BUILTIN_ATTRIBUTES

compiler/rustc_span/src/hygiene.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,8 @@ pub fn decode_syntax_context<D: Decoder, F: FnOnce(&mut D, u32) -> SyntaxContext
14391439
}
14401440
}
14411441
Entry::Vacant(entry) => {
1442-
// We are the first thread to start decoding. Mark the current thread as being progress.
1442+
// We are the first thread to start decoding. Mark the current thread as being
1443+
// progress.
14431444
context.local_in_progress.borrow_mut().insert(raw_id);
14441445

14451446
// Allocate and store SyntaxContext id *before* calling the decoder function,

0 commit comments

Comments
 (0)