Make the lifetime parameters of tcx consistent.
This commit is contained in:
@@ -123,9 +123,9 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
|||||||
) -> EncodedMetadata {
|
) -> EncodedMetadata {
|
||||||
base::write_metadata(tcx, metadata)
|
base::write_metadata(tcx, metadata)
|
||||||
}
|
}
|
||||||
fn codegen_allocator(
|
fn codegen_allocator<'b, 'gcx>(
|
||||||
&self,
|
&self,
|
||||||
tcx: TyCtxt<'_, '_, '_>,
|
tcx: TyCtxt<'b, 'gcx, 'gcx>,
|
||||||
mods: &mut ModuleLlvm,
|
mods: &mut ModuleLlvm,
|
||||||
kind: AllocatorKind
|
kind: AllocatorKind
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
|
|||||||
tcx: TyCtxt<'b, 'gcx, 'gcx>,
|
tcx: TyCtxt<'b, 'gcx, 'gcx>,
|
||||||
metadata: &mut Self::Module,
|
metadata: &mut Self::Module,
|
||||||
) -> EncodedMetadata;
|
) -> EncodedMetadata;
|
||||||
fn codegen_allocator(
|
fn codegen_allocator<'b, 'gcx>(
|
||||||
&self,
|
&self,
|
||||||
tcx: TyCtxt<'_, '_, '_>,
|
tcx: TyCtxt<'b, 'gcx, 'gcx>,
|
||||||
mods: &mut Self::Module,
|
mods: &mut Self::Module,
|
||||||
kind: AllocatorKind
|
kind: AllocatorKind
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user