mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
Correct span for unused_import
This commit is contained in:
parent
9390cdaa8b
commit
258d20ea84
@ -5121,7 +5121,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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user