Skip to content

Commit 9f7eab4

Browse files
committed
Use ty::Binder::bind to fix debug-assertions ICEs
1 parent fb4d627 commit 9f7eab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/bounds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<'tcx> Bounds<'tcx> {
7272
.iter()
7373
.map(|&(region_bound, span)| {
7474
let outlives = ty::OutlivesPredicate(param_ty, region_bound);
75-
(ty::Binder::dummy(outlives).to_predicate(tcx), span)
75+
(ty::Binder::bind(outlives).to_predicate(tcx), span)
7676
})
7777
.chain(self.trait_bounds.iter().map(|&(bound_trait_ref, span, constness)| {
7878
let predicate = bound_trait_ref.with_constness(constness).to_predicate(tcx);

0 commit comments

Comments
 (0)