Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error

This commit is contained in:
Aaron Hill
2022-10-04 19:02:13 -05:00
parent 1481fd964b
commit 7d82cadd97
6 changed files with 54 additions and 243 deletions

View File

@@ -102,9 +102,7 @@ enum Scope<'a> {
DeriveHelpersCompat,
MacroRules(MacroRulesScopeRef<'a>),
CrateRoot,
// The node ID is for reporting the `PROC_MACRO_DERIVE_RESOLUTION_FALLBACK`
// lint if it should be reported.
Module(Module<'a>, Option<NodeId>),
Module(Module<'a>),
MacroUsePrelude,
BuiltinAttrs,
ExternPrelude,
@@ -1551,7 +1549,7 @@ impl<'a> Resolver<'a> {
self.visit_scopes(ScopeSet::All(TypeNS, false), parent_scope, ctxt, |this, scope, _, _| {
match scope {
Scope::Module(module, _) => {
Scope::Module(module) => {
this.traits_in_module(module, assoc_item, &mut found_traits);
}
Scope::StdLibPrelude => {