diff options
| author | bors <bors@rust-lang.org> | 2025-03-24 15:02:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-24 15:02:09 +0000 |
| commit | 4510e86a41388733675465a8647d4235f3bf2023 (patch) | |
| tree | c851d1e39a4cdf96f7ed110856055084a8b27926 /compiler/rustc_middle/src/dep_graph/dep_node.rs | |
| parent | 90f5eab952728ac6edcf529a171f7de5c25e5d49 (diff) | |
| parent | 2736a2a84f972baabe4012f890aaae14489af8d9 (diff) | |
| download | rust-4510e86a41388733675465a8647d4235f3bf2023.tar.gz rust-4510e86a41388733675465a8647d4235f3bf2023.zip | |
Auto merge of #138629 - Zoxc:graph-anon-hashmap, r=oli-obk
Only use the new node hashmap for anonymous nodes This is a rebase of https://github.com/rust-lang/rust/pull/112469. cc `@cjgillot`
Diffstat (limited to 'compiler/rustc_middle/src/dep_graph/dep_node.rs')
| -rw-r--r-- | compiler/rustc_middle/src/dep_graph/dep_node.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/dep_graph/dep_node.rs b/compiler/rustc_middle/src/dep_graph/dep_node.rs index f967d8b92c7..be34c7ef4bd 100644 --- a/compiler/rustc_middle/src/dep_graph/dep_node.rs +++ b/compiler/rustc_middle/src/dep_graph/dep_node.rs @@ -21,6 +21,15 @@ macro_rules! define_dep_nodes { ($mod:ident) => {[ $($mod::$variant()),* ]}; } + #[macro_export] + macro_rules! make_dep_kind_name_array { + ($mod:ident) => { + vec! { + $(*$mod::$variant().name),* + } + }; + } + /// This enum serves as an index into arrays built by `make_dep_kind_array`. // This enum has more than u8::MAX variants so we need some kind of multi-byte // encoding. The derived Encodable/Decodable uses leb128 encoding which is |
