about summary refs log tree commit diff
path: root/tests/coverage/macro_name_span.coverage
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2023-12-01 18:23:16 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-01-04 03:53:56 +0300
commite1d12c8caf4c3dad0a28c88e5d454a3eb6e1f955 (patch)
tree46c1ba74e6a822b16b1145538fbfd8682d584944 /tests/coverage/macro_name_span.coverage
parent139fb2214675fed8143a12f6287a3a1e6e2e866d (diff)
downloadrust-e1d12c8caf4c3dad0a28c88e5d454a3eb6e1f955.tar.gz
rust-e1d12c8caf4c3dad0a28c88e5d454a3eb6e1f955.zip
macro_rules: Less hacky heuristic for using `tt` metavariable spans
Diffstat (limited to 'tests/coverage/macro_name_span.coverage')
-rw-r--r--tests/coverage/macro_name_span.coverage19
1 files changed, 3 insertions, 16 deletions
diff --git a/tests/coverage/macro_name_span.coverage b/tests/coverage/macro_name_span.coverage
index cadf7024657..28c88b1defa 100644
--- a/tests/coverage/macro_name_span.coverage
+++ b/tests/coverage/macro_name_span.coverage
@@ -1,16 +1,3 @@
-$DIR/auxiliary/macro_name_span_helper.rs:
-   LL|       |// edition: 2021
-   LL|       |
-   LL|       |#[macro_export]
-   LL|       |macro_rules! macro_that_defines_a_function {
-   LL|       |    (fn $name:ident () $body:tt) => {
-   LL|      1|        fn $name () -> () $body
-   LL|       |    }
-   LL|       |}
-   LL|       |
-   LL|       |// Non-executable comment.
-
-$DIR/macro_name_span.rs:
    LL|       |// edition: 2021
    LL|       |
    LL|       |// Regression test for <https://github.com/rust-lang/rust/issues/117788>.
@@ -32,8 +19,8 @@ $DIR/macro_name_span.rs:
    LL|       |}
    LL|       |
    LL|       |macro_name_span_helper::macro_that_defines_a_function! {
-   LL|       |    fn affected_function() {
-   LL|       |        macro_with_an_unreasonably_and_egregiously_long_name!();
-   LL|       |    }
+   LL|      1|    fn affected_function() {
+   LL|      1|        macro_with_an_unreasonably_and_egregiously_long_name!();
+   LL|      1|    }
    LL|       |}