Skip to content

Commit

Permalink
Auto merge of rust-lang#86867 - JohnTitor:convert-to-actual-assert, r…
Browse files Browse the repository at this point in the history
…=jackh726

Convert `debug_assert!` to `assert!` in `Binder::dummy`

This is needed for rust-lang#85350 not to be passed.
r? `@jackh726`
  • Loading branch information
bors committed Jul 5, 2021
2 parents 5efa4c0 + 93882e4 commit 44860d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 44860d1

Please sign in to comment.