mirror of https://github.com/rust-lang/rust.git
turn `exec` comment into doc comment
This commit is contained in:
parent
ed6c958ee4
commit
1c4ae7aa4a
|
@ -183,11 +183,11 @@ impl SelfProfilerRef {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This shim makes sure that calls only get executed if the filter mask
|
/// This shim makes sure that calls only get executed if the filter mask
|
||||||
// lets them pass. It also contains some trickery to make sure that
|
/// lets them pass. It also contains some trickery to make sure that
|
||||||
// code is optimized for non-profiling compilation sessions, i.e. anything
|
/// code is optimized for non-profiling compilation sessions, i.e. anything
|
||||||
// past the filter check is never inlined so it doesn't clutter the fast
|
/// past the filter check is never inlined so it doesn't clutter the fast
|
||||||
// path.
|
/// path.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_>
|
fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_>
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue