Skip to content

Commit 93882e4

Browse files
committed
Convert debug_assert! to assert! in Binder::dummy
This is needed for rust-lang#85350 not to be passed.
1 parent 308fc23 commit 93882e4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ where
965965
/// binder. This is commonly used to 'inject' a value T into a
966966
/// different binding level.
967967
pub fn dummy(value: T) -> Binder<'tcx, T> {
968-
debug_assert!(!value.has_escaping_bound_vars());
968+
assert!(!value.has_escaping_bound_vars());
969969
Binder(value, ty::List::empty())
970970
}
971971

0 commit comments

Comments
 (0)