File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ use ast_util::PostExpansionMethod;
15
15
use codemap:: { DUMMY_SP , Span , Spanned } ;
16
16
use fold:: Folder ;
17
17
use parse:: token;
18
- use parse:: ParseSess ;
19
18
use print:: pprust;
20
19
use visit:: { mod, Visitor } ;
21
20
@@ -251,7 +250,6 @@ pub struct Map<'ast> {
251
250
}
252
251
253
252
impl < ' ast > Map < ' ast > {
254
- impl Map {
255
253
fn entry_count ( & self ) -> uint {
256
254
self . map . borrow ( ) . len ( )
257
255
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use parse::attr::ParserAttr;
17
17
use parse:: parser:: Parser ;
18
18
use ptr:: P ;
19
19
20
- use std:: cell:: RefCell ;
20
+ use std:: cell:: { Cell , RefCell } ;
21
21
use std:: io:: File ;
22
22
use std:: rc:: Rc ;
23
23
use std:: str;
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ struct ShowSpanVisitor<'a> {
22
22
span_diagnostic : & ' a diagnostic:: SpanHandler ,
23
23
}
24
24
25
- impl < ' a > Visitor < ( ) > for ShowSpanVisitor < ' a > {
26
- fn visit_expr ( & mut self , e : & ast:: Expr , _ : ( ) ) {
25
+ impl < ' a , ' v > Visitor < ' v > for ShowSpanVisitor < ' a > {
26
+ fn visit_expr ( & mut self , e : & ast:: Expr ) {
27
27
self . span_diagnostic . span_note ( e. span , "expression" ) ;
28
- visit:: walk_expr ( self , e, ( ) ) ;
28
+ visit:: walk_expr ( self , e) ;
29
29
}
30
30
31
31
fn visit_mac ( & mut self , macro : & ast:: Mac ) {
You can’t perform that action at this time.
0 commit comments