Add info for no_hash panic.

This commit is contained in:
Camille GILLOT 2023-04-20 18:56:12 +00:00
parent 6e4971d96f
commit 76d573b656

View File

@ -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)
);
};