]> git.lizzy.rs Git - rust.git/commit
rustc: Fix another double-lint issue with `crate::`
authorAlex Crichton <alex@alexcrichton.com>
Tue, 22 May 2018 22:34:30 +0000 (15:34 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 22 May 2018 22:59:51 +0000 (15:59 -0700)
commite39c9592948995569ca09a69cdafe1f6035f9364
treef34159b0fc9b4745a4d7e462246cd0e46f9a9e1e
parentd034ae53c43352b06341455fb1394cb5d4069999
rustc: Fix another double-lint issue with `crate::`

This commit fixes another issue in the `absolute_path_not_starting_with_crate`
lint where it warns twice about an import which may contain `self`. It turns out
there were a few more locations that needed updating to use `root_id` and
`root_span` introduced in #50970 and after that it looks to work like a charm!

Closes #50978
src/librustc_resolve/resolve_imports.rs
src/test/ui/rust-2018/edition-lint-nested-paths.fixed
src/test/ui/rust-2018/edition-lint-nested-paths.rs
src/test/ui/rust-2018/edition-lint-nested-paths.stderr
src/test/ui/rust-2018/edition-lint-paths.fixed
src/test/ui/rust-2018/edition-lint-paths.rs
src/test/ui/rust-2018/edition-lint-paths.stderr