1
Fork 0

Use sym::dummy in one more place.

It makes it clearer that the symbol is unused and doesn't matter.
This commit is contained in:
Nicholas Nethercote 2025-03-26 09:47:46 +11:00
parent 0b45675cfc
commit a6a6d01bbc
2 changed files with 3 additions and 2 deletions

View file

@ -1091,7 +1091,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
)); ));
} }
Scope::BuiltinAttrs => { Scope::BuiltinAttrs => {
let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(kw::Empty)); let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(sym::dummy));
if filter_fn(res) { if filter_fn(res) {
suggestions.extend( suggestions.extend(
BUILTIN_ATTRIBUTES BUILTIN_ATTRIBUTES

View file

@ -1440,7 +1440,8 @@ pub fn decode_syntax_context<D: Decoder, F: FnOnce(&mut D, u32) -> SyntaxContext
} }
} }
Entry::Vacant(entry) => { Entry::Vacant(entry) => {
// We are the first thread to start decoding. Mark the current thread as being progress. // We are the first thread to start decoding. Mark the current thread as being
// progress.
context.local_in_progress.borrow_mut().insert(raw_id); context.local_in_progress.borrow_mut().insert(raw_id);
// Allocate and store SyntaxContext id *before* calling the decoder function, // Allocate and store SyntaxContext id *before* calling the decoder function,