Skip to content

Commit

Permalink
fix truncated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 20, 2017
1 parent 4f549fe commit d925f4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_mir/borrow_check/nll/type_check/input_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
None
});

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

0 comments on commit d925f4d

Please sign in to comment.