We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
debug_assert!
assert!
Binder::dummy
1 parent 308fc23 commit 93882e4Copy full SHA for 93882e4
compiler/rustc_middle/src/ty/sty.rs
@@ -965,7 +965,7 @@ where
965
/// binder. This is commonly used to 'inject' a value T into a
966
/// different binding level.
967
pub fn dummy(value: T) -> Binder<'tcx, T> {
968
- debug_assert!(!value.has_escaping_bound_vars());
+ assert!(!value.has_escaping_bound_vars());
969
Binder(value, ty::List::empty())
970
}
971
0 commit comments