fix comment, rustfmt
This commit is contained in:
parent
b5938adb4d
commit
b450e1baf4
3 changed files with 2 additions and 3 deletions
|
@ -30,7 +30,6 @@
|
||||||
#![feature(raw)]
|
#![feature(raw)]
|
||||||
#![panic_runtime]
|
#![panic_runtime]
|
||||||
#![feature(panic_runtime)]
|
#![feature(panic_runtime)]
|
||||||
|
|
||||||
// `real_imp` is unused with Miri, so silence warnings.
|
// `real_imp` is unused with Miri, so silence warnings.
|
||||||
#![cfg_attr(miri, allow(dead_code))]
|
#![cfg_attr(miri, allow(dead_code))]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! Unwinding panics for Miri.
|
//! Unwinding panics for Miri.
|
||||||
use core::any::Any;
|
|
||||||
use alloc::boxed::Box;
|
use alloc::boxed::Box;
|
||||||
|
use core::any::Any;
|
||||||
|
|
||||||
// The type of the payload that the Miri engine propagates through unwinding for us.
|
// The type of the payload that the Miri engine propagates through unwinding for us.
|
||||||
// Must be pointer-sized.
|
// Must be pointer-sized.
|
||||||
|
|
|
@ -651,7 +651,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||||
|
|
||||||
if M::stack_pop(self, frame.extra, unwinding)? == StackPopJump::NoJump {
|
if M::stack_pop(self, frame.extra, unwinding)? == StackPopJump::NoJump {
|
||||||
// The hook already did everything.
|
// The hook already did everything.
|
||||||
// We want to skip the `trace!` below, hence early return.
|
// We want to skip the `info!` below, hence early return.
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
// Normal return.
|
// Normal return.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue