about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-02-14 16:00:07 -0500
committerNiko Matsakis <niko@alum.mit.edu>2018-03-13 11:21:29 -0400
commitf873c1e2db8d06be6a816b838655906fa9f2dac9 (patch)
treea4463116b910a75a0172902da4bd6c1d4bdebf04
parente65547d4fad0425d1db4f33a4d8134bf2cad939e (diff)
downloadrust-f873c1e2db8d06be6a816b838655906fa9f2dac9.tar.gz
rust-f873c1e2db8d06be6a816b838655906fa9f2dac9.zip
require `Lifted` types to outlive `'tcx`
-rw-r--r--src/librustc/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs
index b760649c37d..e7d6bdd3383 100644
--- a/src/librustc/ty/context.rs
+++ b/src/librustc/ty/context.rs
@@ -1508,7 +1508,7 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
 /// pointer differs. The latter case is possible if a primitive type,
 /// e.g. `()` or `u8`, was interned in a different context.
 pub trait Lift<'tcx> {
-    type Lifted;
+    type Lifted: 'tcx;
     fn lift_to_tcx<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Option<Self::Lifted>;
 }