update comment to reflect new Sized semantics
This commit is contained in:
parent
eb50d3ee01
commit
bbf7e4e58a
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue