diff options
| author | bors <bors@rust-lang.org> | 2023-07-03 14:37:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-03 14:37:55 +0000 |
| commit | 691600a885296bbf34538e2917bc5930f23ad6c4 (patch) | |
| tree | cf724301f762a232373378224d6a855cdd077cdd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 6d616a4fc2f7aebe7fe6841b513fc73be37d0e30 (diff) | |
| parent | 5db0e1a34630b05d19308008d5139b1ff170d69e (diff) | |
| download | rust-691600a885296bbf34538e2917bc5930f23ad6c4.tar.gz rust-691600a885296bbf34538e2917bc5930f23ad6c4.zip | |
Auto merge of #15181 - lowr:patch/import-map-purge-unused, r=Veykril
Clean up `ImportMap` There are several things in `hir_def::import_map` that are never used. This PR removes them and restructures the code. Namely: - Removes `Query::name_only`, because it's *always* true. - Because of this, we never took advantage of storing items' full path. This PR removes `ImportPath` and changes `ImportInfo` to only store items' name, which should reduce the memory consumption to some extent. - Removes `SearchMode::Contains` for `Query` because it's never used. - Merges `Query::assoc_items_only` and `Query::exclude_import_kinds` into `Query::assoc_mode`, because the latter is never used besides filtering associated items out. Best reviewed one commit at a time. I made sure each commit passes full test suite. I can squash the first three commits if needed.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
