about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAndrew Paseltiner <apaseltiner@gmail.com>2015-07-17 16:02:43 -0400
committerAndrew Paseltiner <apaseltiner@gmail.com>2015-07-17 16:02:43 -0400
commitd088db99a7c67bebb00c2d66bfaf9cb64298fba2 (patch)
tree0000e705b8723acb21d74b221ca3cf0b446ddd40 /src
parent27188bbefe5efbbb8c11464457ce90edf24ac17f (diff)
downloadrust-d088db99a7c67bebb00c2d66bfaf9cb64298fba2.tar.gz
rust-d088db99a7c67bebb00c2d66bfaf9cb64298fba2.zip
clarify that `T` does not contain `'a`
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/traits/fulfill.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/traits/fulfill.rs b/src/librustc/middle/traits/fulfill.rs
index e06333114f5..44fc6b6b8ab 100644
--- a/src/librustc/middle/traits/fulfill.rs
+++ b/src/librustc/middle/traits/fulfill.rs
@@ -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(),