diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-06-11 23:35:39 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-06-12 13:38:27 +0300 |
| commit | 244125350880ca2f905928cae4115867eedd301a (patch) | |
| tree | f8741d6ba0faad55ede30137152f4957d3848dc9 /src/librustc_codegen_utils | |
| parent | 37799a5552d308da5d74d9654036f2f541f3c8c3 (diff) | |
| download | rust-244125350880ca2f905928cae4115867eedd301a.tar.gz rust-244125350880ca2f905928cae4115867eedd301a.zip | |
Fix fallout from `deny(unused_lifetimes)`.
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/codegen_backend.rs | 2 | ||||
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names/legacy.rs | 2 | ||||
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names_test.rs | 2 |
3 files changed, 3 insertions, 3 deletions
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<dyn MetadataLoader + Sync>; 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. |
