Skip to content

Commit

Permalink
auto merge of #6654 : sanxiyn/rust/accurate-span-2, r=bstrie
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed May 21, 2013
2 parents dc7b83d + 258d20e commit 808aada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/middle/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5125,7 +5125,7 @@ pub impl Resolver {
view_path_simple(_, _, id) | view_path_glob(_, id) => {
if !self.used_imports.contains(&id) {
self.session.add_lint(unused_imports,
id, vi.span,
id, p.span,
~"unused import");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ pub impl Parser {
ex = expr_vec(~[first_expr], mutbl);
}
}
hi = self.span.hi;
hi = self.last_span.hi;
} else if self.eat_keyword("__log") {
// LOG expression
self.expect(&token::LPAREN);
Expand Down

0 comments on commit 808aada

Please sign in to comment.