]> git.lizzy.rs Git - rust.git/commitdiff
Add a FIXME relating to regions and projection types
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 29 Dec 2014 16:02:37 +0000 (11:02 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 30 Dec 2014 14:36:22 +0000 (09:36 -0500)
src/librustc_typeck/check/regionmanip.rs

index c0b281450a2c0bb2956c95ff918fbb1ab09b410e..8d9e241e73bebaeb163ad77d04865a2a2330bfea 100644 (file)
@@ -125,7 +125,8 @@ fn accumulate_from_ty(&mut self, ty: Ty<'tcx>) {
             ty::ty_projection(ref data) => {
                 // `<T as TraitRef<..>>::Name`
 
-                // TODO What region constraints are necessary here, if any??
+                // FIXME(#20303) -- gain ability to require that ty_projection : in-scope region,
+                // like a type parameter
 
                 // this seems like a minimal requirement:
                 let trait_def = ty::lookup_trait_def(self.tcx, data.trait_ref.def_id);