update comment to reflect new Sized semantics

This commit is contained in:
Jorge Aparicio 2015-01-04 23:20:17 -05:00
parent eb50d3ee01
commit bbf7e4e58a

View file

@ -92,8 +92,8 @@ impl<'cx, 'tcx> Elaborator<'cx, 'tcx> {
// Only keep those bounds that we haven't already
// seen. This is necessary to prevent infinite
// recursion in some cases. One common case is when
// people define `trait Sized { }` rather than `trait
// Sized for Sized? { }`.
// people define `trait Sized: Sized { }` rather than `trait
// Sized { }`.
predicates.retain(|r| self.visited.insert(r.clone()));
self.stack.push(StackEntry { position: 0,