diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-02-14 16:00:07 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-03-13 11:21:29 -0400 |
| commit | f873c1e2db8d06be6a816b838655906fa9f2dac9 (patch) | |
| tree | a4463116b910a75a0172902da4bd6c1d4bdebf04 | |
| parent | e65547d4fad0425d1db4f33a4d8134bf2cad939e (diff) | |
| download | rust-f873c1e2db8d06be6a816b838655906fa9f2dac9.tar.gz rust-f873c1e2db8d06be6a816b838655906fa9f2dac9.zip | |
require `Lifted` types to outlive `'tcx`
| -rw-r--r-- | src/librustc/ty/context.rs | 2 |
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>; } |
