Rust: Update expected test output

This commit is contained in:
Tom Hvitved
2026-01-13 10:24:10 +01:00
parent 5fb425fd67
commit 5d5bad6cd4
7 changed files with 2463 additions and 1900 deletions

View File

@@ -10,5 +10,5 @@ getTokenTree
| gen_macro_call.rs:7:5:7:29 | println!... | gen_macro_call.rs:7:13:7:29 | TokenTree |
| gen_macro_call.rs:7:14:7:28 | ...::format_args_nl!... | gen_macro_call.rs:7:14:7:28 | TokenTree |
getMacroCallExpansion
| gen_macro_call.rs:7:5:7:29 | println!... | gen_macro_call.rs:7:14:7:28 | MacroBlockExpr |
| gen_macro_call.rs:7:5:7:29 | println!... | gen_macro_call.rs:7:14:7:28 | { ... } |
| gen_macro_call.rs:7:14:7:28 | ...::format_args_nl!... | gen_macro_call.rs:7:14:7:28 | FormatArgsExpr |

File diff suppressed because it is too large Load Diff

View File

@@ -26,12 +26,12 @@ macro_calls
| macro_expansion.rs:31:5:31:16 | ...::format_args_nl!... | macro_expansion.rs:31:5:31:16 | FormatArgsExpr |
| macro_expansion.rs:31:5:31:16 | ...::format_args_nl!... | macro_expansion.rs:31:5:31:16 | FormatArgsExpr |
| macro_expansion.rs:31:5:31:16 | ...::format_args_nl!... | macro_expansion.rs:31:5:31:16 | FormatArgsExpr |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | MacroBlockExpr |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:31:5:31:16 | println!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:33:9:33:16 | hello!... | macro_expansion.rs:31:5:31:16 | { ... } |
| macro_expansion.rs:44:5:44:13 | def_x!... | macro_expansion.rs:44:5:44:10 | MacroItems |
| macro_expansion.rs:53:9:53:25 | concat!... | macro_expansion.rs:53:17:53:24 | "xy" |
| macro_expansion.rs:55:9:58:5 | my_macro!... | macro_expansion.rs:56:9:57:13 | MacroExpr |

View File

@@ -400,9 +400,9 @@ edges
| test.rs:171:26:171:28 | ...::format_args_nl!... | test.rs:171:26:171:28 | MacroExpr | |
| test.rs:171:26:171:28 | ExprStmt | test.rs:171:17:171:24 | ...::_print | |
| test.rs:171:26:171:28 | FormatArgsExpr | test.rs:171:26:171:28 | ...::format_args_nl!... | |
| test.rs:171:26:171:28 | MacroBlockExpr | test.rs:171:17:171:29 | println!... | |
| test.rs:171:26:171:28 | MacroExpr | test.rs:171:26:171:28 | ...::_print(...) | |
| test.rs:171:26:171:28 | { ... } | test.rs:171:26:171:28 | MacroBlockExpr | |
| test.rs:171:26:171:28 | { ... } | test.rs:171:17:171:29 | println!... | |
| test.rs:171:26:171:28 | { ... } | test.rs:171:26:171:28 | { ... } | |
| test.rs:172:20:174:13 | { ... } | test.rs:170:13:174:13 | if cond2 {...} else {...} | |
| test.rs:173:17:173:24 | ...::_print | test.rs:173:26:173:28 | "2\\n" | |
| test.rs:173:17:173:29 | MacroExpr | test.rs:172:20:174:13 | { ... } | |
@@ -413,9 +413,9 @@ edges
| test.rs:173:26:173:28 | ...::format_args_nl!... | test.rs:173:26:173:28 | MacroExpr | |
| test.rs:173:26:173:28 | ExprStmt | test.rs:173:17:173:24 | ...::_print | |
| test.rs:173:26:173:28 | FormatArgsExpr | test.rs:173:26:173:28 | ...::format_args_nl!... | |
| test.rs:173:26:173:28 | MacroBlockExpr | test.rs:173:17:173:29 | println!... | |
| test.rs:173:26:173:28 | MacroExpr | test.rs:173:26:173:28 | ...::_print(...) | |
| test.rs:173:26:173:28 | { ... } | test.rs:173:26:173:28 | MacroBlockExpr | |
| test.rs:173:26:173:28 | { ... } | test.rs:173:17:173:29 | println!... | |
| test.rs:173:26:173:28 | { ... } | test.rs:173:26:173:28 | { ... } | |
| test.rs:175:13:175:20 | ...::_print | test.rs:175:22:175:24 | "3\\n" | |
| test.rs:175:13:175:25 | MacroExpr | test.rs:169:18:176:9 | { ... } | |
| test.rs:175:13:175:25 | println!... | test.rs:175:13:175:25 | MacroExpr | |
@@ -425,9 +425,9 @@ edges
| test.rs:175:22:175:24 | ...::format_args_nl!... | test.rs:175:22:175:24 | MacroExpr | |
| test.rs:175:22:175:24 | ExprStmt | test.rs:175:13:175:20 | ...::_print | |
| test.rs:175:22:175:24 | FormatArgsExpr | test.rs:175:22:175:24 | ...::format_args_nl!... | |
| test.rs:175:22:175:24 | MacroBlockExpr | test.rs:175:13:175:25 | println!... | |
| test.rs:175:22:175:24 | MacroExpr | test.rs:175:22:175:24 | ...::_print(...) | |
| test.rs:175:22:175:24 | { ... } | test.rs:175:22:175:24 | MacroBlockExpr | |
| test.rs:175:22:175:24 | { ... } | test.rs:175:13:175:25 | println!... | |
| test.rs:175:22:175:24 | { ... } | test.rs:175:22:175:24 | { ... } | |
| test.rs:179:5:188:5 | enter fn test_nested_if_match | test.rs:179:29:179:29 | a | |
| test.rs:179:5:188:5 | exit fn test_nested_if_match (normal) | test.rs:179:5:188:5 | exit fn test_nested_if_match | |
| test.rs:179:29:179:29 | a | test.rs:179:29:179:29 | a | |
@@ -905,11 +905,11 @@ edges
| test.rs:363:39:363:53 | ...::panic_fmt(...) | test.rs:363:39:363:53 | { ... } | |
| test.rs:363:39:363:53 | ExprStmt | test.rs:363:32:363:37 | ...::panic_fmt | |
| test.rs:363:39:363:53 | FormatArgsExpr | test.rs:363:39:363:53 | ...::const_format_args!... | |
| test.rs:363:39:363:53 | MacroBlockExpr | test.rs:363:32:363:54 | panic!... | |
| test.rs:363:39:363:53 | MacroBlockExpr | test.rs:363:39:363:53 | ...::panic_2021!... | |
| test.rs:363:39:363:53 | MacroExpr | test.rs:363:39:363:53 | ...::panic_fmt(...) | |
| test.rs:363:39:363:53 | MacroExpr | test.rs:363:39:363:53 | MacroBlockExpr | |
| test.rs:363:39:363:53 | { ... } | test.rs:363:39:363:53 | MacroBlockExpr | |
| test.rs:363:39:363:53 | MacroExpr | test.rs:363:39:363:53 | { ... } | |
| test.rs:363:39:363:53 | { ... } | test.rs:363:32:363:54 | panic!... | |
| test.rs:363:39:363:53 | { ... } | test.rs:363:39:363:53 | ...::panic_2021!... | |
| test.rs:363:39:363:53 | { ... } | test.rs:363:39:363:53 | { ... } | |
| test.rs:364:9:364:9 | n | test.rs:362:46:365:5 | { ... } | |
| test.rs:367:5:373:5 | enter fn test_let_with_return | test.rs:367:29:367:29 | m | |
| test.rs:367:5:373:5 | exit fn test_let_with_return (normal) | test.rs:367:5:373:5 | exit fn test_let_with_return | |
@@ -1190,9 +1190,9 @@ edges
| test.rs:495:18:495:32 | ...::format_args_nl!... | test.rs:495:18:495:32 | MacroExpr | |
| test.rs:495:18:495:32 | ExprStmt | test.rs:495:9:495:16 | ...::_print | |
| test.rs:495:18:495:32 | FormatArgsExpr | test.rs:495:18:495:32 | ...::format_args_nl!... | |
| test.rs:495:18:495:32 | MacroBlockExpr | test.rs:495:9:495:33 | println!... | |
| test.rs:495:18:495:32 | MacroExpr | test.rs:495:18:495:32 | ...::_print(...) | |
| test.rs:495:18:495:32 | { ... } | test.rs:495:18:495:32 | MacroBlockExpr | |
| test.rs:495:18:495:32 | { ... } | test.rs:495:9:495:33 | println!... | |
| test.rs:495:18:495:32 | { ... } | test.rs:495:18:495:32 | { ... } | |
| test.rs:498:5:517:5 | enter fn async_block | test.rs:498:26:498:26 | b | |
| test.rs:498:5:517:5 | exit fn async_block (normal) | test.rs:498:5:517:5 | exit fn async_block | |
| test.rs:498:26:498:26 | b | test.rs:498:26:498:26 | b | |
@@ -1214,9 +1214,9 @@ edges
| test.rs:500:22:500:40 | ...::format_args_nl!... | test.rs:500:22:500:40 | MacroExpr | |
| test.rs:500:22:500:40 | ExprStmt | test.rs:500:13:500:20 | ...::_print | |
| test.rs:500:22:500:40 | FormatArgsExpr | test.rs:500:22:500:40 | ...::format_args_nl!... | |
| test.rs:500:22:500:40 | MacroBlockExpr | test.rs:500:13:500:41 | println!... | |
| test.rs:500:22:500:40 | MacroExpr | test.rs:500:22:500:40 | ...::_print(...) | |
| test.rs:500:22:500:40 | { ... } | test.rs:500:22:500:40 | MacroBlockExpr | |
| test.rs:500:22:500:40 | { ... } | test.rs:500:13:500:41 | println!... | |
| test.rs:500:22:500:40 | { ... } | test.rs:500:22:500:40 | { ... } | |
| test.rs:502:9:504:10 | let ... = ... | test.rs:502:31:504:9 | { ... } | |
| test.rs:502:13:502:27 | say_how_are_you | test.rs:502:13:502:27 | say_how_are_you | |
| test.rs:502:13:502:27 | say_how_are_you | test.rs:505:9:505:28 | let ... = ... | match |
@@ -1232,9 +1232,9 @@ edges
| test.rs:503:22:503:35 | ...::format_args_nl!... | test.rs:503:22:503:35 | MacroExpr | |
| test.rs:503:22:503:35 | ExprStmt | test.rs:503:13:503:20 | ...::_print | |
| test.rs:503:22:503:35 | FormatArgsExpr | test.rs:503:22:503:35 | ...::format_args_nl!... | |
| test.rs:503:22:503:35 | MacroBlockExpr | test.rs:503:13:503:36 | println!... | |
| test.rs:503:22:503:35 | MacroExpr | test.rs:503:22:503:35 | ...::_print(...) | |
| test.rs:503:22:503:35 | { ... } | test.rs:503:22:503:35 | MacroBlockExpr | |
| test.rs:503:22:503:35 | { ... } | test.rs:503:13:503:36 | println!... | |
| test.rs:503:22:503:35 | { ... } | test.rs:503:22:503:35 | { ... } | |
| test.rs:505:9:505:28 | let ... = ... | test.rs:505:20:505:27 | { ... } | |
| test.rs:505:13:505:16 | noop | test.rs:505:13:505:16 | noop | |
| test.rs:505:13:505:16 | noop | test.rs:506:9:506:26 | ExprStmt | match |
@@ -1293,15 +1293,15 @@ edges
| test.rs:533:13:533:19 | ...::panic_explicit(...) | test.rs:533:13:533:19 | { ... } | |
| test.rs:533:13:533:19 | ExprStmt | test.rs:533:13:533:19 | fn panic_cold_explicit | |
| test.rs:533:13:533:19 | ExprStmt | test.rs:533:13:533:19 | panic_cold_explicit | |
| test.rs:533:13:533:19 | MacroBlockExpr | test.rs:533:13:533:19 | ...::panic_2021!... | |
| test.rs:533:13:533:19 | MacroExpr | test.rs:533:13:533:19 | { ... } | |
| test.rs:533:13:533:19 | enter fn panic_cold_explicit | test.rs:533:13:533:19 | ...::panic_explicit | |
| test.rs:533:13:533:19 | exit fn panic_cold_explicit (normal) | test.rs:533:13:533:19 | exit fn panic_cold_explicit | |
| test.rs:533:13:533:19 | fn panic_cold_explicit | test.rs:533:13:533:19 | ExprStmt | |
| test.rs:533:13:533:19 | panic_cold_explicit | test.rs:533:13:533:19 | panic_cold_explicit(...) | |
| test.rs:533:13:533:19 | panic_cold_explicit(...) | test.rs:533:13:533:19 | { ... } | |
| test.rs:533:13:533:19 | { ... } | test.rs:533:13:533:19 | MacroBlockExpr | |
| test.rs:533:13:533:19 | { ... } | test.rs:533:13:533:19 | ...::panic_2021!... | |
| test.rs:533:13:533:19 | { ... } | test.rs:533:13:533:19 | exit fn panic_cold_explicit (normal) | |
| test.rs:533:13:533:19 | { ... } | test.rs:533:13:533:19 | { ... } | |
| test.rs:533:13:533:19 | { ... } | test.rs:533:21:533:48 | if ... {...} | |
| test.rs:533:13:533:49 | MacroExpr | test.rs:532:9:534:9 | { ... } | |
| test.rs:533:13:533:49 | assert!... | test.rs:533:13:533:49 | MacroExpr | |
@@ -1310,11 +1310,11 @@ edges
| test.rs:533:21:533:44 | ...::size_of::<...>(...) | test.rs:533:48:533:48 | 0 | |
| test.rs:533:21:533:48 | ... > ... | test.rs:533:21:533:48 | [boolean(false)] ! ... | true |
| test.rs:533:21:533:48 | ... > ... | test.rs:533:21:533:48 | [boolean(true)] ! ... | false |
| test.rs:533:21:533:48 | MacroBlockExpr | test.rs:533:13:533:49 | assert!... | |
| test.rs:533:21:533:48 | [boolean(false)] ! ... | test.rs:533:21:533:48 | if ... {...} | false |
| test.rs:533:21:533:48 | [boolean(true)] ! ... | test.rs:533:13:533:19 | ExprStmt | true |
| test.rs:533:21:533:48 | if ... {...} | test.rs:533:21:533:48 | { ... } | |
| test.rs:533:21:533:48 | { ... } | test.rs:533:21:533:48 | MacroBlockExpr | |
| test.rs:533:21:533:48 | { ... } | test.rs:533:13:533:49 | assert!... | |
| test.rs:533:21:533:48 | { ... } | test.rs:533:21:533:48 | { ... } | |
| test.rs:533:48:533:48 | 0 | test.rs:533:21:533:48 | ... > ... | |
| test.rs:536:9:536:10 | 42 | test.rs:529:41:537:5 | { ... } | |
| test.rs:539:5:548:5 | enter fn const_block_panic | test.rs:540:9:540:30 | Const | |

View File

@@ -11,17 +11,17 @@ localStep
| main.rs:7:9:7:9 | s | main.rs:7:9:7:9 | s |
| main.rs:7:9:7:14 | ...: i64 | main.rs:7:9:7:9 | s |
| main.rs:8:14:8:20 | FormatArgsExpr | main.rs:8:14:8:20 | MacroExpr |
| main.rs:8:14:8:20 | MacroBlockExpr | main.rs:8:5:8:21 | MacroExpr |
| main.rs:8:14:8:20 | [post] MacroExpr | main.rs:8:14:8:20 | [post] FormatArgsExpr |
| main.rs:8:14:8:20 | { ... } | main.rs:8:14:8:20 | MacroBlockExpr |
| main.rs:8:14:8:20 | { ... } | main.rs:8:5:8:21 | MacroExpr |
| main.rs:8:14:8:20 | { ... } | main.rs:8:14:8:20 | { ... } |
| main.rs:11:13:11:14 | [SSA] sr | main.rs:12:20:12:21 | sr |
| main.rs:11:13:11:14 | sr | main.rs:11:13:11:14 | [SSA] sr |
| main.rs:11:13:11:14 | sr | main.rs:11:13:11:14 | sr |
| main.rs:11:13:11:20 | ...: ... | main.rs:11:13:11:14 | sr |
| main.rs:12:14:12:21 | FormatArgsExpr | main.rs:12:14:12:21 | MacroExpr |
| main.rs:12:14:12:21 | MacroBlockExpr | main.rs:12:5:12:22 | MacroExpr |
| main.rs:12:14:12:21 | [post] MacroExpr | main.rs:12:14:12:21 | [post] FormatArgsExpr |
| main.rs:12:14:12:21 | { ... } | main.rs:12:14:12:21 | MacroBlockExpr |
| main.rs:12:14:12:21 | { ... } | main.rs:12:5:12:22 | MacroExpr |
| main.rs:12:14:12:21 | { ... } | main.rs:12:14:12:21 | { ... } |
| main.rs:23:9:23:9 | [SSA] s | main.rs:24:10:24:10 | s |
| main.rs:23:9:23:9 | s | main.rs:23:9:23:9 | [SSA] s |
| main.rs:23:9:23:9 | s | main.rs:23:9:23:9 | s |
@@ -697,9 +697,9 @@ localStep
| main.rs:500:16:500:16 | s | main.rs:500:16:500:16 | s |
| main.rs:500:16:500:24 | ...: String | main.rs:500:16:500:16 | s |
| main.rs:501:14:501:20 | FormatArgsExpr | main.rs:501:14:501:20 | MacroExpr |
| main.rs:501:14:501:20 | MacroBlockExpr | main.rs:501:5:501:21 | MacroExpr |
| main.rs:501:14:501:20 | [post] MacroExpr | main.rs:501:14:501:20 | [post] FormatArgsExpr |
| main.rs:501:14:501:20 | { ... } | main.rs:501:14:501:20 | MacroBlockExpr |
| main.rs:501:14:501:20 | { ... } | main.rs:501:5:501:21 | MacroExpr |
| main.rs:501:14:501:20 | { ... } | main.rs:501:14:501:20 | { ... } |
| main.rs:505:9:505:9 | [SSA] a | main.rs:506:13:506:13 | a |
| main.rs:505:9:505:9 | a | main.rs:505:9:505:9 | [SSA] a |
| main.rs:505:9:505:9 | a | main.rs:505:9:505:9 | a |

View File

@@ -14,9 +14,9 @@ edges
| main.rs:7:14:7:20 | ...::format_args_nl!... | main.rs:7:14:7:20 | MacroExpr | |
| main.rs:7:14:7:20 | ExprStmt | main.rs:7:5:7:12 | ...::_print | |
| main.rs:7:14:7:20 | FormatArgsExpr | main.rs:7:14:7:20 | ...::format_args_nl!... | |
| main.rs:7:14:7:20 | MacroBlockExpr | main.rs:7:5:7:21 | println!... | |
| main.rs:7:14:7:20 | MacroExpr | main.rs:7:14:7:20 | ...::_print(...) | |
| main.rs:7:14:7:20 | { ... } | main.rs:7:14:7:20 | MacroBlockExpr | |
| main.rs:7:14:7:20 | { ... } | main.rs:7:5:7:21 | println!... | |
| main.rs:7:14:7:20 | { ... } | main.rs:7:14:7:20 | { ... } | |
| main.rs:7:20:7:20 | s | main.rs:7:14:7:20 | FormatArgsExpr | |
| main.rs:10:1:13:1 | enter fn print_i64 | main.rs:10:14:10:14 | i | |
| main.rs:10:1:13:1 | exit fn print_i64 (normal) | main.rs:10:1:13:1 | exit fn print_i64 | |
@@ -33,9 +33,9 @@ edges
| main.rs:12:14:12:20 | ...::format_args_nl!... | main.rs:12:14:12:20 | MacroExpr | |
| main.rs:12:14:12:20 | ExprStmt | main.rs:12:5:12:12 | ...::_print | |
| main.rs:12:14:12:20 | FormatArgsExpr | main.rs:12:14:12:20 | ...::format_args_nl!... | |
| main.rs:12:14:12:20 | MacroBlockExpr | main.rs:12:5:12:21 | println!... | |
| main.rs:12:14:12:20 | MacroExpr | main.rs:12:14:12:20 | ...::_print(...) | |
| main.rs:12:14:12:20 | { ... } | main.rs:12:14:12:20 | MacroBlockExpr | |
| main.rs:12:14:12:20 | { ... } | main.rs:12:5:12:21 | println!... | |
| main.rs:12:14:12:20 | { ... } | main.rs:12:14:12:20 | { ... } | |
| main.rs:12:20:12:20 | i | main.rs:12:14:12:20 | FormatArgsExpr | |
| main.rs:15:1:17:1 | enter fn print_i64_ref | main.rs:15:18:15:18 | i | |
| main.rs:15:1:17:1 | exit fn print_i64_ref (normal) | main.rs:15:1:17:1 | exit fn print_i64_ref | |
@@ -264,8 +264,8 @@ edges
| main.rs:106:19:106:28 | x.unwrap() | main.rs:106:9:106:29 | print_str(...) | |
| main.rs:107:9:107:13 | "not yet implemented" | main.rs:107:9:107:13 | ...::panic(...) | |
| main.rs:107:9:107:13 | ...::panic | main.rs:107:9:107:13 | "not yet implemented" | |
| main.rs:107:9:107:13 | ...::panic(...) | main.rs:107:9:107:13 | MacroBlockExpr | |
| main.rs:107:9:107:13 | MacroBlockExpr | main.rs:107:9:107:15 | todo!... | |
| main.rs:107:9:107:13 | ...::panic(...) | main.rs:107:9:107:13 | { ... } | |
| main.rs:107:9:107:13 | { ... } | main.rs:107:9:107:15 | todo!... | |
| main.rs:107:9:107:15 | MacroExpr | main.rs:103:10:108:5 | { ... } | |
| main.rs:107:9:107:15 | todo!... | main.rs:107:9:107:15 | MacroExpr | |
| main.rs:109:5:109:13 | print_str | main.rs:109:15:109:15 | x | |
@@ -451,9 +451,9 @@ edges
| main.rs:192:22:192:51 | ...::format_args_nl!... | main.rs:192:22:192:51 | MacroExpr | |
| main.rs:192:22:192:51 | ExprStmt | main.rs:192:13:192:20 | ...::_print | |
| main.rs:192:22:192:51 | FormatArgsExpr | main.rs:192:22:192:51 | ...::format_args_nl!... | |
| main.rs:192:22:192:51 | MacroBlockExpr | main.rs:192:13:192:52 | println!... | |
| main.rs:192:22:192:51 | MacroExpr | main.rs:192:22:192:51 | ...::_print(...) | |
| main.rs:192:22:192:51 | { ... } | main.rs:192:22:192:51 | MacroBlockExpr | |
| main.rs:192:22:192:51 | { ... } | main.rs:192:13:192:52 | println!... | |
| main.rs:192:22:192:51 | { ... } | main.rs:192:22:192:51 | { ... } | |
| main.rs:194:9:194:29 | ...::Hello {...} | main.rs:194:26:194:27 | id | match |
| main.rs:194:26:194:27 | id | main.rs:194:26:194:27 | id | |
| main.rs:194:26:194:27 | id | main.rs:197:13:197:21 | print_i64 | match |