Skip to content

Commit 8e53ecf

Browse files
committed
Turn some asserts into debug_asserts
1 parent c66b844 commit 8e53ecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/dep_graph/dep_node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ macro_rules! define_dep_nodes {
314314
pub fn from_def_path_hash(kind: DepKind,
315315
def_path_hash: DefPathHash)
316316
-> DepNode {
317-
assert!(kind.can_reconstruct_query_key() && kind.has_params());
317+
debug_assert!(kind.can_reconstruct_query_key() && kind.has_params());
318318
DepNode {
319319
kind,
320320
hash: def_path_hash.0,
@@ -326,7 +326,7 @@ macro_rules! define_dep_nodes {
326326
/// does not require any parameters.
327327
#[inline(always)]
328328
pub fn new_no_params(kind: DepKind) -> DepNode {
329-
assert!(!kind.has_params_inlined());
329+
debug_assert!(!kind.has_params_inlined());
330330
DepNode {
331331
kind,
332332
hash: Fingerprint::ZERO,

0 commit comments

Comments
 (0)