Skip to content

Commit 44860d1

Browse files
committed
Auto merge of rust-lang#86867 - JohnTitor:convert-to-actual-assert, r=jackh726
Convert `debug_assert!` to `assert!` in `Binder::dummy` This is needed for rust-lang#85350 not to be passed. r? `@jackh726`
2 parents 5efa4c0 + 93882e4 commit 44860d1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: 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)