Skip to content

Commit 89449a3

Browse files
committed
1 parent 3fab405 commit 89449a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/middle/traits/select.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
465465
// terms of `Fn` etc, but we could probably make this more
466466
// precise still.
467467
let input_types = stack.fresh_trait_ref.0.input_types();
468-
let unbound_input_types = input_types.iter().any(|&t| ty::type_is_fresh(t));
468+
let unbound_input_types = input_types.iter()
469+
.flat_map(|t| t.walk())
470+
.any(|t| ty::type_is_fresh(t));
469471
if
470472
unbound_input_types &&
471473
(self.intercrate ||

0 commit comments

Comments
 (0)