diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-24 17:47:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-24 17:47:11 +0200 |
| commit | a5164252adf9befc80e51e46bcfe2b55b8d439d2 (patch) | |
| tree | e5857c29c7e8fde22628e73d6ef6d4e8aaf7d08a | |
| parent | 4ee3266da6f9431147344cf900ac677232191fa2 (diff) | |
| parent | 8cab95ef9b56a90a17437fd8ac040c22535f8f4d (diff) | |
| download | rust-a5164252adf9befc80e51e46bcfe2b55b8d439d2.tar.gz rust-a5164252adf9befc80e51e46bcfe2b55b8d439d2.zip | |
Rollup merge of #114021 - GuillaumeGomez:session-time-docs, r=lcnr
Add missing documentation for `Session::time` r? `@lcnr`
| -rw-r--r-- | compiler/rustc_session/src/utils.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/utils.rs b/compiler/rustc_session/src/utils.rs index 1d15e2c28d8..71f2591fe66 100644 --- a/compiler/rustc_session/src/utils.rs +++ b/compiler/rustc_session/src/utils.rs @@ -7,6 +7,7 @@ impl Session { pub fn timer(&self, what: &'static str) -> VerboseTimingGuard<'_> { self.prof.verbose_generic_activity(what) } + /// Used by `-Z self-profile`. pub fn time<R>(&self, what: &'static str, f: impl FnOnce() -> R) -> R { self.prof.verbose_generic_activity(what).run(f) } |
