We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66b844 commit 8e53ecfCopy full SHA for 8e53ecf
src/librustc/dep_graph/dep_node.rs
@@ -314,7 +314,7 @@ macro_rules! define_dep_nodes {
314
pub fn from_def_path_hash(kind: DepKind,
315
def_path_hash: DefPathHash)
316
-> DepNode {
317
- assert!(kind.can_reconstruct_query_key() && kind.has_params());
+ debug_assert!(kind.can_reconstruct_query_key() && kind.has_params());
318
DepNode {
319
kind,
320
hash: def_path_hash.0,
@@ -326,7 +326,7 @@ macro_rules! define_dep_nodes {
326
/// does not require any parameters.
327
#[inline(always)]
328
pub fn new_no_params(kind: DepKind) -> DepNode {
329
- assert!(!kind.has_params_inlined());
+ debug_assert!(!kind.has_params_inlined());
330
331
332
hash: Fingerprint::ZERO,
0 commit comments