diff options
| author | Ali Bektas <bektasali@protonmail.com> | 2024-02-26 14:35:54 +0100 |
|---|---|---|
| committer | Ali Bektas <bektasali@protonmail.com> | 2024-03-06 19:55:04 +0100 |
| commit | a15cc86c640a3db70138b8cd067f9a36d6d39d41 (patch) | |
| tree | e1d12fb50a8def5b7d7c5e1288e960838d3c4073 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ce15e73a8ece3cf9e7958bbad3aedb03daa10135 (diff) | |
| download | rust-a15cc86c640a3db70138b8cd067f9a36d6d39d41.tar.gz rust-a15cc86c640a3db70138b8cd067f9a36d6d39d41.zip | |
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 the rust-analyzer.toml files that can be placed under 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
