Correct span for unused_import

This commit is contained in:
Seo Sanghyeon 2013-05-21 19:09:22 +09:00
parent 9390cdaa8b
commit 258d20ea84

View File

@ -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");
}
}