Skip to content

Commit

Permalink
multiple Return terminators are possible
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 30, 2020
1 parent 0e9e408 commit 8ef9392
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 8ef9392

Please sign in to comment.