From 244125350880ca2f905928cae4115867eedd301a Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Tue, 11 Jun 2019 23:35:39 +0300 Subject: Fix fallout from `deny(unused_lifetimes)`. --- src/librustc_codegen_utils/codegen_backend.rs | 2 +- src/librustc_codegen_utils/symbol_names/legacy.rs | 2 +- src/librustc_codegen_utils/symbol_names_test.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/librustc_codegen_utils') diff --git a/src/librustc_codegen_utils/codegen_backend.rs b/src/librustc_codegen_utils/codegen_backend.rs index 472b88b5b66..e29bb751b9a 100644 --- a/src/librustc_codegen_utils/codegen_backend.rs +++ b/src/librustc_codegen_utils/codegen_backend.rs @@ -34,7 +34,7 @@ pub trait CodegenBackend { fn metadata_loader(&self) -> Box; fn provide(&self, _providers: &mut Providers<'_>); fn provide_extern(&self, _providers: &mut Providers<'_>); - fn codegen_crate<'a, 'tcx>( + fn codegen_crate<'tcx>( &self, tcx: TyCtxt<'tcx, 'tcx, 'tcx>, metadata: EncodedMetadata, diff --git a/src/librustc_codegen_utils/symbol_names/legacy.rs b/src/librustc_codegen_utils/symbol_names/legacy.rs index c7729f28beb..41e972f869f 100644 --- a/src/librustc_codegen_utils/symbol_names/legacy.rs +++ b/src/librustc_codegen_utils/symbol_names/legacy.rs @@ -68,7 +68,7 @@ pub(super) fn mangle( printer.path.finish(hash) } -fn get_symbol_hash<'a, 'tcx>( +fn get_symbol_hash<'tcx>( tcx: TyCtxt<'tcx, 'tcx, 'tcx>, // instance this name will be for diff --git a/src/librustc_codegen_utils/symbol_names_test.rs b/src/librustc_codegen_utils/symbol_names_test.rs index b2d77e21200..3d82557d4c5 100644 --- a/src/librustc_codegen_utils/symbol_names_test.rs +++ b/src/librustc_codegen_utils/symbol_names_test.rs @@ -11,7 +11,7 @@ use syntax::symbol::{Symbol, sym}; const SYMBOL_NAME: Symbol = sym::rustc_symbol_name; const DEF_PATH: Symbol = sym::rustc_def_path; -pub fn report_symbol_names<'a, 'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>) { +pub fn report_symbol_names<'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>) { // if the `rustc_attrs` feature is not enabled, then the // attributes we are interested in cannot be present anyway, so // skip the walk. -- cgit 1.4.1-3-g733a5