Skip to content

Commit d088db9

Browse files
committed
clarify that T does not contain 'a
1 parent 27188bb commit d088db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/traits/fulfill.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ fn process_predicate<'a,'tcx>(selcx: &mut SelectionContext<'a,'tcx>,
430430
obligation.clone(),
431431
CodeSelectionError(Unimplemented)))
432432
}
433-
// Otherwise, we have something of the form `for<'a> T: 'a`, which
434-
// we can treat as `T: 'static`.
433+
// Otherwise, we have something of the form
434+
// `for<'a> T: 'a where 'a not in T`, which we can treat as `T: 'static`.
435435
Some(t_a) => {
436436
register_region_obligation(t_a, ty::ReStatic,
437437
obligation.cause.clone(),

0 commit comments

Comments
 (0)