@@ -104,7 +104,6 @@ enum Scope<'a> {
104
104
RegisteredAttrs ,
105
105
MacroUsePrelude ,
106
106
BuiltinAttrs ,
107
- LegacyPluginHelpers ,
108
107
ExternPrelude ,
109
108
ToolPrelude ,
110
109
StdLibPrelude ,
@@ -1462,9 +1461,6 @@ impl<'a> Resolver<'a> {
1462
1461
// 4b. "Standard library prelude" part implemented through `macro-use` (closed, controlled).
1463
1462
// 4c. Standard library prelude (de-facto closed, controlled).
1464
1463
// 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).
1468
1464
1469
1465
let rust_2015 = ident. span . rust_2015 ( ) ;
1470
1466
let ( ns, is_absolute_path) = match scope_set {
@@ -1491,7 +1487,6 @@ impl<'a> Resolver<'a> {
1491
1487
Scope :: RegisteredAttrs => use_prelude,
1492
1488
Scope :: MacroUsePrelude => use_prelude || rust_2015,
1493
1489
Scope :: BuiltinAttrs => true ,
1494
- Scope :: LegacyPluginHelpers => use_prelude || rust_2015,
1495
1490
Scope :: ExternPrelude => use_prelude || is_absolute_path,
1496
1491
Scope :: ToolPrelude => use_prelude,
1497
1492
Scope :: StdLibPrelude => use_prelude || ns == MacroNS ,
@@ -1540,8 +1535,7 @@ impl<'a> Resolver<'a> {
1540
1535
}
1541
1536
Scope :: RegisteredAttrs => Scope :: MacroUsePrelude ,
1542
1537
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
1545
1539
Scope :: ExternPrelude if is_absolute_path => break ,
1546
1540
Scope :: ExternPrelude => Scope :: ToolPrelude ,
1547
1541
Scope :: ToolPrelude => Scope :: StdLibPrelude ,
0 commit comments