diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-21 18:41:45 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-21 18:41:45 +0100 |
| commit | 6c57dda44d2c9c12fdaab359c28767e4ccdb671b (patch) | |
| tree | a18c90ef4830c6ab29354245c39f8851d1c64f62 /compiler/rustc_session/src | |
| parent | f60d2eb6c19751154a2c752d1c916420c0bb60e6 (diff) | |
| download | rust-6c57dda44d2c9c12fdaab359c28767e4ccdb671b.tar.gz rust-6c57dda44d2c9c12fdaab359c28767e4ccdb671b.zip | |
Remove `unique` and move `VerboseTimingGuard` fields into a new struct
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/utils.rs b/compiler/rustc_session/src/utils.rs index a7feb2794c4..3b3d4ca5d6b 100644 --- a/compiler/rustc_session/src/utils.rs +++ b/compiler/rustc_session/src/utils.rs @@ -4,10 +4,10 @@ use std::path::{Path, PathBuf}; impl Session { pub fn timer(&self, what: &'static str) -> VerboseTimingGuard<'_> { - self.prof.unique_verbose_generic_activity(what) + self.prof.verbose_generic_activity(what) } pub fn time<R>(&self, what: &'static str, f: impl FnOnce() -> R) -> R { - self.prof.unique_verbose_generic_activity(what).run(f) + self.prof.verbose_generic_activity(what).run(f) } } |
