13
13
14
14
use garando_syntax as syntax;
15
15
16
- use std:: cell:: RefCell ;
17
16
use std:: collections:: { HashMap , HashSet } ;
18
17
use std:: env;
19
18
use std:: fs:: File ;
@@ -2431,11 +2430,9 @@ impl<'a> Resolver for MyResolver<'a> {
2431
2430
2432
2431
fn visit_expansion ( & mut self , _invoc : Mark , expansion : & Expansion , _derives : & [ Mark ] ) {
2433
2432
if let Expansion :: Items ( ref items) = expansion {
2434
- let features = RefCell :: new ( Features :: new ( ) ) ;
2435
2433
for item in items. iter ( ) {
2436
2434
MyVisitor {
2437
2435
parse_sess : self . parse_sess ,
2438
- features : & features,
2439
2436
map : & mut self . map ,
2440
2437
}
2441
2438
. visit_item ( item) ;
@@ -2517,7 +2514,6 @@ impl Folder for StripUnchecked {
2517
2514
2518
2515
struct MyVisitor < ' b > {
2519
2516
parse_sess : & ' b ParseSess ,
2520
- features : & ' b RefCell < Features > ,
2521
2517
map : & ' b mut HashMap < Name , Rc < SyntaxExtension > > ,
2522
2518
}
2523
2519
@@ -2526,7 +2522,7 @@ impl<'a, 'b> Visitor<'a> for MyVisitor<'b> {
2526
2522
if let ast:: ItemKind :: MacroDef ( ..) = item. node {
2527
2523
self . map . insert (
2528
2524
item. ident . name ,
2529
- Rc :: new ( macro_rules:: compile ( self . parse_sess , self . features , item) ) ,
2525
+ Rc :: new ( macro_rules:: compile ( self . parse_sess , item) ) ,
2530
2526
) ;
2531
2527
}
2532
2528
visit:: walk_item ( self , item) ;
0 commit comments