about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-04-01 20:50:16 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2022-04-07 15:47:19 +0200
commit1c4ae7aa4a3c9f4ffa23a81b83cebbb34f51e7d1 (patch)
tree9fd9085ef671e379bd36f65cc4581bd035384adb /compiler/rustc_data_structures/src
parented6c958ee4bf081deec951996ace9c508360c1d9 (diff)
downloadrust-1c4ae7aa4a3c9f4ffa23a81b83cebbb34f51e7d1.tar.gz
rust-1c4ae7aa4a3c9f4ffa23a81b83cebbb34f51e7d1.zip
turn `exec` comment into doc comment
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/profiling.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_data_structures/src/profiling.rs b/compiler/rustc_data_structures/src/profiling.rs
index fd6ff086b08..fa6c4a02cab 100644
--- a/compiler/rustc_data_structures/src/profiling.rs
+++ b/compiler/rustc_data_structures/src/profiling.rs
@@ -183,11 +183,11 @@ impl SelfProfilerRef {
         }
     }
 
-    // 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
-    // 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
-    // path.
+    /// 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
+    /// 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
+    /// path.
     #[inline(always)]
     fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_>
     where