Skip to content

Commit 64a43f4

Browse files
committed
A few minor tweaks
1 parent 01c11f9 commit 64a43f4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
474474
/// Called immediately before a stack frame gets popped.
475475
#[inline(always)]
476476
fn stack_pop(
477-
_ecx: &mut InterpCx<'mir, 'tcx, Self>, _extra: (),
477+
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
478+
_extra: (),
478479
) -> InterpResult<'tcx, StackPopInfo> {
479480
// Const-eval mode does not support unwinding from panics
480481
Ok(StackPopInfo::Normal)

src/librustc_mir/interpret/eval_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub enum StackPopCleanup {
9898
/// Jump to the next block in the caller, or cause UB if None (that's a function
9999
/// that may never return). Also store layout of return place so
100100
/// we can validate it at that layout.
101-
/// 'ret' stores the block we jump to on a normal return, while 'unwind'
101+
/// `ret` stores the block we jump to on a normal return, while 'unwind'
102102
/// stores the block used for cleanup during unwinding
103103
Goto { ret: Option<mir::BasicBlock>, unwind: Option<mir::BasicBlock> },
104104
/// Just do nohing: Used by Main and for the box_alloc hook in miri.

0 commit comments

Comments
 (0)