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:
parent
0b45675cfc
commit
a6a6d01bbc
2 changed files with 3 additions and 2 deletions
|
@ -1091,7 +1091,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
|
|||
));
|
||||
}
|
||||
Scope::BuiltinAttrs => {
|
||||
let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(kw::Empty));
|
||||
let res = Res::NonMacroAttr(NonMacroAttrKind::Builtin(sym::dummy));
|
||||
if filter_fn(res) {
|
||||
suggestions.extend(
|
||||
BUILTIN_ATTRIBUTES
|
||||
|
|
|
@ -1440,7 +1440,8 @@ pub fn decode_syntax_context<D: Decoder, F: FnOnce(&mut D, u32) -> SyntaxContext
|
|||
}
|
||||
}
|
||||
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);
|
||||
|
||||
// Allocate and store SyntaxContext id *before* calling the decoder function,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue