Skip to content

Commit 76d573b

Browse files
committed
Add info for no_hash panic.
1 parent 6e4971d commit 76d573b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ where
412412
if let Some((cached_result, _)) = cache.lookup(&key) {
413413
let Some(hasher) = query.hash_result() else {
414414
panic!(
415-
"fed query later has its value computed. The already cached value: {}",
415+
"no_hash fed query later has its value computed.\n\
416+
Remove `no_hash` modifier to allow recomputation.\n\
417+
The already cached value: {}",
416418
(query.format_value())(&cached_result)
417419
);
418420
};

0 commit comments

Comments
 (0)