File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -805,7 +805,10 @@ impl Instruction {
805805 }
806806
807807 pub fn unconditional_branch ( & self ) -> bool {
808- matches ! ( self , Jump { .. } | Continue { .. } | Break { .. } | ReturnValue | Raise { .. } )
808+ matches ! (
809+ self ,
810+ Jump { .. } | Continue { .. } | Break { .. } | ReturnValue | Raise { .. }
811+ )
809812 }
810813
811814 pub fn stack_effect ( & self , jump : bool ) -> i32 {
Original file line number Diff line number Diff line change @@ -180,9 +180,12 @@ impl CodeInfo {
180180 // we don't want to worry about Continue or Break, they use unwinding to jump to
181181 // their targets and as such the stack size is taken care of in frame.rs by setting
182182 // it back to the level it was at when SetupLoop was run
183- let jump_label = instr. label_arg ( ) . filter (
184- |_| !matches ! ( instr, Instruction :: Continue { .. } | Instruction :: Break { .. } ) ,
185- ) ;
183+ let jump_label = instr. label_arg ( ) . filter ( |_| {
184+ !matches ! (
185+ instr,
186+ Instruction :: Continue { .. } | Instruction :: Break { .. }
187+ )
188+ } ) ;
186189 if let Some ( & target_block) = jump_label {
187190 let effect = instr. stack_effect ( true ) ;
188191 let target_depth = add_ui ( depth, effect) ;
You can’t perform that action at this time.
0 commit comments