]> git.lizzy.rs Git - rust.git/commitdiff
Fix bug in new stall checking code, it should consider integer variables
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 5 Jan 2016 10:29:40 +0000 (05:29 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 16 Jan 2016 10:22:32 +0000 (05:22 -0500)
too.

src/librustc/middle/traits/fulfill.rs

index a13cc141608d5ea74a62c4eabdf94252d17c6620..97656ecf6ae8e212c9807bb3030e54801797ffc4 100644 (file)
@@ -396,7 +396,7 @@ fn process_predicate1<'a,'tcx>(selcx: &mut SelectionContext<'a,'tcx>,
                         .map(|t| selcx.infcx().resolve_type_vars_if_possible(t))
                         .filter(|t| t.has_infer_types())
                         .flat_map(|t| t.walk())
-                        .filter(|t| t.is_ty_var())
+                        .filter(|t| match t.sty { ty::TyInfer(_) => true, _ => false })
                         .collect();
 
                     debug!("process_predicate: pending obligation {:?} now stalled on {:?}",