Turn some asserts into debug_asserts
This commit is contained in:
parent
c66b84457f
commit
8e53ecff6c
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ macro_rules! define_dep_nodes {
|
|||
pub fn from_def_path_hash(kind: DepKind,
|
||||
def_path_hash: DefPathHash)
|
||||
-> DepNode {
|
||||
assert!(kind.can_reconstruct_query_key() && kind.has_params());
|
||||
debug_assert!(kind.can_reconstruct_query_key() && kind.has_params());
|
||||
DepNode {
|
||||
kind,
|
||||
hash: def_path_hash.0,
|
||||
|
@ -326,7 +326,7 @@ macro_rules! define_dep_nodes {
|
|||
/// does not require any parameters.
|
||||
#[inline(always)]
|
||||
pub fn new_no_params(kind: DepKind) -> DepNode {
|
||||
assert!(!kind.has_params_inlined());
|
||||
debug_assert!(!kind.has_params_inlined());
|
||||
DepNode {
|
||||
kind,
|
||||
hash: Fingerprint::ZERO,
|
||||
|
|
Loading…
Reference in a new issue