File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,16 @@ fn unreachable_panic() {
97
97
98
98
if cond ( ) {
99
99
do_something ( ) ;
100
- _ = false && panic ! ( ) ; // does not panic due to short-circuiting
101
- do_something ( ) ; // SPURIOUS: unreachable
100
+ _ = false && panic ! ( ) ; // does not panic due to short-circuiting SPURIOUS: unreachable
101
+ do_something ( ) ;
102
102
_ = false || panic ! ( ) ;
103
103
do_something ( ) ; // BAD: unreachable code [NOT DETECTED]
104
104
}
105
105
106
106
if cond ( ) {
107
107
do_something ( ) ;
108
- _ = true || panic ! ( ) ; // does not panic due to short-circuiting
109
- do_something ( ) ; // SPURIOUS: unreachable
108
+ _ = true || panic ! ( ) ; // does not panic due to short-circuiting SPURIOUS: unreachable
109
+ do_something ( ) ;
110
110
_ = true && panic ! ( ) ;
111
111
do_something ( ) ; // BAD: unreachable code [NOT DETECTED]
112
112
}
You can’t perform that action at this time.
0 commit comments