Skip to content

Commit cd9a0cf

Browse files
committed
Make the lifetime parameters of tcx consistent.
1 parent a9da8fc commit cd9a0cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_codegen_llvm/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
123123
) -> EncodedMetadata {
124124
base::write_metadata(tcx, metadata)
125125
}
126-
fn codegen_allocator(
126+
fn codegen_allocator<'b, 'gcx>(
127127
&self,
128-
tcx: TyCtxt<'_, '_, '_>,
128+
tcx: TyCtxt<'b, 'gcx, 'gcx>,
129129
mods: &mut ModuleLlvm,
130130
kind: AllocatorKind
131131
) {

src/librustc_codegen_ssa/traits/backend.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
3838
tcx: TyCtxt<'b, 'gcx, 'gcx>,
3939
metadata: &mut Self::Module,
4040
) -> EncodedMetadata;
41-
fn codegen_allocator(
41+
fn codegen_allocator<'b, 'gcx>(
4242
&self,
43-
tcx: TyCtxt<'_, '_, '_>,
43+
tcx: TyCtxt<'b, 'gcx, 'gcx>,
4444
mods: &mut Self::Module,
4545
kind: AllocatorKind
4646
);

0 commit comments

Comments
 (0)