Skip to content

Commit d925f4d

Browse files
committed
fix truncated comment
1 parent 4f549fe commit d925f4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_mir/borrow_check/nll/type_check/input_output.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
134134
None
135135
});
136136

137-
// Finally
137+
// Finally, if we instantiated the anon types successfully, we
138+
// have to solve any bounds (e.g., `-> impl Iterator` needs to
139+
// prove that `T: Iterator` where `T` is the type we
140+
// instantiated it with).
138141
if let Some(anon_type_map) = anon_type_map {
139142
self.fully_perform_op(start_position.at_self(), |_cx| {
140143
infcx.constrain_anon_types(&anon_type_map, universal_regions);

0 commit comments

Comments
 (0)