mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Auto merge of #86867 - JohnTitor:convert-to-actual-assert, r=jackh726
Convert `debug_assert!` to `assert!` in `Binder::dummy` This is needed for #85350 not to be passed. r? `@jackh726`
This commit is contained in:
commit
44860d13fa
@ -965,7 +965,7 @@ where
|
||||
/// binder. This is commonly used to 'inject' a value T into a
|
||||
/// different binding level.
|
||||
pub fn dummy(value: T) -> Binder<'tcx, T> {
|
||||
debug_assert!(!value.has_escaping_bound_vars());
|
||||
assert!(!value.has_escaping_bound_vars());
|
||||
Binder(value, ty::List::empty())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user