Skip to content

Commit a516425

Browse files
authored
Rollup merge of rust-lang#114021 - GuillaumeGomez:session-time-docs, r=lcnr
Add missing documentation for `Session::time` r? `@lcnr`
2 parents 4ee3266 + 8cab95e commit a516425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_session/src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ impl Session {
77
pub fn timer(&self, what: &'static str) -> VerboseTimingGuard<'_> {
88
self.prof.verbose_generic_activity(what)
99
}
10+
/// Used by `-Z self-profile`.
1011
pub fn time<R>(&self, what: &'static str, f: impl FnOnce() -> R) -> R {
1112
self.prof.verbose_generic_activity(what).run(f)
1213
}

0 commit comments

Comments
 (0)