Rust: Accept fixed spurious results

This commit is contained in:
Simon Friis Vindum
2024-11-11 08:59:34 +01:00
parent 54172774d5
commit db1b698689
3 changed files with 5 additions and 4 deletions

View File

@@ -218,6 +218,9 @@ uniqueCallEnclosingCallable
| unreachable.rs:294:13:294:32 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:296:9:296:22 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:301:13:301:32 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:306:5:306:18 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:308:5:308:18 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:310:5:310:18 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:318:22:318:41 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:319:9:319:22 | CallExpr | Call should have one enclosing callable but has 0. |
| unreachable.rs:322:9:322:22 | CallExpr | Call should have one enclosing callable but has 0. |

View File

@@ -18,5 +18,3 @@
| more.rs:44:9:44:14 | a_ptr4 | Variable $@ is assigned a value that is never used. | more.rs:44:9:44:14 | a_ptr4 | a_ptr4 |
| more.rs:59:9:59:13 | d_ptr | Variable $@ is assigned a value that is never used. | more.rs:59:9:59:13 | d_ptr | d_ptr |
| more.rs:65:9:65:17 | f_ptr | Variable $@ is assigned a value that is never used. | more.rs:65:13:65:17 | f_ptr | f_ptr |
| unreachable.rs:292:9:292:15 | for_ten | Variable $@ is assigned a value that is never used. | unreachable.rs:292:9:292:15 | for_ten | for_ten |
| unreachable.rs:299:9:299:16 | for_ever | Variable $@ is assigned a value that is never used. | unreachable.rs:299:9:299:16 | for_ever | for_ever |

View File

@@ -289,14 +289,14 @@ pub fn unreachable_loop() {
async fn do_something_async() {}
pub async fn unreachable_loop_async() {
let for_ten = async { // $ SPURIOUS: Alert[rust/unused-value]
let for_ten = async {
for _ in 1..10 {
do_something_async().await;
}
do_something();
};
let for_ever = async { // $ SPURIOUS: Alert[rust/unused-value]
let for_ever = async {
loop {
do_something_async().await;
}