Skip to content

Commit

Permalink
clarify that T does not contain 'a
Browse files Browse the repository at this point in the history
  • Loading branch information
apasel422 committed Jul 17, 2015
1 parent 27188bb commit d088db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/traits/fulfill.rs
Expand Up @@ -430,8 +430,8 @@ fn process_predicate<'a,'tcx>(selcx: &mut SelectionContext<'a,'tcx>,
obligation.clone(),
CodeSelectionError(Unimplemented)))
}
// Otherwise, we have something of the form `for<'a> T: 'a`, which
// we can treat as `T: 'static`.
// Otherwise, we have something of the form
// `for<'a> T: 'a where 'a not in T`, which we can treat as `T: 'static`.
Some(t_a) => {
register_region_obligation(t_a, ty::ReStatic,
obligation.cause.clone(),
Expand Down

0 comments on commit d088db9

Please sign in to comment.