diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-11-27 10:28:28 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-11-29 18:46:06 +0000 |
| commit | a0c38807cf5567cd380e80aa7c3ec8611d7e6604 (patch) | |
| tree | 15e476ee2d902cfcff07f8160a413989870f63a4 | |
| parent | 731c002b2754bb028fcd28019a441cd962313f82 (diff) | |
| download | rust-a0c38807cf5567cd380e80aa7c3ec8611d7e6604.tar.gz rust-a0c38807cf5567cd380e80aa7c3ec8611d7e6604.zip | |
Feedable queries must allow hashing.
| -rw-r--r-- | compiler/rustc_middle/src/ty/query.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/compiler/rustc_middle/src/ty/query.rs b/compiler/rustc_middle/src/ty/query.rs index ba85d5c8498..ae246c81959 100644 --- a/compiler/rustc_middle/src/ty/query.rs +++ b/compiler/rustc_middle/src/ty/query.rs @@ -176,18 +176,6 @@ macro_rules! opt_remap_env_constness { }; } -macro_rules! hash_result { - ([]) => {{ - Some(dep_graph::hash_result) - }}; - ([(no_hash) $($rest:tt)*]) => {{ - None - }}; - ([$other:tt $($modifiers:tt)*]) => { - hash_result!([$($modifiers)*]) - }; -} - macro_rules! define_callbacks { ( $($(#[$attr:meta])* @@ -372,7 +360,7 @@ macro_rules! define_feedable { tcx, key, &value, - hash_result!([$($modifiers)*]).unwrap(), + dep_graph::hash_result, ); cache.complete(key, value, dep_node_index) })* |
