Address review feedback
This commit is contained in:
parent
e3f2edc75b
commit
3af45d6c57
7 changed files with 40 additions and 31 deletions
|
@ -523,7 +523,7 @@ pub struct CopyNonOverlapping<'tcx> {
|
|||
/// The basic block pointed to by a `Cleanup` unwind action must have its `cleanup` flag set.
|
||||
/// `cleanup` basic blocks have a couple restrictions:
|
||||
/// 1. All `unwind` fields in them must be `UnwindAction::Terminate` or `UnwindAction::Unreachable`.
|
||||
/// 2. `Return` terminators are not allowed in them. `Terminate` and `Unwind` terminators are.
|
||||
/// 2. `Return` terminators are not allowed in them. `Terminate` and `Resume` terminators are.
|
||||
/// 3. All other basic blocks (in the current body) that are reachable from `cleanup` basic blocks
|
||||
/// must also be `cleanup`. This is a part of the type system and checked statically, so it is
|
||||
/// still an error to have such an edge in the CFG even if it's known that it won't be taken at
|
||||
|
@ -721,8 +721,6 @@ pub enum TerminatorKind<'tcx> {
|
|||
/// consider it in borrowck. We don't want to accept programs which
|
||||
/// pass borrowck only when `panic=abort` or some assertions are disabled
|
||||
/// due to release vs. debug mode builds.
|
||||
/// This field does not necessary have to be `UnwindAction::Cleanup` because
|
||||
/// of the `remove_noop_landing_pads` and `abort_unwinding_calls` passes.
|
||||
unwind: UnwindAction,
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue