Skip to content

Commit a0c3880

Browse files
committed
Feedable queries must allow hashing.
1 parent 731c002 commit a0c3880

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

compiler/rustc_middle/src/ty/query.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,6 @@ macro_rules! opt_remap_env_constness {
176176
};
177177
}
178178

179-
macro_rules! hash_result {
180-
([]) => {{
181-
Some(dep_graph::hash_result)
182-
}};
183-
([(no_hash) $($rest:tt)*]) => {{
184-
None
185-
}};
186-
([$other:tt $($modifiers:tt)*]) => {
187-
hash_result!([$($modifiers)*])
188-
};
189-
}
190-
191179
macro_rules! define_callbacks {
192180
(
193181
$($(#[$attr:meta])*
@@ -372,7 +360,7 @@ macro_rules! define_feedable {
372360
tcx,
373361
key,
374362
&value,
375-
hash_result!([$($modifiers)*]).unwrap(),
363+
dep_graph::hash_result,
376364
);
377365
cache.complete(key, value, dep_node_index)
378366
})*

0 commit comments

Comments
 (0)