Make the lifetime parameters of tcx consistent.

This commit is contained in:
Gabriela Alexandra Moldovan
2019-03-04 16:56:57 +00:00
parent a9da8fc9c2
commit cd9a0cf537
2 changed files with 4 additions and 4 deletions

View File

@@ -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
) { ) {

View File

@@ -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
); );