1
Fork 0

Add some assertions

This commit is contained in:
John Kåre Alsaker 2023-03-19 17:39:27 +01:00
parent 486a38723b
commit c4bcac628c
2 changed files with 3 additions and 0 deletions

View file

@ -429,6 +429,8 @@ where
Q: QueryConfig<Qcx>,
Qcx: QueryContext,
{
debug_assert!(!qcx.dep_context().dep_graph().is_fully_enabled());
// Fingerprint the key, just to assert that it doesn't
// have anything we don't consider hashable
if cfg!(debug_assertions) {