Skip to content

Commit 9ab2a2a

Browse files
committed
Make !is_typeck_child assertion non-debug
1 parent 08115a0 commit 9ab2a2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/rustc_hir_typeck/src

compiler/rustc_hir_typeck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn typeck_with_inspect<'tcx>(
104104
def_id: LocalDefId,
105105
inspector: Option<ObligationInspector<'tcx>>,
106106
) -> &'tcx ty::TypeckResults<'tcx> {
107-
debug_assert!(!tcx.is_typeck_child(def_id.to_def_id()));
107+
assert!(!tcx.is_typeck_child(def_id.to_def_id()));
108108

109109
let id = tcx.local_def_id_to_hir_id(def_id);
110110
let node = tcx.hir_node(id);

0 commit comments

Comments
 (0)