Feedable queries must allow hashing.
This commit is contained in:
parent
731c002b27
commit
a0c38807cf
1 changed files with 1 additions and 13 deletions
|
|
@ -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)
|
||||
})*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue