Skip to content

Commit 815be6b

Browse files
committed
Rust: Refresh fixtures for the updated standard libraries
Use a local empty enum in the empty-match CFG fixture, since std::convert::Infallible is now a never-type alias. Regenerate outputs for the nightly todo! expansion and panic_abort's new dependency on alloc. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7f912f98-5361-47d2-b1f3-46af0843e5e0
1 parent 900e5dd commit 815be6b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎rust/ql/test/extractor-tests/crate_graph/crates.expected‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ main.rs:
9393
#-----| test -> Crate(test@0.0.0)
9494

9595
#-----| Crate(panic_abort@0.0.0)
96+
#-----| alloc -> Crate(alloc@0.0.0)
9697
#-----| core -> Crate(core@0.0.0)
9798

9899
#-----| Crate(panic_unwind@0.0.0)

‎rust/ql/test/library-tests/controlflow/test.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ mod question_mark_operator {
321321
}
322322

323323
mod match_expression {
324-
use std::convert::Infallible;
324+
enum Infallible {}
325325

326326
fn test_match(maybe_digit: Option<i64>) -> i64 {
327327
match maybe_digit {

‎rust/ql/test/library-tests/variables/Cfg.expected‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,12 @@ edges
258258
| main.rs:104:13:104:13 | x | main.rs:106:9:106:30 | ExprStmt | match |
259259
| main.rs:105:13:105:13 | x | main.rs:104:13:104:13 | x | |
260260
| main.rs:106:9:106:17 | print_str | main.rs:106:19:106:19 | x | |
261-
| main.rs:106:9:106:29 | print_str(...) | main.rs:107:9:107:13 | ...::panic | |
261+
| main.rs:106:9:106:29 | print_str(...) | main.rs:107:9:107:13 | ...::todo_default_msg | |
262262
| main.rs:106:9:106:30 | ExprStmt | main.rs:106:9:106:17 | print_str | |
263263
| main.rs:106:19:106:19 | x | main.rs:106:19:106:28 | x.unwrap() | |
264264
| main.rs:106:19:106:28 | x.unwrap() | main.rs:106:9:106:29 | print_str(...) | |
265-
| main.rs:107:9:107:13 | "not yet implemented" | main.rs:107:9:107:13 | ...::panic(...) | |
266-
| main.rs:107:9:107:13 | ...::panic | main.rs:107:9:107:13 | "not yet implemented" | |
267-
| main.rs:107:9:107:13 | ...::panic(...) | main.rs:107:9:107:13 | { ... } | |
265+
| main.rs:107:9:107:13 | ...::todo_default_msg | main.rs:107:9:107:13 | ...::todo_default_msg(...) | |
266+
| main.rs:107:9:107:13 | ...::todo_default_msg(...) | main.rs:107:9:107:13 | { ... } | |
268267
| main.rs:107:9:107:13 | { ... } | main.rs:107:9:107:15 | todo!... | |
269268
| main.rs:107:9:107:15 | MacroExpr | main.rs:103:10:108:5 | { ... } | |
270269
| main.rs:107:9:107:15 | todo!... | main.rs:107:9:107:15 | MacroExpr | |

0 commit comments

Comments
 (0)