Convert debug_assert!
to assert!
in Binder::dummy
This is needed for #85350 not to be passed.
This commit is contained in:
parent
308fc2322b
commit
93882e4396
@ -965,7 +965,7 @@ where
|
|||||||
/// binder. This is commonly used to 'inject' a value T into a
|
/// binder. This is commonly used to 'inject' a value T into a
|
||||||
/// different binding level.
|
/// different binding level.
|
||||||
pub fn dummy(value: T) -> Binder<'tcx, T> {
|
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())
|
Binder(value, ty::List::empty())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user