diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-07-05 01:22:33 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-07-05 01:22:33 +0900 |
| commit | 93882e439655447a41970fd770bf634f90fef182 (patch) | |
| tree | fa0fc28d2eff7753dba99fc7f7fcc375539de815 | |
| parent | 308fc2322bf00b5dc12454489679de1420320f56 (diff) | |
| download | rust-93882e439655447a41970fd770bf634f90fef182.tar.gz rust-93882e439655447a41970fd770bf634f90fef182.zip | |
Convert `debug_assert!` to `assert!` in `Binder::dummy`
This is needed for #85350 not to be passed.
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 73f0811a504..6a7e349819a 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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()) } |
