File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -109,24 +109,21 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> {
109109 args. visit_with ( visitor)
110110 }
111111 Assert { ref cond, ref msg, .. } => {
112- if cond. visit_with ( visitor) . is_break ( ) {
113- use AssertKind :: * ;
114- match msg {
115- BoundsCheck { ref len, ref index } => {
116- len. visit_with ( visitor) ?;
117- index. visit_with ( visitor)
118- }
119- Overflow ( _, l, r) => {
120- l. visit_with ( visitor) ?;
121- r. visit_with ( visitor)
122- }
123- OverflowNeg ( op) | DivisionByZero ( op) | RemainderByZero ( op) => {
124- op. visit_with ( visitor)
125- }
126- ResumedAfterReturn ( _) | ResumedAfterPanic ( _) => ControlFlow :: CONTINUE ,
112+ cond. visit_with ( visitor) ?;
113+ use AssertKind :: * ;
114+ match msg {
115+ BoundsCheck { ref len, ref index } => {
116+ len. visit_with ( visitor) ?;
117+ index. visit_with ( visitor)
118+ }
119+ Overflow ( _, l, r) => {
120+ l. visit_with ( visitor) ?;
121+ r. visit_with ( visitor)
122+ }
123+ OverflowNeg ( op) | DivisionByZero ( op) | RemainderByZero ( op) => {
124+ op. visit_with ( visitor)
127125 }
128- } else {
129- ControlFlow :: CONTINUE
126+ ResumedAfterReturn ( _) | ResumedAfterPanic ( _) => ControlFlow :: CONTINUE ,
130127 }
131128 }
132129 InlineAsm { ref operands, .. } => operands. visit_with ( visitor) ,
You can’t perform that action at this time.
0 commit comments