about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-24 17:47:11 +0200
committerGitHub <noreply@github.com>2023-07-24 17:47:11 +0200
commita5164252adf9befc80e51e46bcfe2b55b8d439d2 (patch)
treee5857c29c7e8fde22628e73d6ef6d4e8aaf7d08a
parent4ee3266da6f9431147344cf900ac677232191fa2 (diff)
parent8cab95ef9b56a90a17437fd8ac040c22535f8f4d (diff)
downloadrust-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.rs1
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)
     }