Skip to content

Commit 854303b

Browse files
authored
Rollup merge of #124052 - beetrees:return-dest-doc-comment, r=fmease
Make the comments for `ReturnDest` variants doc comments This PR converts the documentation for `ReturnDest` from comments to doc comments.
2 parents d783ea0 + c021367 commit 854303b

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1861,12 +1861,12 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
18611861
}
18621862

18631863
enum ReturnDest<'tcx, V> {
1864-
// Do nothing; the return value is indirect or ignored.
1864+
/// Do nothing; the return value is indirect or ignored.
18651865
Nothing,
1866-
// Store the return value to the pointer.
1866+
/// Store the return value to the pointer.
18671867
Store(PlaceRef<'tcx, V>),
1868-
// Store an indirect return value to an operand local place.
1868+
/// Store an indirect return value to an operand local place.
18691869
IndirectOperand(PlaceRef<'tcx, V>, mir::Local),
1870-
// Store a direct return value to an operand local place.
1870+
/// Store a direct return value to an operand local place.
18711871
DirectOperand(mir::Local),
18721872
}

0 commit comments

Comments
 (0)