From 8ef93928282c939554b9b7b518665fcde06c6ba6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 25 May 2020 11:41:58 +0200 Subject: [PATCH] multiple Return terminators are possible --- src/librustc_middle/mir/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_middle/mir/mod.rs b/src/librustc_middle/mir/mod.rs index 20c64d40fabbd..0e9c133e2c322 100644 --- a/src/librustc_middle/mir/mod.rs +++ b/src/librustc_middle/mir/mod.rs @@ -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.