Skip to content

Commit 3db82d1

Browse files
committed
Fix bug in new stall checking code, it should consider integer variables
too.
1 parent 20e088c commit 3db82d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/traits/fulfill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ fn process_predicate1<'a,'tcx>(selcx: &mut SelectionContext<'a,'tcx>,
396396
.map(|t| selcx.infcx().resolve_type_vars_if_possible(t))
397397
.filter(|t| t.has_infer_types())
398398
.flat_map(|t| t.walk())
399-
.filter(|t| t.is_ty_var())
399+
.filter(|t| match t.sty { ty::TyInfer(_) => true, _ => false })
400400
.collect();
401401

402402
debug!("process_predicate: pending obligation {:?} now stalled on {:?}",

0 commit comments

Comments
 (0)