Skip to content

Commit 6238e79

Browse files
authored
Rollup merge of #72563 - RalfJung:multi-return, r=matthewjasper
multiple Return terminators are possible @ecstatic-morse mentioned in #72515 that multiple `Return` terminators are possible. Update the docs accordingly. Cc @rust-lang/wg-mir-opt
2 parents f96e3e2 + 8ef9392 commit 6238e79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_middle/mir/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ pub enum TerminatorKind<'tcx> {
10721072
Abort,
10731073

10741074
/// Indicates a normal return. The return place should have
1075-
/// been filled in by now. This should occur at most once.
1075+
/// been filled in before this executes. This can occur multiple times
1076+
/// in different basic blocks.
10761077
Return,
10771078

10781079
/// Indicates a terminator that can never be reached.

0 commit comments

Comments
 (0)