diff options
| author | bors <bors@rust-lang.org> | 2024-03-07 10:30:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-07 10:30:08 +0000 |
| commit | a1fda6476ca43a3a76e7280e5810ac5251f42efc (patch) | |
| tree | c60c9a505213844e005d0585d84ae362e6f4932f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 00f6a7aced8252492c0d4e5a4ca3e6da8c7bf378 (diff) | |
| parent | 9c50d129dafe19ecf294fe0862a68e7c39687288 (diff) | |
| download | rust-a1fda6476ca43a3a76e7280e5810ac5251f42efc.tar.gz rust-a1fda6476ca43a3a76e7280e5810ac5251f42efc.zip | |
Auto merge of #16742 - alibektas:13529/source_root_tree, r=Veykril
internal: Implement parent-child relation for `SourceRoot`s This commit adds the said relation by keeping a map of type `FxHashMap<SourceRootId,Option<SourceRootId>>` inside the `GlobalState`. Its primary use case is reading `rust-analyzer.toml`(#13529) files that can be placed in every local source root. As a config will be found by traversing this "tree" we need the parent information for every local source root. This commit omits defining this relation for library source roots entirely.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
