diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-07-24 16:50:25 +0200 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-07-24 16:50:25 +0200 | 
| commit | 8cab95ef9b56a90a17437fd8ac040c22535f8f4d (patch) | |
| tree | 7c42ec50fc1a448364c379777dfb72dcfcc2de4c /compiler/rustc_session/src/utils.rs | |
| parent | 155a5c2862c2939aa8464456ca9f358fbb213005 (diff) | |
| download | rust-8cab95ef9b56a90a17437fd8ac040c22535f8f4d.tar.gz rust-8cab95ef9b56a90a17437fd8ac040c22535f8f4d.zip | |
Add missing documentation for `Session::time`
Diffstat (limited to 'compiler/rustc_session/src/utils.rs')
| -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) } | 
