]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 30 Oct 2021 18:30:27 +0000 (20:30 +0200)
committerGitHub <noreply@github.com>
Sat, 30 Oct 2021 18:30:27 +0000 (20:30 +0200)
commit1a1f525bb0d9897673b2445122ffd6f7aa265c9e
tree6cf7640d023116647df7bb1ae3bb0fdbef1924f9
parent73494404e962f4d61e65e5e204432de5a5128101
parenta76a2d4ef986ec69e4ffb81c35dfb8dc91effee9
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov

Improve and test cross-crate hygiene

- Decode the parent expansion for traits and enums in `rustc_resolve`, this was already being used for resolution in typeck
- Avoid suggesting importing names with def-site hygiene, since it's often not useful
- Add more tests

r? `@petrochenkov`
compiler/rustc_resolve/src/diagnostics.rs