Skip to content

Commit

Permalink
Rollup merge of rust-lang#72563 - RalfJung:multi-return, r=matthewjasper
Browse files Browse the repository at this point in the history
multiple Return terminators are possible

@ecstatic-morse mentioned in rust-lang#72515 that multiple `Return` terminators are possible. Update the docs accordingly.

Cc @rust-lang/wg-mir-opt
  • Loading branch information
RalfJung authored May 30, 2020
2 parents f96e3e2 + 8ef9392 commit 6238e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_middle/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,8 @@ pub enum TerminatorKind<'tcx> {
Abort,

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

/// Indicates a terminator that can never be reached.
Expand Down

0 comments on commit 6238e79

Please sign in to comment.