Skip to content

Commit bb83641

Browse files
author
Paolo Tranquilli
committed
Rust: accept all test changes for now
1 parent c46f44d commit bb83641

File tree

12 files changed

+198
-144
lines changed

12 files changed

+198
-144
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| gen_box_pat.rs:6:9:6:27 | box ... | gen_box_pat.rs:6:13:6:27 | TupleStructPat |
1+
| gen_box_pat.rs:6:9:6:27 | box ... | gen_box_pat.rs:6:13:6:27 | ...::Some(...) |
22
| gen_box_pat.rs:7:9:7:24 | box ...::None | gen_box_pat.rs:7:13:7:24 | ...::None |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| gen_ident_pat.rs:10:9:10:25 | y | gen_ident_pat.rs:10:11:10:25 | TupleStructPat |
1+
| gen_ident_pat.rs:10:9:10:25 | y | gen_ident_pat.rs:10:11:10:25 | ...::Some(...) |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| gen_let_expr.rs:5:8:5:31 | let ... = maybe_some | gen_let_expr.rs:5:12:5:18 | TupleStructPat |
1+
| gen_let_expr.rs:5:8:5:31 | let ... = maybe_some | gen_let_expr.rs:5:12:5:18 | Some(...) |

rust/ql/test/extractor-tests/generated/LetStmt/LetStmt_getPat.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
| gen_let_stmt.rs:7:5:7:15 | let ... | gen_let_stmt.rs:7:9:7:9 | x |
44
| gen_let_stmt.rs:8:5:8:10 | let ... | gen_let_stmt.rs:8:9:8:9 | x |
55
| gen_let_stmt.rs:9:5:9:24 | let ... = ... | gen_let_stmt.rs:9:9:9:14 | TuplePat |
6-
| gen_let_stmt.rs:10:5:12:6 | let ... = ... else {...} | gen_let_stmt.rs:10:9:10:15 | TupleStructPat |
6+
| gen_let_stmt.rs:10:5:12:6 | let ... = ... else {...} | gen_let_stmt.rs:10:9:10:15 | Some(...) |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| gen_match_arm.rs:6:9:6:29 | ... => y | gen_match_arm.rs:6:9:6:23 | TupleStructPat |
1+
| gen_match_arm.rs:6:9:6:29 | ... => y | gen_match_arm.rs:6:9:6:23 | ...::Some(...) |
22
| gen_match_arm.rs:7:9:7:26 | ...::None => 0 | gen_match_arm.rs:7:9:7:20 | ...::None |
3-
| gen_match_arm.rs:10:9:10:35 | ... if ... => ... | gen_match_arm.rs:10:9:10:15 | TupleStructPat |
3+
| gen_match_arm.rs:10:9:10:35 | ... if ... => ... | gen_match_arm.rs:10:9:10:15 | Some(...) |
44
| gen_match_arm.rs:11:9:11:15 | _ => 0 | gen_match_arm.rs:11:9:11:9 | _ |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| gen_or_pat.rs:6:9:6:38 | ... \| ...::None | 0 | gen_or_pat.rs:6:9:6:23 | TupleStructPat |
1+
| gen_or_pat.rs:6:9:6:38 | ... \| ...::None | 0 | gen_or_pat.rs:6:9:6:23 | ...::Some(...) |
22
| gen_or_pat.rs:6:9:6:38 | ... \| ...::None | 1 | gen_or_pat.rs:6:27:6:38 | ...::None |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| gen_ref_pat.rs:6:9:6:28 | &mut ... | gen_ref_pat.rs:6:14:6:28 | TupleStructPat |
1+
| gen_ref_pat.rs:6:9:6:28 | &mut ... | gen_ref_pat.rs:6:14:6:28 | ...::Some(...) |
22
| gen_ref_pat.rs:7:9:7:21 | &...::None | gen_ref_pat.rs:7:10:7:21 | ...::None |

rust/ql/test/library-tests/controlflow-unstable/Cfg.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ edges
1414
| test.rs:6:12:6:31 | [boolean(false)] ... && ... | test.rs:9:13:9:17 | false | false |
1515
| test.rs:6:12:6:31 | [boolean(true)] ... && ... | test.rs:7:13:7:13 | d | true |
1616
| test.rs:6:17:6:31 | let ... = b | test.rs:6:31:6:31 | b | |
17-
| test.rs:6:21:6:27 | TupleStructPat | test.rs:6:12:6:31 | [boolean(false)] ... && ... | no-match |
18-
| test.rs:6:21:6:27 | TupleStructPat | test.rs:6:26:6:26 | d | match |
17+
| test.rs:6:21:6:27 | Some(...) | test.rs:6:12:6:31 | [boolean(false)] ... && ... | no-match |
18+
| test.rs:6:21:6:27 | Some(...) | test.rs:6:26:6:26 | d | match |
1919
| test.rs:6:26:6:26 | d | test.rs:6:12:6:31 | [boolean(true)] ... && ... | match |
20-
| test.rs:6:31:6:31 | b | test.rs:6:21:6:27 | TupleStructPat | |
20+
| test.rs:6:31:6:31 | b | test.rs:6:21:6:27 | Some(...) | |
2121
| test.rs:6:33:8:9 | { ... } | test.rs:6:9:10:9 | if ... {...} else {...} | |
2222
| test.rs:7:13:7:13 | d | test.rs:6:33:8:9 | { ... } | |
2323
| test.rs:8:16:10:9 | { ... } | test.rs:6:9:10:9 | if ... {...} else {...} | |

rust/ql/test/library-tests/controlflow/Cfg.expected

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ edges
191191
| test.rs:98:27:98:28 | 10 | test.rs:98:24:98:28 | 1..10 | |
192192
| test.rs:99:9:103:9 | while ... { ... } | test.rs:97:25:104:5 | { ... } | |
193193
| test.rs:99:15:99:39 | let ... = ... | test.rs:99:29:99:32 | iter | |
194-
| test.rs:99:19:99:25 | TupleStructPat | test.rs:99:9:103:9 | while ... { ... } | no-match |
195-
| test.rs:99:19:99:25 | TupleStructPat | test.rs:99:24:99:24 | x | match |
194+
| test.rs:99:19:99:25 | Some(...) | test.rs:99:9:103:9 | while ... { ... } | no-match |
195+
| test.rs:99:19:99:25 | Some(...) | test.rs:99:24:99:24 | x | match |
196196
| test.rs:99:24:99:24 | x | test.rs:100:17:100:17 | x | match |
197197
| test.rs:99:29:99:32 | iter | test.rs:99:29:99:39 | ... .next(...) | |
198-
| test.rs:99:29:99:39 | ... .next(...) | test.rs:99:19:99:25 | TupleStructPat | |
198+
| test.rs:99:29:99:39 | ... .next(...) | test.rs:99:19:99:25 | Some(...) | |
199199
| test.rs:99:41:103:9 | { ... } | test.rs:99:15:99:39 | let ... = ... | |
200200
| test.rs:100:13:102:13 | if ... {...} | test.rs:99:41:103:9 | { ... } | |
201201
| test.rs:100:17:100:17 | x | test.rs:100:22:100:22 | 5 | |
@@ -274,10 +274,10 @@ edges
274274
| test.rs:137:48:143:5 | { ... } | test.rs:137:5:143:5 | exit fn test_if_let_else (normal) | |
275275
| test.rs:138:9:142:9 | if ... {...} else {...} | test.rs:137:48:143:5 | { ... } | |
276276
| test.rs:138:12:138:26 | let ... = a | test.rs:138:26:138:26 | a | |
277-
| test.rs:138:16:138:22 | TupleStructPat | test.rs:138:21:138:21 | n | match |
278-
| test.rs:138:16:138:22 | TupleStructPat | test.rs:141:13:141:13 | 0 | no-match |
277+
| test.rs:138:16:138:22 | Some(...) | test.rs:138:21:138:21 | n | match |
278+
| test.rs:138:16:138:22 | Some(...) | test.rs:141:13:141:13 | 0 | no-match |
279279
| test.rs:138:21:138:21 | n | test.rs:139:13:139:13 | n | match |
280-
| test.rs:138:26:138:26 | a | test.rs:138:16:138:22 | TupleStructPat | |
280+
| test.rs:138:26:138:26 | a | test.rs:138:16:138:22 | Some(...) | |
281281
| test.rs:138:28:140:9 | { ... } | test.rs:138:9:142:9 | if ... {...} else {...} | |
282282
| test.rs:139:13:139:13 | n | test.rs:138:28:140:9 | { ... } | |
283283
| test.rs:140:16:142:9 | { ... } | test.rs:138:9:142:9 | if ... {...} else {...} | |
@@ -290,10 +290,10 @@ edges
290290
| test.rs:146:9:148:9 | ExprStmt | test.rs:146:12:146:26 | let ... = a | |
291291
| test.rs:146:9:148:9 | if ... {...} | test.rs:149:9:149:9 | 0 | |
292292
| test.rs:146:12:146:26 | let ... = a | test.rs:146:26:146:26 | a | |
293-
| test.rs:146:16:146:22 | TupleStructPat | test.rs:146:9:148:9 | if ... {...} | no-match |
294-
| test.rs:146:16:146:22 | TupleStructPat | test.rs:146:21:146:21 | n | match |
293+
| test.rs:146:16:146:22 | Some(...) | test.rs:146:9:148:9 | if ... {...} | no-match |
294+
| test.rs:146:16:146:22 | Some(...) | test.rs:146:21:146:21 | n | match |
295295
| test.rs:146:21:146:21 | n | test.rs:147:13:147:21 | ExprStmt | match |
296-
| test.rs:146:26:146:26 | a | test.rs:146:16:146:22 | TupleStructPat | |
296+
| test.rs:146:26:146:26 | a | test.rs:146:16:146:22 | Some(...) | |
297297
| test.rs:147:13:147:20 | return n | test.rs:145:5:150:5 | exit fn test_if_let (normal) | return |
298298
| test.rs:147:13:147:21 | ExprStmt | test.rs:147:20:147:20 | n | |
299299
| test.rs:147:20:147:20 | n | test.rs:147:13:147:20 | return n | |
@@ -663,19 +663,19 @@ edges
663663
| test.rs:307:19:307:42 | ...: Option::<...> | test.rs:308:15:308:25 | maybe_digit | |
664664
| test.rs:307:52:313:5 | { ... } | test.rs:307:5:313:5 | exit fn test_match (normal) | |
665665
| test.rs:308:9:312:9 | match maybe_digit { ... } | test.rs:307:52:313:5 | { ... } | |
666-
| test.rs:308:15:308:25 | maybe_digit | test.rs:309:13:309:27 | TupleStructPat | |
667-
| test.rs:309:13:309:27 | TupleStructPat | test.rs:309:26:309:26 | x | match |
668-
| test.rs:309:13:309:27 | TupleStructPat | test.rs:310:13:310:27 | TupleStructPat | no-match |
666+
| test.rs:308:15:308:25 | maybe_digit | test.rs:309:13:309:27 | ...::Some(...) | |
667+
| test.rs:309:13:309:27 | ...::Some(...) | test.rs:309:26:309:26 | x | match |
668+
| test.rs:309:13:309:27 | ...::Some(...) | test.rs:310:13:310:27 | ...::Some(...) | no-match |
669669
| test.rs:309:26:309:26 | x | test.rs:309:32:309:32 | x | match |
670670
| test.rs:309:32:309:32 | x | test.rs:309:36:309:37 | 10 | |
671671
| test.rs:309:32:309:37 | ... < ... | test.rs:309:42:309:42 | x | true |
672-
| test.rs:309:32:309:37 | ... < ... | test.rs:310:13:310:27 | TupleStructPat | false |
672+
| test.rs:309:32:309:37 | ... < ... | test.rs:310:13:310:27 | ...::Some(...) | false |
673673
| test.rs:309:36:309:37 | 10 | test.rs:309:32:309:37 | ... < ... | |
674674
| test.rs:309:42:309:42 | x | test.rs:309:46:309:46 | 5 | |
675675
| test.rs:309:42:309:46 | ... + ... | test.rs:308:9:312:9 | match maybe_digit { ... } | |
676676
| test.rs:309:46:309:46 | 5 | test.rs:309:42:309:46 | ... + ... | |
677-
| test.rs:310:13:310:27 | TupleStructPat | test.rs:310:26:310:26 | x | match |
678-
| test.rs:310:13:310:27 | TupleStructPat | test.rs:311:13:311:24 | ...::None | no-match |
677+
| test.rs:310:13:310:27 | ...::Some(...) | test.rs:310:26:310:26 | x | match |
678+
| test.rs:310:13:310:27 | ...::Some(...) | test.rs:311:13:311:24 | ...::None | no-match |
679679
| test.rs:310:26:310:26 | x | test.rs:310:32:310:32 | x | match |
680680
| test.rs:310:32:310:32 | x | test.rs:308:9:312:9 | match maybe_digit { ... } | |
681681
| test.rs:311:13:311:24 | ...::None | test.rs:311:29:311:29 | 5 | match |
@@ -686,7 +686,7 @@ edges
686686
| test.rs:315:44:315:67 | ...: Option::<...> | test.rs:316:19:316:29 | maybe_digit | |
687687
| test.rs:315:77:324:5 | { ... } | test.rs:315:5:324:5 | exit fn test_match_with_return_in_scrutinee (normal) | |
688688
| test.rs:316:9:323:9 | match ... { ... } | test.rs:315:77:324:5 | { ... } | |
689-
| test.rs:316:16:320:9 | if ... {...} else {...} | test.rs:321:13:321:27 | TupleStructPat | |
689+
| test.rs:316:16:320:9 | if ... {...} else {...} | test.rs:321:13:321:27 | ...::Some(...) | |
690690
| test.rs:316:19:316:29 | maybe_digit | test.rs:316:34:316:37 | Some | |
691691
| test.rs:316:19:316:40 | ... == ... | test.rs:317:13:317:21 | ExprStmt | true |
692692
| test.rs:316:19:316:40 | ... == ... | test.rs:319:13:319:23 | maybe_digit | false |
@@ -698,8 +698,8 @@ edges
698698
| test.rs:317:20:317:20 | 3 | test.rs:317:13:317:20 | return 3 | |
699699
| test.rs:318:16:320:9 | { ... } | test.rs:316:16:320:9 | if ... {...} else {...} | |
700700
| test.rs:319:13:319:23 | maybe_digit | test.rs:318:16:320:9 | { ... } | |
701-
| test.rs:321:13:321:27 | TupleStructPat | test.rs:321:26:321:26 | x | match |
702-
| test.rs:321:13:321:27 | TupleStructPat | test.rs:322:13:322:24 | ...::None | no-match |
701+
| test.rs:321:13:321:27 | ...::Some(...) | test.rs:321:26:321:26 | x | match |
702+
| test.rs:321:13:321:27 | ...::Some(...) | test.rs:322:13:322:24 | ...::None | no-match |
703703
| test.rs:321:26:321:26 | x | test.rs:321:32:321:32 | x | match |
704704
| test.rs:321:32:321:32 | x | test.rs:321:36:321:36 | 5 | |
705705
| test.rs:321:32:321:36 | ... + ... | test.rs:316:9:323:9 | match ... { ... } | |
@@ -716,9 +716,9 @@ edges
716716
| test.rs:327:9:330:18 | ... && ... | test.rs:326:60:331:5 | { ... } | |
717717
| test.rs:327:10:330:9 | [boolean(false)] match r { ... } | test.rs:327:9:330:18 | ... && ... | false |
718718
| test.rs:327:10:330:9 | [boolean(true)] match r { ... } | test.rs:330:15:330:18 | cond | true |
719-
| test.rs:327:16:327:16 | r | test.rs:328:13:328:19 | TupleStructPat | |
720-
| test.rs:328:13:328:19 | TupleStructPat | test.rs:328:18:328:18 | a | match |
721-
| test.rs:328:13:328:19 | TupleStructPat | test.rs:329:13:329:13 | _ | no-match |
719+
| test.rs:327:16:327:16 | r | test.rs:328:13:328:19 | Some(...) | |
720+
| test.rs:328:13:328:19 | Some(...) | test.rs:328:18:328:18 | a | match |
721+
| test.rs:328:13:328:19 | Some(...) | test.rs:329:13:329:13 | _ | no-match |
722722
| test.rs:328:18:328:18 | a | test.rs:328:24:328:24 | a | match |
723723
| test.rs:328:24:328:24 | a | test.rs:327:10:330:9 | [boolean(false)] match r { ... } | false |
724724
| test.rs:328:24:328:24 | a | test.rs:327:10:330:9 | [boolean(true)] match r { ... } | true |
@@ -731,12 +731,12 @@ edges
731731
| test.rs:333:35:333:58 | ...: Result::<...> | test.rs:334:15:334:15 | r | |
732732
| test.rs:333:66:338:5 | { ... } | test.rs:333:5:338:5 | exit fn test_match_with_no_arms (normal) | |
733733
| test.rs:334:9:337:9 | match r { ... } | test.rs:333:66:338:5 | { ... } | |
734-
| test.rs:334:15:334:15 | r | test.rs:335:13:335:21 | TupleStructPat | |
735-
| test.rs:335:13:335:21 | TupleStructPat | test.rs:335:16:335:20 | value | match |
736-
| test.rs:335:13:335:21 | TupleStructPat | test.rs:336:13:336:22 | TupleStructPat | no-match |
734+
| test.rs:334:15:334:15 | r | test.rs:335:13:335:21 | Ok(...) | |
735+
| test.rs:335:13:335:21 | Ok(...) | test.rs:335:16:335:20 | value | match |
736+
| test.rs:335:13:335:21 | Ok(...) | test.rs:336:13:336:22 | Err(...) | no-match |
737737
| test.rs:335:16:335:20 | value | test.rs:335:26:335:30 | value | match |
738738
| test.rs:335:26:335:30 | value | test.rs:334:9:337:9 | match r { ... } | |
739-
| test.rs:336:13:336:22 | TupleStructPat | test.rs:336:17:336:21 | never | match |
739+
| test.rs:336:13:336:22 | Err(...) | test.rs:336:17:336:21 | never | match |
740740
| test.rs:336:17:336:21 | never | test.rs:336:33:336:37 | never | match |
741741
| test.rs:336:27:336:40 | match never { ... } | test.rs:334:9:337:9 | match r { ... } | |
742742
| test.rs:336:33:336:37 | never | test.rs:336:27:336:40 | match never { ... } | |
@@ -746,10 +746,10 @@ edges
746746
| test.rs:343:23:343:36 | ...: Option::<...> | test.rs:344:9:344:57 | let ... = a else {...} | |
747747
| test.rs:343:46:346:5 | { ... } | test.rs:343:5:346:5 | exit fn test_let_match (normal) | |
748748
| test.rs:344:9:344:57 | let ... = a else {...} | test.rs:344:23:344:23 | a | |
749-
| test.rs:344:13:344:19 | TupleStructPat | test.rs:344:18:344:18 | n | match |
750-
| test.rs:344:13:344:19 | TupleStructPat | test.rs:344:39:344:53 | MacroStmts | no-match |
749+
| test.rs:344:13:344:19 | Some(...) | test.rs:344:18:344:18 | n | match |
750+
| test.rs:344:13:344:19 | Some(...) | test.rs:344:39:344:53 | MacroStmts | no-match |
751751
| test.rs:344:18:344:18 | n | test.rs:345:9:345:9 | n | match |
752-
| test.rs:344:23:344:23 | a | test.rs:344:13:344:19 | TupleStructPat | |
752+
| test.rs:344:23:344:23 | a | test.rs:344:13:344:19 | Some(...) | |
753753
| test.rs:344:32:344:54 | ...::panic_fmt | test.rs:344:39:344:53 | "Expected some" | |
754754
| test.rs:344:32:344:54 | MacroExpr | test.rs:344:30:344:56 | { ... } | |
755755
| test.rs:344:39:344:53 | "Expected some" | test.rs:344:39:344:53 | FormatArgsExpr | |
@@ -770,9 +770,9 @@ edges
770770
| test.rs:349:9:352:10 | let ... = ... | test.rs:349:25:349:25 | m | |
771771
| test.rs:349:13:349:15 | ret | test.rs:353:9:353:12 | true | match |
772772
| test.rs:349:19:352:9 | match m { ... } | test.rs:349:13:349:15 | ret | |
773-
| test.rs:349:25:349:25 | m | test.rs:350:13:350:21 | TupleStructPat | |
774-
| test.rs:350:13:350:21 | TupleStructPat | test.rs:350:18:350:20 | ret | match |
775-
| test.rs:350:13:350:21 | TupleStructPat | test.rs:351:13:351:16 | None | no-match |
773+
| test.rs:349:25:349:25 | m | test.rs:350:13:350:21 | Some(...) | |
774+
| test.rs:350:13:350:21 | Some(...) | test.rs:350:18:350:20 | ret | match |
775+
| test.rs:350:13:350:21 | Some(...) | test.rs:351:13:351:16 | None | no-match |
776776
| test.rs:350:18:350:20 | ret | test.rs:350:26:350:28 | ret | match |
777777
| test.rs:350:26:350:28 | ret | test.rs:349:19:352:9 | match m { ... } | |
778778
| test.rs:351:13:351:16 | None | test.rs:351:28:351:32 | false | match |
@@ -1030,10 +1030,10 @@ edges
10301030
| test.rs:484:13:484:13 | x | test.rs:485:9:487:10 | let ... = x else {...} | match |
10311031
| test.rs:484:30:484:33 | None | test.rs:484:13:484:13 | x | |
10321032
| test.rs:485:9:487:10 | let ... = x else {...} | test.rs:485:23:485:23 | x | |
1033-
| test.rs:485:13:485:19 | TupleStructPat | test.rs:485:18:485:18 | y | match |
1034-
| test.rs:485:13:485:19 | TupleStructPat | test.rs:486:13:486:27 | ExprStmt | no-match |
1033+
| test.rs:485:13:485:19 | Some(...) | test.rs:485:18:485:18 | y | match |
1034+
| test.rs:485:13:485:19 | Some(...) | test.rs:486:13:486:27 | ExprStmt | no-match |
10351035
| test.rs:485:18:485:18 | y | test.rs:488:9:488:9 | 0 | match |
1036-
| test.rs:485:23:485:23 | x | test.rs:485:13:485:19 | TupleStructPat | |
1036+
| test.rs:485:23:485:23 | x | test.rs:485:13:485:19 | Some(...) | |
10371037
| test.rs:486:13:486:26 | break ''block 1 | test.rs:483:18:489:5 | 'block: { ... } | break |
10381038
| test.rs:486:13:486:27 | ExprStmt | test.rs:486:26:486:26 | 1 | |
10391039
| test.rs:486:26:486:26 | 1 | test.rs:486:13:486:26 | break ''block 1 | |

0 commit comments

Comments
 (0)