Skip to content

Commit a6a6d01

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 0b45675 commit a6a6d01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_resolve/src/diagnostics.rs

+1-1
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

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

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

0 commit comments

Comments
 (0)