make MIR less verbose
This commit is contained in:
parent
290ce46252
commit
6f8ae03f9b
52 changed files with 99 additions and 90 deletions
|
@ -119,6 +119,14 @@ impl UnwindTerminateReason {
|
|||
}
|
||||
}
|
||||
|
||||
/// A short representation of this used for MIR printing.
|
||||
pub fn as_short_str(self) -> &'static str {
|
||||
match self {
|
||||
UnwindTerminateReason::Abi => "abi",
|
||||
UnwindTerminateReason::InCleanup => "cleanup",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn lang_item(self) -> LangItem {
|
||||
match self {
|
||||
UnwindTerminateReason::Abi => LangItem::PanicCannotUnwind,
|
||||
|
@ -301,13 +309,14 @@ impl<'tcx> Debug for TerminatorKind<'tcx> {
|
|||
// `Cleanup` is already included in successors
|
||||
let show_unwind = !matches!(self.unwind(), None | Some(UnwindAction::Cleanup(_)));
|
||||
let fmt_unwind = |fmt: &mut Formatter<'_>| -> fmt::Result {
|
||||
write!(fmt, "unwind ")?;
|
||||
match self.unwind() {
|
||||
// Not needed or included in successors
|
||||
None | Some(UnwindAction::Cleanup(_)) => unreachable!(),
|
||||
Some(UnwindAction::Continue) => write!(fmt, "unwind continue"),
|
||||
Some(UnwindAction::Unreachable) => write!(fmt, "unwind unreachable"),
|
||||
Some(UnwindAction::Continue) => write!(fmt, "continue"),
|
||||
Some(UnwindAction::Unreachable) => write!(fmt, "unreachable"),
|
||||
Some(UnwindAction::Terminate(reason)) => {
|
||||
write!(fmt, "unwind terminate ({})", reason.as_str())
|
||||
write!(fmt, "terminate({})", reason.as_short_str())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -350,7 +359,7 @@ impl<'tcx> TerminatorKind<'tcx> {
|
|||
GeneratorDrop => write!(fmt, "generator_drop"),
|
||||
UnwindResume => write!(fmt, "resume"),
|
||||
UnwindTerminate(reason) => {
|
||||
write!(fmt, "abort(\"{}\")", reason.as_str())
|
||||
write!(fmt, "abort({})", reason.as_short_str())
|
||||
}
|
||||
Yield { value, resume_arg, .. } => write!(fmt, "{resume_arg:?} = yield({value:?})"),
|
||||
Unreachable => write!(fmt, "unreachable"),
|
||||
|
|
|
@ -9,7 +9,7 @@ fn main() -> () {
|
|||
bb0: {
|
||||
StorageLive(_1);
|
||||
_1 = const ();
|
||||
asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind terminate (panic in a function that cannot unwind)];
|
||||
asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind terminate(abi)];
|
||||
}
|
||||
|
||||
bb1: {
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
bb2 (cleanup): {
|
||||
_5 = move _6;
|
||||
- drop(_6) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_6) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ goto -> bb6;
|
||||
}
|
||||
|
||||
|
@ -71,12 +71,12 @@
|
|||
}
|
||||
|
||||
bb6 (cleanup): {
|
||||
- drop(_5) -> [return: bb7, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_5) -> [return: bb7, unwind terminate(cleanup)];
|
||||
+ goto -> bb7;
|
||||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
- drop(_4) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_4) -> [return: bb8, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ fn main() -> () {
|
|||
|
||||
bb2 (cleanup): {
|
||||
_5 = move _6;
|
||||
drop(_6) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_6) -> [return: bb6, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb3: {
|
||||
|
@ -73,11 +73,11 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb6 (cleanup): {
|
||||
drop(_5) -> [return: bb7, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb7, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
drop(_4) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_4) -> [return: bb8, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
|
|
|
@ -54,15 +54,15 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb6 (cleanup): {
|
||||
drop(_7) -> [return: bb7, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_7) -> [return: bb7, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
drop(_1) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
drop(_5) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
|
|
|
@ -54,15 +54,15 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb6 (cleanup): {
|
||||
drop(_7) -> [return: bb7, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_7) -> [return: bb7, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
drop(_1) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
drop(_5) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
|
|
|
@ -62,7 +62,7 @@ fn droppy() -> () {
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_2) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -89,15 +89,15 @@ fn move_out_by_subslice() -> () {
|
|||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb10 (cleanup): {
|
||||
drop(_7) -> [return: bb11, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_7) -> [return: bb11, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -89,15 +89,15 @@ fn move_out_from_end() -> () {
|
|||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb10 (cleanup): {
|
||||
drop(_7) -> [return: bb11, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_7) -> [return: bb11, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_2) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_2) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_2) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -104,7 +104,7 @@ yields ()
|
|||
|
||||
bb13 (cleanup): {
|
||||
StorageDead(_3);
|
||||
drop(_1) -> [return: bb14, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb14, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb14 (cleanup): {
|
||||
|
@ -113,6 +113,6 @@ yields ()
|
|||
|
||||
bb15 (cleanup): {
|
||||
StorageDead(_3);
|
||||
drop(_1) -> [return: bb14, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb14, unwind terminate(cleanup)];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
StorageLive(_1);
|
||||
- _1 = foo() -> [return: bb1, unwind unreachable];
|
||||
+ StorageLive(_2);
|
||||
+ asm!("", options(MAY_UNWIND)) -> [return: bb2, unwind terminate (panic in a function that cannot unwind)];
|
||||
+ asm!("", options(MAY_UNWIND)) -> [return: bb2, unwind terminate(abi)];
|
||||
}
|
||||
|
||||
bb1: {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb3 (cleanup): {
|
||||
+ drop(_2) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb4, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb4 (cleanup): {
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_1) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb3 (cleanup): {
|
||||
+ drop(_2) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb4, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb4 (cleanup): {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb3 (cleanup): {
|
||||
+ drop(_2) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb4, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb4 (cleanup): {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_1) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_1) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -54,11 +54,11 @@
|
|||
+ }
|
||||
+
|
||||
+ bb4 (cleanup): {
|
||||
+ drop(_4) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_4) -> [return: bb5, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb5 (cleanup): {
|
||||
+ drop(_2) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb6 (cleanup): {
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
- StorageDead(_1);
|
||||
- return;
|
||||
+ bb3 (cleanup): {
|
||||
+ drop(_2) -> [return: bb2, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb2, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
- bb4 (cleanup): {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_1) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(_1) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb5, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
bb4 (cleanup): {
|
||||
_8 = &mut _3;
|
||||
_9 = <Box<[i32]> as Drop>::drop(move _8) -> [return: bb1, unwind terminate (panic in a destructor during cleanup)];
|
||||
_9 = <Box<[i32]> as Drop>::drop(move _8) -> [return: bb1, unwind terminate(cleanup)];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,17 +40,17 @@
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
- drop(_3) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_3) -> [return: bb5, unwind terminate(cleanup)];
|
||||
+ goto -> bb5;
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
- drop(_4) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_4) -> [return: bb5, unwind terminate(cleanup)];
|
||||
+ goto -> bb5;
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
- drop(_2) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb7 (cleanup): {
|
||||
+ drop(_2) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb8 (cleanup): {
|
||||
|
|
|
@ -40,17 +40,17 @@
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
- drop(_3) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_3) -> [return: bb5, unwind terminate(cleanup)];
|
||||
+ goto -> bb5;
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
- drop(_4) -> [return: bb5, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_4) -> [return: bb5, unwind terminate(cleanup)];
|
||||
+ goto -> bb5;
|
||||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
- drop(_2) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb7 (cleanup): {
|
||||
+ drop(_2) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_2) -> [return: bb6, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb8 (cleanup): {
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
bb3 (cleanup): {
|
||||
_2 = move _5;
|
||||
- drop(_5) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_5) -> [return: bb8, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
|
@ -70,17 +70,17 @@
|
|||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
- drop(_4) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_4) -> [return: bb8, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
- drop(_2) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb9, unwind terminate(cleanup)];
|
||||
+ goto -> bb9;
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
- drop(_1) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_1) -> [return: bb10, unwind terminate(cleanup)];
|
||||
+ goto -> bb12;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb11 (cleanup): {
|
||||
+ drop(_1) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_1) -> [return: bb10, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb12 (cleanup): {
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
bb3 (cleanup): {
|
||||
_2 = move _5;
|
||||
- drop(_5) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_5) -> [return: bb8, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
|
@ -70,17 +70,17 @@
|
|||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
- drop(_4) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_4) -> [return: bb8, unwind terminate(cleanup)];
|
||||
+ goto -> bb8;
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
- drop(_2) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb9, unwind terminate(cleanup)];
|
||||
+ goto -> bb9;
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
- drop(_1) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_1) -> [return: bb10, unwind terminate(cleanup)];
|
||||
+ goto -> bb12;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb11 (cleanup): {
|
||||
+ drop(_1) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_1) -> [return: bb10, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb12 (cleanup): {
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
+ _8 = const true;
|
||||
+ _9 = const true;
|
||||
_1 = move _3;
|
||||
- drop(_3) -> [return: bb11, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_3) -> [return: bb11, unwind terminate(cleanup)];
|
||||
+ goto -> bb11;
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
- drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
+ goto -> bb12;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb16 (cleanup): {
|
||||
+ drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb17: {
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
+ _8 = const true;
|
||||
+ _9 = const true;
|
||||
_1 = move _3;
|
||||
- drop(_3) -> [return: bb11, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_3) -> [return: bb11, unwind terminate(cleanup)];
|
||||
+ goto -> bb11;
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
- drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
+ goto -> bb12;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@
|
|||
+ }
|
||||
+
|
||||
+ bb16 (cleanup): {
|
||||
+ drop(_1) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
+ drop(_1) -> [return: bb12, unwind terminate(cleanup)];
|
||||
+ }
|
||||
+
|
||||
+ bb17: {
|
||||
|
|
|
@ -100,11 +100,11 @@ fn test() -> Option<Box<u32>> {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_1) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb13, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
drop(_5) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb13, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb13 (cleanup): {
|
||||
|
|
|
@ -100,11 +100,11 @@ fn test() -> Option<Box<u32>> {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_1) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb13, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
drop(_5) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb13, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb13 (cleanup): {
|
||||
|
|
|
@ -28,7 +28,7 @@ fn bar(_1: Box<[T]>) -> () {
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_1) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -45,7 +45,7 @@ fn foo(_1: Box<[T]>) -> T {
|
|||
}
|
||||
|
||||
bb5 (cleanup): {
|
||||
drop(_1) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb6, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb6 (cleanup): {
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
}
|
||||
|
||||
- bb25 (cleanup): {
|
||||
- drop(_2) -> [return: bb26, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb26, unwind terminate(cleanup)];
|
||||
+ bb22 (cleanup): {
|
||||
+ goto -> bb27;
|
||||
}
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
}
|
||||
|
||||
- bb25 (cleanup): {
|
||||
- drop(_2) -> [return: bb26, unwind terminate (panic in a destructor during cleanup)];
|
||||
- drop(_2) -> [return: bb26, unwind terminate(cleanup)];
|
||||
+ bb22 (cleanup): {
|
||||
+ goto -> bb27;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_2) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -31,7 +31,7 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb3 (cleanup): {
|
||||
drop(_2) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -33,7 +33,7 @@ fn main() -> () {
|
|||
|
||||
bb1 (cleanup): {
|
||||
(_1.0: Aligned) = move _4;
|
||||
drop(_1) -> [return: bb3, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_1) -> [return: bb3, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb2: {
|
||||
|
|
|
@ -83,7 +83,7 @@ fn filter_mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> Option<U>) -> ()
|
|||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
drop(_5) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb10, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb10 (cleanup): {
|
||||
|
|
|
@ -75,7 +75,7 @@ fn mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> U) -> () {
|
|||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
drop(_5) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb10, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb10 (cleanup): {
|
||||
|
|
|
@ -67,7 +67,7 @@ fn vec_move(_1: Vec<impl Sized>) -> () {
|
|||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
drop(_3) -> [return: bb10, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_3) -> [return: bb10, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb10 (cleanup): {
|
||||
|
|
|
@ -127,7 +127,7 @@ fn forward_loop(_1: u32, _2: u32, _3: impl Fn(u32)) -> () {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_3) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_3) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -82,7 +82,7 @@ fn inclusive_loop(_1: u32, _2: u32, _3: impl Fn(u32)) -> () {
|
|||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
drop(_3) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_3) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
|
|
|
@ -195,7 +195,7 @@ fn enumerated_loop(_1: &[T], _2: impl Fn(usize, &T)) -> () {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -182,7 +182,7 @@ fn forward_loop(_1: &[T], _2: impl Fn(&T)) -> () {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -143,7 +143,7 @@ fn range_loop(_1: &[T], _2: impl Fn(usize, &T)) -> () {
|
|||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
drop(_2) -> [return: bb13, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb13, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb13 (cleanup): {
|
||||
|
|
|
@ -196,7 +196,7 @@ fn reverse_loop(_1: &[T], _2: impl Fn(&T)) -> () {
|
|||
}
|
||||
|
||||
bb11 (cleanup): {
|
||||
drop(_2) -> [return: bb12, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_2) -> [return: bb12, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb12 (cleanup): {
|
||||
|
|
|
@ -167,11 +167,11 @@ fn main() -> () {
|
|||
}
|
||||
|
||||
bb7 (cleanup): {
|
||||
drop(_21) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_21) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb8 (cleanup): {
|
||||
drop(_5) -> [return: bb9, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(_5) -> [return: bb9, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb9 (cleanup): {
|
||||
|
|
|
@ -24,7 +24,7 @@ fn std::ptr::drop_in_place(_1: *mut [String]) -> () {
|
|||
bb3 (cleanup): {
|
||||
_4 = &raw mut (*_1)[_3];
|
||||
_3 = Add(move _3, const 1_usize);
|
||||
drop((*_4)) -> [return: bb4, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop((*_4)) -> [return: bb4, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
|
|
|
@ -22,7 +22,7 @@ fn std::ptr::drop_in_place(_1: *mut Vec<i32>) -> () {
|
|||
}
|
||||
|
||||
bb4 (cleanup): {
|
||||
drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb2, unwind terminate (panic in a destructor during cleanup)];
|
||||
drop(((*_1).0: alloc::raw_vec::RawVec<i32>)) -> [return: bb2, unwind terminate(cleanup)];
|
||||
}
|
||||
|
||||
bb5: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue