Skip to content

Commit dfe0a6a

Browse files
authored
Rollup merge of rust-lang#117357 - tmiasko:terminate, r=wesleywiser
Rename a few remaining references to abort terminator Follow up to e3f2edc
2 parents 006e43c + 552abdc commit dfe0a6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_borrowck/src/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
16401640
}
16411641
TerminatorKind::UnwindTerminate(_) => {
16421642
if !is_cleanup {
1643-
span_mirbug!(self, block_data, "abort on non-cleanup block!")
1643+
span_mirbug!(self, block_data, "terminate on non-cleanup block!")
16441644
}
16451645
}
16461646
TerminatorKind::Return => {

compiler/rustc_middle/src/mir/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ impl<'tcx> TerminatorKind<'tcx> {
785785
CoroutineDrop => write!(fmt, "coroutine_drop"),
786786
UnwindResume => write!(fmt, "resume"),
787787
UnwindTerminate(reason) => {
788-
write!(fmt, "abort({})", reason.as_short_str())
788+
write!(fmt, "terminate({})", reason.as_short_str())
789789
}
790790
Yield { value, resume_arg, .. } => write!(fmt, "{resume_arg:?} = yield({value:?})"),
791791
Unreachable => write!(fmt, "unreachable"),

0 commit comments

Comments
 (0)