We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 731c002 commit a0c3880Copy full SHA for a0c3880
compiler/rustc_middle/src/ty/query.rs
@@ -176,18 +176,6 @@ macro_rules! opt_remap_env_constness {
176
};
177
}
178
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
-
191
macro_rules! define_callbacks {
192
(
193
$($(#[$attr:meta])*
@@ -372,7 +360,7 @@ macro_rules! define_feedable {
372
360
tcx,
373
361
key,
374
362
&value,
375
- hash_result!([$($modifiers)*]).unwrap(),
363
+ dep_graph::hash_result,
376
364
);
377
365
cache.complete(key, value, dep_node_index)
378
366
})*
0 commit comments