about summary refs log tree commit diff
path: root/compiler/rustc_session/src/utils.rs
diff options
context:
space:
mode:
authorJeremy Stucki <dev@jeremystucki.ch>2022-12-20 22:10:40 +0100
committerJeremy Stucki <dev@jeremystucki.ch>2022-12-20 22:10:40 +0100
commit3dde32ca974721daa4dfd526226d6c9e707fd8af (patch)
tree5d6407e56538d2c5e2e0a5a8e8ed9981ec95adda /compiler/rustc_session/src/utils.rs
parent65bd2a6a73d6a74fb1266a1d96b23de8810a5fb2 (diff)
downloadrust-3dde32ca974721daa4dfd526226d6c9e707fd8af.tar.gz
rust-3dde32ca974721daa4dfd526226d6c9e707fd8af.zip
rustc: Remove needless lifetimes
Diffstat (limited to 'compiler/rustc_session/src/utils.rs')
-rw-r--r--compiler/rustc_session/src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/utils.rs b/compiler/rustc_session/src/utils.rs
index e65b6891e32..b996d36a318 100644
--- a/compiler/rustc_session/src/utils.rs
+++ b/compiler/rustc_session/src/utils.rs
@@ -3,7 +3,7 @@ use rustc_data_structures::profiling::VerboseTimingGuard;
 use std::path::{Path, PathBuf};
 
 impl Session {
-    pub fn timer<'a>(&'a self, what: &'static str) -> VerboseTimingGuard<'a> {
+    pub fn timer(&self, what: &'static str) -> VerboseTimingGuard<'_> {
         self.prof.verbose_generic_activity(what)
     }
     pub fn time<R>(&self, what: &'static str, f: impl FnOnce() -> R) -> R {