Merge pull request #20439 from geoffw0/assignment

Rust: Add a couple of simple data flow test cases
This commit is contained in:
Geoffrey White
2025-09-19 16:27:14 +01:00
committed by GitHub
4 changed files with 1589 additions and 1538 deletions

View File

@@ -1,2 +1,2 @@
multipleCallTargets
| main.rs:471:18:471:24 | n.len() |
| main.rs:483:18:483:24 | n.len() |

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -69,6 +69,18 @@ fn assignment() {
sink(i);
i = source(6);
sink(i); // $ hasValueFlow=6
i = 2;
sink(i);
let mut j = 3;
let k = source(7);
j = k;
sink(j); // $ hasValueFlow=7
sink(k); // $ hasValueFlow=7
let mut l = source(8);
l = l;
sink(l); // $ hasValueFlow=8
}
fn block_expression1() -> i64 {