Skip to content

Commit bbf7e4e

Browse files
author
Jorge Aparicio
committed
update comment to reflect new Sized semantics
1 parent eb50d3e commit bbf7e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/traits/util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ impl<'cx, 'tcx> Elaborator<'cx, 'tcx> {
9292
// Only keep those bounds that we haven't already
9393
// seen. This is necessary to prevent infinite
9494
// recursion in some cases. One common case is when
95-
// people define `trait Sized { }` rather than `trait
96-
// Sized for Sized? { }`.
95+
// people define `trait Sized: Sized { }` rather than `trait
96+
// Sized { }`.
9797
predicates.retain(|r| self.visited.insert(r.clone()));
9898

9999
self.stack.push(StackEntry { position: 0,

0 commit comments

Comments
 (0)