about summary refs log tree commit diff
path: root/src/librustc_trans/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_trans/context.rs')
-rw-r--r--src/librustc_trans/context.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_trans/context.rs b/src/librustc_trans/context.rs
index 94695b4e046..7a2db29705d 100644
--- a/src/librustc_trans/context.rs
+++ b/src/librustc_trans/context.rs
@@ -93,7 +93,7 @@ pub struct LocalCrateContext<'a, 'tcx: 'a> {
     llmod: ModuleRef,
     llcx: ContextRef,
     stats: Stats,
-    codegen_unit: CodegenUnit<'tcx>,
+    codegen_unit: Arc<CodegenUnit<'tcx>>,
 
     /// The translation items of the whole crate.
     crate_trans_items: Arc<FxHashSet<TransItem<'tcx>>>,
@@ -330,7 +330,7 @@ impl<'b, 'tcx> SharedCrateContext<'b, 'tcx> {
         common::type_is_freeze(self.tcx, ty)
     }
 
-    pub fn tcx<'a>(&'a self) -> TyCtxt<'a, 'tcx, 'tcx> {
+    pub fn tcx(&self) -> TyCtxt<'b, 'tcx, 'tcx> {
         self.tcx
     }
 
@@ -353,7 +353,7 @@ impl<'b, 'tcx> SharedCrateContext<'b, 'tcx> {
 
 impl<'a, 'tcx> LocalCrateContext<'a, 'tcx> {
     pub fn new(shared: &SharedCrateContext<'a, 'tcx>,
-               codegen_unit: CodegenUnit<'tcx>,
+               codegen_unit: Arc<CodegenUnit<'tcx>>,
                crate_trans_items: Arc<FxHashSet<TransItem<'tcx>>>,
                exported_symbols: Arc<ExportedSymbols>,)
                -> LocalCrateContext<'a, 'tcx> {
@@ -465,7 +465,7 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
         self.local_ccx
     }
 
-    pub fn tcx<'a>(&'a self) -> TyCtxt<'a, 'tcx, 'tcx> {
+    pub fn tcx(&self) -> TyCtxt<'b, 'tcx, 'tcx> {
         self.shared.tcx
     }