]> git.lizzy.rs Git - rust.git/commitdiff
Make the lifetime parameters of tcx consistent.
authorGabriela Alexandra Moldovan <gabi_250@live.com>
Mon, 4 Mar 2019 16:56:57 +0000 (16:56 +0000)
committerGabriela Alexandra Moldovan <gabi_250@live.com>
Mon, 4 Mar 2019 23:49:04 +0000 (23:49 +0000)
src/librustc_codegen_llvm/lib.rs
src/librustc_codegen_ssa/traits/backend.rs

index 5b8c7461bcb60ed3aa667beb59b7bcc705c29b5e..258391ba8360fc99eecc1204d126860f964a9f7c 100644 (file)
@@ -123,9 +123,9 @@ fn write_metadata<'b, 'gcx>(
     ) -> EncodedMetadata {
         base::write_metadata(tcx, metadata)
     }
-    fn codegen_allocator(
+    fn codegen_allocator<'b, 'gcx>(
         &self,
-        tcx: TyCtxt<'_, '_, '_>,
+        tcx: TyCtxt<'b, 'gcx, 'gcx>,
         mods: &mut ModuleLlvm,
         kind: AllocatorKind
     ) {
index 00eae9098e74fdd0abd4e77c8011c9adedcca4a3..a9e0eadb198a86f1fedea63c7b47f3763a6ede4d 100644 (file)
@@ -38,9 +38,9 @@ fn write_metadata<'b, 'gcx>(
         tcx: TyCtxt<'b, 'gcx, 'gcx>,
         metadata: &mut Self::Module,
     ) -> EncodedMetadata;
-    fn codegen_allocator(
+    fn codegen_allocator<'b, 'gcx>(
         &self,
-        tcx: TyCtxt<'_, '_, '_>,
+        tcx: TyCtxt<'b, 'gcx, 'gcx>,
         mods: &mut Self::Module,
         kind: AllocatorKind
     );