Skip to content

Commit f9805a2

Browse files
authored
Rollup merge of #104976 - WaffleLapkin:move_comments, r=cjgillot
Prefer doc comments over `//`-comments in compiler Doc comments are generally nicer: they show up in the documentation, they are shown in IDEs when you hover other mentions of items, etc. Thus it makes sense to use them instead of `//`-comments.
2 parents 3951167 + 38dfdee commit f9805a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ pub struct CodegenCx<'gcc, 'tcx> {
8888
pub vtables: RefCell<FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), RValue<'gcc>>>,
8989

9090
// TODO(antoyo): improve the SSA API to not require those.
91-
// Mapping from function pointer type to indexes of on stack parameters.
91+
/// Mapping from function pointer type to indexes of on stack parameters.
9292
pub on_stack_params: RefCell<FxHashMap<FunctionPtrType<'gcc>, FxHashSet<usize>>>,
93-
// Mapping from function to indexes of on stack parameters.
93+
/// Mapping from function to indexes of on stack parameters.
9494
pub on_stack_function_params: RefCell<FxHashMap<Function<'gcc>, FxHashSet<usize>>>,
9595

9696
/// Cache of emitted const globals (value -> global)

0 commit comments

Comments
 (0)