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.
This commit is contained in:
Matthias Krüger 2024-04-17 05:44:54 +02:00 committed by GitHub
commit 854303b1f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1861,12 +1861,12 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
}
enum ReturnDest<'tcx, V> {
// Do nothing; the return value is indirect or ignored.
/// Do nothing; the return value is indirect or ignored.
Nothing,
// Store the return value to the pointer.
/// Store the return value to the pointer.
Store(PlaceRef<'tcx, V>),
// Store an indirect return value to an operand local place.
/// Store an indirect return value to an operand local place.
IndirectOperand(PlaceRef<'tcx, V>, mir::Local),
// Store a direct return value to an operand local place.
/// Store a direct return value to an operand local place.
DirectOperand(mir::Local),
}