diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-07-29 10:29:32 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-07-29 11:36:43 +1000 |
| commit | 7ca4d1f6a155e802b31cfc1f0971f3916aa8e02d (patch) | |
| tree | 25b249c19d65744537e4f3186edda5948cd7aaa7 /tests/coverage/try-in-macro.bang.cov-map | |
| parent | 498ae9fed2e7d90821d70a048f3770f91af08957 (diff) | |
| download | rust-7ca4d1f6a155e802b31cfc1f0971f3916aa8e02d.tar.gz rust-7ca4d1f6a155e802b31cfc1f0971f3916aa8e02d.zip | |
coverage: Regression test for "function name is empty" bug
The bug was triggered by a particular usage of the `?` try operator in a proc-macro expansion. Thanks to lqd for the minimization. Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
Diffstat (limited to 'tests/coverage/try-in-macro.bang.cov-map')
| -rw-r--r-- | tests/coverage/try-in-macro.bang.cov-map | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/coverage/try-in-macro.bang.cov-map b/tests/coverage/try-in-macro.bang.cov-map new file mode 100644 index 00000000000..80bd91a993c --- /dev/null +++ b/tests/coverage/try-in-macro.bang.cov-map @@ -0,0 +1,20 @@ +Function name: <try_in_macro::MyEnum as try_in_macro::Arbitrary>::try_size_hint +Raw bytes (9): 0x[01, 01, 00, 01, 00, 23, 1c, 00, 1d] +Number of files: 1 +- file 0 => $DIR/try-in-macro.rs +Number of expressions: 0 +Number of file 0 mappings: 1 +- Code(Zero) at (prev + 35, 28) to (start + 0, 29) +Highest counter ID seen: (none) + +Function name: try_in_macro::main +Raw bytes (19): 0x[01, 01, 00, 03, 01, 29, 01, 00, 0a, 01, 01, 05, 00, 1a, 01, 01, 01, 00, 02] +Number of files: 1 +- file 0 => $DIR/try-in-macro.rs +Number of expressions: 0 +Number of file 0 mappings: 3 +- Code(Counter(0)) at (prev + 41, 1) to (start + 0, 10) +- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 26) +- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2) +Highest counter ID seen: c0 + |
