]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy/clippy_lints/src/needless_pass_by_value.rs
Rollup merge of #106175 - compiler-errors:bad-import-sugg, r=oli-obk
authorYuki Okushi <huyuumi.dev+love@gmail.com>
Mon, 9 Jan 2023 23:05:34 +0000 (08:05 +0900)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 23:05:34 +0000 (08:05 +0900)
commit684a3717cb78ef8a8c3182b0b2ef630dadb7c4aa
treec4d8e34ecdfb95eafa1a9f4b09611e03f1090caf
parent5773e8baf017956849f821d5c85837ca1162b4ae
parent1d66a675bb61c21555dcb848ed7378b6f2848de7
Rollup merge of #106175 - compiler-errors:bad-import-sugg, r=oli-obk

Fix bad import suggestion with nested `use` tree

Fixes #105566
Fixes #105373

Ideally, we'd find some way to turn these into structured suggestions -- perhaps on a separate line as a different `use` statement, but I have no idea how to access the span for the whole `use` from this point in the import resolution code.