Make the lifetime parameters of tcx consistent.
This commit is contained in:
@@ -123,9 +123,9 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
||||
) -> 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
|
||||
) {
|
||||
|
||||
@@ -38,9 +38,9 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
|
||||
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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user