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;
1515use codemap:: { DUMMY_SP , Span , Spanned } ;
1616use fold:: Folder ;
1717use parse:: token;
18- use parse:: ParseSess ;
1918use print:: pprust;
2019use visit:: { mod, Visitor } ;
2120
@@ -251,7 +250,6 @@ pub struct Map<'ast> {
251250}
252251
253252impl < ' ast > Map < ' ast > {
254- impl Map {
255253 fn entry_count ( & self ) -> uint {
256254 self . map . borrow ( ) . len ( )
257255 }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use parse::attr::ParserAttr;
1717use parse:: parser:: Parser ;
1818use ptr:: P ;
1919
20- use std:: cell:: RefCell ;
20+ use std:: cell:: { Cell , RefCell } ;
2121use std:: io:: File ;
2222use std:: rc:: Rc ;
2323use std:: str;
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ struct ShowSpanVisitor<'a> {
2222 span_diagnostic : & ' a diagnostic:: SpanHandler ,
2323}
2424
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 ) {
2727 self . span_diagnostic . span_note ( e. span , "expression" ) ;
28- visit:: walk_expr ( self , e, ( ) ) ;
28+ visit:: walk_expr ( self , e) ;
2929 }
3030
3131 fn visit_mac ( & mut self , macro : & ast:: Mac ) {
You can’t perform that action at this time.
0 commit comments