diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-19 17:39:27 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-19 17:39:34 +0100 |
| commit | c4bcac628cd44e8585a7b45583ae702624d13d63 (patch) | |
| tree | de230bc7ddba27f108ac1fc06a4a23417fbded8e /compiler/rustc_query_system/src/query | |
| parent | 486a38723be407b92d991ccae2b390f84152dfbf (diff) | |
| download | rust-c4bcac628cd44e8585a7b45583ae702624d13d63.tar.gz rust-c4bcac628cd44e8585a7b45583ae702624d13d63.zip | |
Add some assertions
Diffstat (limited to 'compiler/rustc_query_system/src/query')
| -rw-r--r-- | compiler/rustc_query_system/src/query/plumbing.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index a6c464d0972..ba2f859ff0f 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -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) { |
