1
Fork 0

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:
Matthias Krüger 2025-01-14 07:56:24 +01:00 committed by GitHub
commit 62f2c3c75c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 43 deletions

View file

@ -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)*]),
);