@@ -104,7 +104,6 @@ enum Scope<'a> {
104104 RegisteredAttrs ,
105105 MacroUsePrelude ,
106106 BuiltinAttrs ,
107- LegacyPluginHelpers ,
108107 ExternPrelude ,
109108 ToolPrelude ,
110109 StdLibPrelude ,
@@ -1462,9 +1461,6 @@ impl<'a> Resolver<'a> {
14621461 // 4b. "Standard library prelude" part implemented through `macro-use` (closed, controlled).
14631462 // 4c. Standard library prelude (de-facto closed, controlled).
14641463 // 6. Language prelude: builtin attributes (closed, controlled).
1465- // 4-6. Legacy plugin helpers (open, not controlled). Similar to derive helpers,
1466- // but introduced by legacy plugins using `register_attribute`. Priority is somewhere
1467- // in prelude, not sure where exactly (creates ambiguities with any other prelude names).
14681464
14691465 let rust_2015 = ident. span . rust_2015 ( ) ;
14701466 let ( ns, is_absolute_path) = match scope_set {
@@ -1491,7 +1487,6 @@ impl<'a> Resolver<'a> {
14911487 Scope :: RegisteredAttrs => use_prelude,
14921488 Scope :: MacroUsePrelude => use_prelude || rust_2015,
14931489 Scope :: BuiltinAttrs => true ,
1494- Scope :: LegacyPluginHelpers => use_prelude || rust_2015,
14951490 Scope :: ExternPrelude => use_prelude || is_absolute_path,
14961491 Scope :: ToolPrelude => use_prelude,
14971492 Scope :: StdLibPrelude => use_prelude || ns == MacroNS ,
@@ -1540,8 +1535,7 @@ impl<'a> Resolver<'a> {
15401535 }
15411536 Scope :: RegisteredAttrs => Scope :: MacroUsePrelude ,
15421537 Scope :: MacroUsePrelude => Scope :: StdLibPrelude ,
1543- Scope :: BuiltinAttrs => Scope :: LegacyPluginHelpers ,
1544- Scope :: LegacyPluginHelpers => break , // nowhere else to search
1538+ Scope :: BuiltinAttrs => break , // nowhere else to search
15451539 Scope :: ExternPrelude if is_absolute_path => break ,
15461540 Scope :: ExternPrelude => Scope :: ToolPrelude ,
15471541 Scope :: ToolPrelude => Scope :: StdLibPrelude ,
0 commit comments