]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/layout.rs
bring TyCtxt into scope
[rust.git] / src / librustc / ty / layout.rs
index 0106d98b64130e1938929322e0eb03e1ff007bac..84d7745a64f0a2218f81ff4d646da86b9553f602 100644 (file)
@@ -386,7 +386,7 @@ pub fn align<C: HasDataLayout>(&self, cx: C) -> Align {
         }
     }
 
-    pub fn to_ty<'a, 'tcx>(&self, tcx: &ty::TyCtxt<'a, 'tcx, 'tcx>,
+    pub fn to_ty<'a, 'tcx>(&self, tcx: &TyCtxt<'a, 'tcx, 'tcx>,
                            signed: bool) -> Ty<'tcx> {
         match (*self, signed) {
             (I1, false) => tcx.types.u8,