about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-11-27 11:15:06 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-11-27 11:19:04 +0000
commit38dfdee36a19e58c6de61ba4792931596a233a6c (patch)
tree8c71fad2817ef0fd6e19313a15b033a99b656943
parent20ff36217af99b92846d91869b6fa434da56f8c2 (diff)
downloadrust-38dfdee36a19e58c6de61ba4792931596a233a6c.tar.gz
rust-38dfdee36a19e58c6de61ba4792931596a233a6c.zip
Prefer doc comments over `//`-comments in compiler
-rw-r--r--src/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.rs b/src/context.rs
index 2e71c3665da..837708aeb0e 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -88,9 +88,9 @@ pub struct CodegenCx<'gcc, 'tcx> {
     pub vtables: RefCell<FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), RValue<'gcc>>>,
 
     // TODO(antoyo): improve the SSA API to not require those.
-    // Mapping from function pointer type to indexes of on stack parameters.
+    /// Mapping from function pointer type to indexes of on stack parameters.
     pub on_stack_params: RefCell<FxHashMap<FunctionPtrType<'gcc>, FxHashSet<usize>>>,
-    // Mapping from function to indexes of on stack parameters.
+    /// Mapping from function to indexes of on stack parameters.
     pub on_stack_function_params: RefCell<FxHashMap<Function<'gcc>, FxHashSet<usize>>>,
 
     /// Cache of emitted const globals (value -> global)