diff options
| author | bors <bors@rust-lang.org> | 2021-07-05 02:05:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-05 02:05:04 +0000 |
| commit | 44860d13fa866d002a5f29a4684dad29ff268af9 (patch) | |
| tree | 0e4a4234e0b94719a91d88827d4baf05d9ac292b | |
| parent | 5efa4c0555ef2879d9cb5d9e0d247ee767e2fa10 (diff) | |
| parent | 93882e439655447a41970fd770bf634f90fef182 (diff) | |
| download | rust-44860d13fa866d002a5f29a4684dad29ff268af9.tar.gz rust-44860d13fa866d002a5f29a4684dad29ff268af9.zip | |
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`
| -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()) } |
