Skip to content

Commit 3a01d0f

Browse files
committed
rebasing fixes
1 parent 74db87b commit 3a01d0f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/libsyntax/ast_map/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use ast_util::PostExpansionMethod;
1515
use codemap::{DUMMY_SP, Span, Spanned};
1616
use fold::Folder;
1717
use parse::token;
18-
use parse::ParseSess;
1918
use print::pprust;
2019
use visit::{mod, Visitor};
2120

@@ -251,7 +250,6 @@ pub struct Map<'ast> {
251250
}
252251

253252
impl<'ast> Map<'ast> {
254-
impl Map {
255253
fn entry_count(&self) -> uint {
256254
self.map.borrow().len()
257255
}

src/libsyntax/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use parse::attr::ParserAttr;
1717
use parse::parser::Parser;
1818
use ptr::P;
1919

20-
use std::cell::RefCell;
20+
use std::cell::{Cell, RefCell};
2121
use std::io::File;
2222
use std::rc::Rc;
2323
use std::str;

src/libsyntax/show_span.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)