Rollup merge of #135451 - mzacho:code-duplication, r=oli-obk
Remove code duplication when hashing query result and interning node Refactored the duplicated code into a function. `with_feed_task` currently passes the query key to `debug_assert!`. I believe that's a mistake, since `with_task` prints the `DepNode` which is more sensible, so this commit changes that, so it debug prints the `DepNode`.
This commit is contained in:
commit
62f2c3c75c
2 changed files with 36 additions and 43 deletions
|
@ -548,7 +548,6 @@ macro_rules! define_feedable {
|
|||
let dep_node_index = tcx.dep_graph.with_feed_task(
|
||||
dep_node,
|
||||
tcx,
|
||||
key,
|
||||
&value,
|
||||
hash_result!([$($modifiers)*]),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue