mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Add info for no_hash panic.
This commit is contained in:
parent
6e4971d96f
commit
76d573b656
@ -412,7 +412,9 @@ where
|
||||
if let Some((cached_result, _)) = cache.lookup(&key) {
|
||||
let Some(hasher) = query.hash_result() else {
|
||||
panic!(
|
||||
"fed query later has its value computed. The already cached value: {}",
|
||||
"no_hash fed query later has its value computed.\n\
|
||||
Remove `no_hash` modifier to allow recomputation.\n\
|
||||
The already cached value: {}",
|
||||
(query.format_value())(&cached_result)
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user