fix truncated comment

This commit is contained in:
Niko Matsakis 2017-12-20 16:51:33 -05:00
parent 4f549fe4fe
commit d925f4d1dd

View file

@ -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);