]> git.lizzy.rs Git - rust.git/commitdiff
rebasing fixes
authorNick Cameron <ncameron@mozilla.com>
Tue, 16 Sep 2014 23:58:11 +0000 (11:58 +1200)
committerNick Cameron <ncameron@mozilla.com>
Wed, 17 Sep 2014 04:53:20 +0000 (16:53 +1200)
src/libsyntax/ast_map/mod.rs
src/libsyntax/parse/mod.rs
src/libsyntax/show_span.rs

index 9576cf26f5880dd6574578b1855a5da3eb3f850c..ed0b8700bf374dc5f7160426c778b80748bd3944 100644 (file)
@@ -15,7 +15,6 @@
 use codemap::{DUMMY_SP, Span, Spanned};
 use fold::Folder;
 use parse::token;
-use parse::ParseSess;
 use print::pprust;
 use visit::{mod, Visitor};
 
@@ -251,7 +250,6 @@ pub struct Map<'ast> {
 }
 
 impl<'ast> Map<'ast> {
-impl Map {
     fn entry_count(&self) -> uint {
         self.map.borrow().len()
     }
index 506b607d02c5daa18da0e1a2f62b3a46e16cca6e..d73cb2116941a4e2151d4aba256585bb9c1a038f 100644 (file)
@@ -17,7 +17,7 @@
 use parse::parser::Parser;
 use ptr::P;
 
-use std::cell::RefCell;
+use std::cell::{Cell, RefCell};
 use std::io::File;
 use std::rc::Rc;
 use std::str;
index 4036ab04aa908ba3bbe2ecf26cd3cf9d50ef19b7..354ba854b101aa7906f2d9131d8aa3c9a4134ba3 100644 (file)
@@ -22,10 +22,10 @@ struct ShowSpanVisitor<'a> {
     span_diagnostic: &'a diagnostic::SpanHandler,
 }
 
-impl<'a> Visitor<()> for ShowSpanVisitor<'a> {
-    fn visit_expr(&mut self, e: &ast::Expr, _: ()) {
+impl<'a, 'v> Visitor<'v> for ShowSpanVisitor<'a> {
+    fn visit_expr(&mut self, e: &ast::Expr) {
         self.span_diagnostic.span_note(e.span, "expression");
-        visit::walk_expr(self, e, ());
+        visit::walk_expr(self, e);
     }
 
     fn visit_mac(&mut self, macro: &ast::Mac) {