diff options
| author | beetrees <b@beetr.ee> | 2024-04-17 03:10:09 +0100 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2024-04-17 03:10:09 +0100 |
| commit | c021367de1897288f81e7f8bba23c2d2325e57f4 (patch) | |
| tree | c6cd2d5486bf96b3bc5f2a9e27072f11830f7cec /compiler/rustc_codegen_ssa/src/mir | |
| parent | 3fba2782310b2754259a3c329220a5b1e6cf9a5c (diff) | |
Make the comments for `ReturnDest` variants doc comments
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/mir')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/block.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs index 24f2c50e882..452398e6d82 100644 --- a/compiler/rustc_codegen_ssa/src/mir/block.rs +++ b/compiler/rustc_codegen_ssa/src/mir/block.rs @@ -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), } |
