From fc5f0f7ee58a34ae0bc21e63a442ca069a0cf9d1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 24 Oct 2025 10:51:21 -0500 Subject: [PATCH] test(frontmatter): Rename tests to make coverage more obvious When working on the stabilization report, I found it annoying to determine what cases were covered because areas of the frontmatter feature were either not in the file name or in inconsistent locations. This moves the area of frontmatter to the start of the file name and the moves to more specific the later in the file name so coverage is easier to see. --- ...ns-whitespace.rs => content-contains-whitespace.rs} | 0 ...lexible-tokens.rs => content-non-lexible-tokens.rs} | 0 .../{escape.rs => escape-hyphens-leading.rs} | 0 ...frontmatter-2.rs => escape-hyphens-nonleading-1.rs} | 0 ...ner-hyphens-1.rs => escape-hyphens-nonleading-2.rs} | 0 ...ner-hyphens-2.rs => escape-hyphens-nonleading-3.rs} | 0 .../{extra-after-end.rs => fence-close-extra-after.rs} | 0 ...after-end.stderr => fence-close-extra-after.stderr} | 2 +- ...tter-whitespace-2.rs => fence-indented-mismatch.rs} | 0 ...tespace-2.stderr => fence-indented-mismatch.stderr} | 6 +++--- .../{frontmatter-whitespace-1.rs => fence-indented.rs} | 0 ...atter-whitespace-1.stderr => fence-indented.stderr} | 8 ++++---- .../frontmatter/{mismatch-1.rs => fence-mismatch-1.rs} | 0 .../{mismatch-1.stderr => fence-mismatch-1.stderr} | 2 +- .../frontmatter/{mismatch-2.rs => fence-mismatch-2.rs} | 0 .../{mismatch-2.stderr => fence-mismatch-2.stderr} | 4 ++-- .../frontmatter/{unclosed-1.rs => fence-unclosed-1.rs} | 0 .../{unclosed-1.stderr => fence-unclosed-1.stderr} | 4 ++-- .../frontmatter/{unclosed-2.rs => fence-unclosed-2.rs} | 0 .../{unclosed-2.stderr => fence-unclosed-2.stderr} | 6 +++--- .../frontmatter/{unclosed-3.rs => fence-unclosed-3.rs} | 0 .../{unclosed-3.stderr => fence-unclosed-3.stderr} | 10 +++++----- .../frontmatter/{unclosed-4.rs => fence-unclosed-4.rs} | 0 .../{unclosed-4.stderr => fence-unclosed-4.stderr} | 4 ++-- .../frontmatter/{unclosed-5.rs => fence-unclosed-5.rs} | 0 .../{unclosed-5.stderr => fence-unclosed-5.stderr} | 6 +++--- .../frontmatter/{unclosed-6.rs => fence-unclosed-6.rs} | 0 .../{unclosed-6.stderr => fence-unclosed-6.stderr} | 4 ++-- ...-whitespace-3.rs => fence-whitespace-trailing-1.rs} | 0 ...-whitespace-4.rs => fence-whitespace-trailing-2.rs} | 0 .../{infostring-fail.rs => infostring-comma.rs} | 0 ...{infostring-fail.stderr => infostring-comma.stderr} | 2 +- ...infostring-leading.rs => infostring-dot-leading.rs} | 0 ...ng-leading.stderr => infostring-dot-leading.stderr} | 2 +- ...ing-non-leading.rs => infostring-dot-nonleading.rs} | 0 ...ostring-leading.rs => infostring-hyphen-leading.rs} | 0 ...leading.stderr => infostring-hyphen-leading.stderr} | 2 +- ...-non-leading.rs => infostring-hyphen-nonleading.rs} | 0 .../{space-in-infostring.rs => infostring-space.rs} | 0 ...ce-in-infostring.stderr => infostring-space.stderr} | 2 +- .../{shebang.rs => location-after-shebang.rs} | 0 ...matter-after-tokens.rs => location-after-tokens.rs} | 0 ...fter-tokens.stderr => location-after-tokens.stderr} | 2 +- ...n-expr-ctxt.rs => location-include-in-expr-ctxt.rs} | 0 ...n-item-ctxt.rs => location-include-in-item-ctxt.rs} | 0 ...cro-observer.rs => location-proc-macro-observer.rs} | 0 46 files changed, 33 insertions(+), 33 deletions(-) rename tests/ui/frontmatter/{frontmatter-contains-whitespace.rs => content-contains-whitespace.rs} (100%) rename tests/ui/frontmatter/{frontmatter-non-lexible-tokens.rs => content-non-lexible-tokens.rs} (100%) rename tests/ui/frontmatter/{escape.rs => escape-hyphens-leading.rs} (100%) rename tests/ui/frontmatter/{multifrontmatter-2.rs => escape-hyphens-nonleading-1.rs} (100%) rename tests/ui/frontmatter/{frontmatter-inner-hyphens-1.rs => escape-hyphens-nonleading-2.rs} (100%) rename tests/ui/frontmatter/{frontmatter-inner-hyphens-2.rs => escape-hyphens-nonleading-3.rs} (100%) rename tests/ui/frontmatter/{extra-after-end.rs => fence-close-extra-after.rs} (100%) rename tests/ui/frontmatter/{extra-after-end.stderr => fence-close-extra-after.stderr} (76%) rename tests/ui/frontmatter/{frontmatter-whitespace-2.rs => fence-indented-mismatch.rs} (100%) rename tests/ui/frontmatter/{frontmatter-whitespace-2.stderr => fence-indented-mismatch.stderr} (81%) rename tests/ui/frontmatter/{frontmatter-whitespace-1.rs => fence-indented.rs} (100%) rename tests/ui/frontmatter/{frontmatter-whitespace-1.stderr => fence-indented.stderr} (69%) rename tests/ui/frontmatter/{mismatch-1.rs => fence-mismatch-1.rs} (100%) rename tests/ui/frontmatter/{mismatch-1.stderr => fence-mismatch-1.stderr} (88%) rename tests/ui/frontmatter/{mismatch-2.rs => fence-mismatch-2.rs} (100%) rename tests/ui/frontmatter/{mismatch-2.stderr => fence-mismatch-2.stderr} (84%) rename tests/ui/frontmatter/{unclosed-1.rs => fence-unclosed-1.rs} (100%) rename tests/ui/frontmatter/{unclosed-1.stderr => fence-unclosed-1.stderr} (73%) rename tests/ui/frontmatter/{unclosed-2.rs => fence-unclosed-2.rs} (100%) rename tests/ui/frontmatter/{unclosed-2.stderr => fence-unclosed-2.stderr} (86%) rename tests/ui/frontmatter/{unclosed-3.rs => fence-unclosed-3.rs} (100%) rename tests/ui/frontmatter/{unclosed-3.stderr => fence-unclosed-3.stderr} (79%) rename tests/ui/frontmatter/{unclosed-4.rs => fence-unclosed-4.rs} (100%) rename tests/ui/frontmatter/{unclosed-4.stderr => fence-unclosed-4.stderr} (73%) rename tests/ui/frontmatter/{unclosed-5.rs => fence-unclosed-5.rs} (100%) rename tests/ui/frontmatter/{unclosed-5.stderr => fence-unclosed-5.stderr} (85%) rename tests/ui/frontmatter/{unclosed-6.rs => fence-unclosed-6.rs} (100%) rename tests/ui/frontmatter/{unclosed-6.stderr => fence-unclosed-6.stderr} (75%) rename tests/ui/frontmatter/{frontmatter-whitespace-3.rs => fence-whitespace-trailing-1.rs} (100%) rename tests/ui/frontmatter/{frontmatter-whitespace-4.rs => fence-whitespace-trailing-2.rs} (100%) rename tests/ui/frontmatter/{infostring-fail.rs => infostring-comma.rs} (100%) rename tests/ui/frontmatter/{infostring-fail.stderr => infostring-comma.stderr} (86%) rename tests/ui/frontmatter/{dot-in-infostring-leading.rs => infostring-dot-leading.rs} (100%) rename tests/ui/frontmatter/{dot-in-infostring-leading.stderr => infostring-dot-leading.stderr} (83%) rename tests/ui/frontmatter/{dot-in-infostring-non-leading.rs => infostring-dot-nonleading.rs} (100%) rename tests/ui/frontmatter/{hyphen-in-infostring-leading.rs => infostring-hyphen-leading.rs} (100%) rename tests/ui/frontmatter/{hyphen-in-infostring-leading.stderr => infostring-hyphen-leading.stderr} (82%) rename tests/ui/frontmatter/{hyphen-in-infostring-non-leading.rs => infostring-hyphen-nonleading.rs} (100%) rename tests/ui/frontmatter/{space-in-infostring.rs => infostring-space.rs} (100%) rename tests/ui/frontmatter/{space-in-infostring.stderr => infostring-space.stderr} (86%) rename tests/ui/frontmatter/{shebang.rs => location-after-shebang.rs} (100%) rename tests/ui/frontmatter/{frontmatter-after-tokens.rs => location-after-tokens.rs} (100%) rename tests/ui/frontmatter/{frontmatter-after-tokens.stderr => location-after-tokens.stderr} (84%) rename tests/ui/frontmatter/{include-in-expr-ctxt.rs => location-include-in-expr-ctxt.rs} (100%) rename tests/ui/frontmatter/{include-in-item-ctxt.rs => location-include-in-item-ctxt.rs} (100%) rename tests/ui/frontmatter/{proc-macro-observer.rs => location-proc-macro-observer.rs} (100%) diff --git a/tests/ui/frontmatter/frontmatter-contains-whitespace.rs b/tests/ui/frontmatter/content-contains-whitespace.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-contains-whitespace.rs rename to tests/ui/frontmatter/content-contains-whitespace.rs diff --git a/tests/ui/frontmatter/frontmatter-non-lexible-tokens.rs b/tests/ui/frontmatter/content-non-lexible-tokens.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-non-lexible-tokens.rs rename to tests/ui/frontmatter/content-non-lexible-tokens.rs diff --git a/tests/ui/frontmatter/escape.rs b/tests/ui/frontmatter/escape-hyphens-leading.rs similarity index 100% rename from tests/ui/frontmatter/escape.rs rename to tests/ui/frontmatter/escape-hyphens-leading.rs diff --git a/tests/ui/frontmatter/multifrontmatter-2.rs b/tests/ui/frontmatter/escape-hyphens-nonleading-1.rs similarity index 100% rename from tests/ui/frontmatter/multifrontmatter-2.rs rename to tests/ui/frontmatter/escape-hyphens-nonleading-1.rs diff --git a/tests/ui/frontmatter/frontmatter-inner-hyphens-1.rs b/tests/ui/frontmatter/escape-hyphens-nonleading-2.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-inner-hyphens-1.rs rename to tests/ui/frontmatter/escape-hyphens-nonleading-2.rs diff --git a/tests/ui/frontmatter/frontmatter-inner-hyphens-2.rs b/tests/ui/frontmatter/escape-hyphens-nonleading-3.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-inner-hyphens-2.rs rename to tests/ui/frontmatter/escape-hyphens-nonleading-3.rs diff --git a/tests/ui/frontmatter/extra-after-end.rs b/tests/ui/frontmatter/fence-close-extra-after.rs similarity index 100% rename from tests/ui/frontmatter/extra-after-end.rs rename to tests/ui/frontmatter/fence-close-extra-after.rs diff --git a/tests/ui/frontmatter/extra-after-end.stderr b/tests/ui/frontmatter/fence-close-extra-after.stderr similarity index 76% rename from tests/ui/frontmatter/extra-after-end.stderr rename to tests/ui/frontmatter/fence-close-extra-after.stderr index c2770fdfd41f..a54a67152f97 100644 --- a/tests/ui/frontmatter/extra-after-end.stderr +++ b/tests/ui/frontmatter/fence-close-extra-after.stderr @@ -1,5 +1,5 @@ error: extra characters after frontmatter close are not allowed - --> $DIR/extra-after-end.rs:2:1 + --> $DIR/fence-close-extra-after.rs:2:1 | LL | ---cargo | ^^^^^^^^ diff --git a/tests/ui/frontmatter/frontmatter-whitespace-2.rs b/tests/ui/frontmatter/fence-indented-mismatch.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-whitespace-2.rs rename to tests/ui/frontmatter/fence-indented-mismatch.rs diff --git a/tests/ui/frontmatter/frontmatter-whitespace-2.stderr b/tests/ui/frontmatter/fence-indented-mismatch.stderr similarity index 81% rename from tests/ui/frontmatter/frontmatter-whitespace-2.stderr rename to tests/ui/frontmatter/fence-indented-mismatch.stderr index 2ae63cdc6fe4..d85add165210 100644 --- a/tests/ui/frontmatter/frontmatter-whitespace-2.stderr +++ b/tests/ui/frontmatter/fence-indented-mismatch.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/frontmatter-whitespace-2.rs:1:1 + --> $DIR/fence-indented-mismatch.rs:1:1 | LL | / ---cargo ... | @@ -7,13 +7,13 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/frontmatter-whitespace-2.rs:1:1 + --> $DIR/fence-indented-mismatch.rs:1:1 | LL | ---cargo | ^^^ warning: use of a double negation - --> $DIR/frontmatter-whitespace-2.rs:9:6 + --> $DIR/fence-indented-mismatch.rs:9:6 | LL | ---x | ^^^ diff --git a/tests/ui/frontmatter/frontmatter-whitespace-1.rs b/tests/ui/frontmatter/fence-indented.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-whitespace-1.rs rename to tests/ui/frontmatter/fence-indented.rs diff --git a/tests/ui/frontmatter/frontmatter-whitespace-1.stderr b/tests/ui/frontmatter/fence-indented.stderr similarity index 69% rename from tests/ui/frontmatter/frontmatter-whitespace-1.stderr rename to tests/ui/frontmatter/fence-indented.stderr index f16788fa3992..777db0976d08 100644 --- a/tests/ui/frontmatter/frontmatter-whitespace-1.stderr +++ b/tests/ui/frontmatter/fence-indented.stderr @@ -1,17 +1,17 @@ error: invalid preceding whitespace for frontmatter opening - --> $DIR/frontmatter-whitespace-1.rs:1:1 + --> $DIR/fence-indented.rs:1:1 | LL | --- | ^^^^^ | note: frontmatter opening should not be preceded by whitespace - --> $DIR/frontmatter-whitespace-1.rs:1:1 + --> $DIR/fence-indented.rs:1:1 | LL | --- | ^^ error: unclosed frontmatter - --> $DIR/frontmatter-whitespace-1.rs:1:3 + --> $DIR/fence-indented.rs:1:3 | LL | / --- LL | | @@ -21,7 +21,7 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/frontmatter-whitespace-1.rs:1:3 + --> $DIR/fence-indented.rs:1:3 | LL | --- | ^^^ diff --git a/tests/ui/frontmatter/mismatch-1.rs b/tests/ui/frontmatter/fence-mismatch-1.rs similarity index 100% rename from tests/ui/frontmatter/mismatch-1.rs rename to tests/ui/frontmatter/fence-mismatch-1.rs diff --git a/tests/ui/frontmatter/mismatch-1.stderr b/tests/ui/frontmatter/fence-mismatch-1.stderr similarity index 88% rename from tests/ui/frontmatter/mismatch-1.stderr rename to tests/ui/frontmatter/fence-mismatch-1.stderr index b6e29294d9e1..f971039522cd 100644 --- a/tests/ui/frontmatter/mismatch-1.stderr +++ b/tests/ui/frontmatter/fence-mismatch-1.stderr @@ -1,5 +1,5 @@ error: frontmatter close does not match the opening - --> $DIR/mismatch-1.rs:1:1 + --> $DIR/fence-mismatch-1.rs:1:1 | LL | ---cargo | ^-- diff --git a/tests/ui/frontmatter/mismatch-2.rs b/tests/ui/frontmatter/fence-mismatch-2.rs similarity index 100% rename from tests/ui/frontmatter/mismatch-2.rs rename to tests/ui/frontmatter/fence-mismatch-2.rs diff --git a/tests/ui/frontmatter/mismatch-2.stderr b/tests/ui/frontmatter/fence-mismatch-2.stderr similarity index 84% rename from tests/ui/frontmatter/mismatch-2.stderr rename to tests/ui/frontmatter/fence-mismatch-2.stderr index 90bb7b80bcea..8378ae20901e 100644 --- a/tests/ui/frontmatter/mismatch-2.stderr +++ b/tests/ui/frontmatter/fence-mismatch-2.stderr @@ -1,5 +1,5 @@ error: frontmatter close does not match the opening - --> $DIR/mismatch-2.rs:1:1 + --> $DIR/fence-mismatch-2.rs:1:1 | LL | ----cargo | ^--- @@ -13,7 +13,7 @@ LL | | ---cargo | ...while the close has 3 dashes error: extra characters after frontmatter close are not allowed - --> $DIR/mismatch-2.rs:3:1 + --> $DIR/fence-mismatch-2.rs:3:1 | LL | ---cargo | ^^^^^^^^ diff --git a/tests/ui/frontmatter/unclosed-1.rs b/tests/ui/frontmatter/fence-unclosed-1.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-1.rs rename to tests/ui/frontmatter/fence-unclosed-1.rs diff --git a/tests/ui/frontmatter/unclosed-1.stderr b/tests/ui/frontmatter/fence-unclosed-1.stderr similarity index 73% rename from tests/ui/frontmatter/unclosed-1.stderr rename to tests/ui/frontmatter/fence-unclosed-1.stderr index 04031d128398..f96da8cc6689 100644 --- a/tests/ui/frontmatter/unclosed-1.stderr +++ b/tests/ui/frontmatter/fence-unclosed-1.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/unclosed-1.rs:1:1 + --> $DIR/fence-unclosed-1.rs:1:1 | LL | / ----cargo ... | @@ -7,7 +7,7 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/unclosed-1.rs:1:1 + --> $DIR/fence-unclosed-1.rs:1:1 | LL | ----cargo | ^^^^ diff --git a/tests/ui/frontmatter/unclosed-2.rs b/tests/ui/frontmatter/fence-unclosed-2.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-2.rs rename to tests/ui/frontmatter/fence-unclosed-2.rs diff --git a/tests/ui/frontmatter/unclosed-2.stderr b/tests/ui/frontmatter/fence-unclosed-2.stderr similarity index 86% rename from tests/ui/frontmatter/unclosed-2.stderr rename to tests/ui/frontmatter/fence-unclosed-2.stderr index 0a4022c1557b..7eeb30bed528 100644 --- a/tests/ui/frontmatter/unclosed-2.stderr +++ b/tests/ui/frontmatter/fence-unclosed-2.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/unclosed-2.rs:1:1 + --> $DIR/fence-unclosed-2.rs:1:1 | LL | / ----cargo ... | @@ -8,13 +8,13 @@ LL | | } | |__^ | note: frontmatter opening here was not closed - --> $DIR/unclosed-2.rs:1:1 + --> $DIR/fence-unclosed-2.rs:1:1 | LL | ----cargo | ^^^^ error[E0658]: frontmatters are experimental - --> $DIR/unclosed-2.rs:1:1 + --> $DIR/fence-unclosed-2.rs:1:1 | LL | / ----cargo ... | diff --git a/tests/ui/frontmatter/unclosed-3.rs b/tests/ui/frontmatter/fence-unclosed-3.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-3.rs rename to tests/ui/frontmatter/fence-unclosed-3.rs diff --git a/tests/ui/frontmatter/unclosed-3.stderr b/tests/ui/frontmatter/fence-unclosed-3.stderr similarity index 79% rename from tests/ui/frontmatter/unclosed-3.stderr rename to tests/ui/frontmatter/fence-unclosed-3.stderr index cd69cb000408..aa3e8fa3c01d 100644 --- a/tests/ui/frontmatter/unclosed-3.stderr +++ b/tests/ui/frontmatter/fence-unclosed-3.stderr @@ -1,17 +1,17 @@ error: invalid preceding whitespace for frontmatter close - --> $DIR/unclosed-3.rs:12:1 + --> $DIR/fence-unclosed-3.rs:12:1 | LL | ---x | ^^^^^^^^ | note: frontmatter close should not be preceded by whitespace - --> $DIR/unclosed-3.rs:12:1 + --> $DIR/fence-unclosed-3.rs:12:1 | LL | ---x | ^^^^ error: frontmatter close does not match the opening - --> $DIR/unclosed-3.rs:1:1 + --> $DIR/fence-unclosed-3.rs:1:1 | LL | ----cargo | ^--- @@ -26,13 +26,13 @@ LL | | ---x | ...while the close has 3 dashes error: extra characters after frontmatter close are not allowed - --> $DIR/unclosed-3.rs:12:1 + --> $DIR/fence-unclosed-3.rs:12:1 | LL | ---x | ^^^^^^^^ error: unexpected closing delimiter: `}` - --> $DIR/unclosed-3.rs:15:1 + --> $DIR/fence-unclosed-3.rs:15:1 | LL | } | ^ unexpected closing delimiter diff --git a/tests/ui/frontmatter/unclosed-4.rs b/tests/ui/frontmatter/fence-unclosed-4.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-4.rs rename to tests/ui/frontmatter/fence-unclosed-4.rs diff --git a/tests/ui/frontmatter/unclosed-4.stderr b/tests/ui/frontmatter/fence-unclosed-4.stderr similarity index 73% rename from tests/ui/frontmatter/unclosed-4.stderr rename to tests/ui/frontmatter/fence-unclosed-4.stderr index b3ba56937bba..cb597d16de28 100644 --- a/tests/ui/frontmatter/unclosed-4.stderr +++ b/tests/ui/frontmatter/fence-unclosed-4.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/unclosed-4.rs:1:1 + --> $DIR/fence-unclosed-4.rs:1:1 | LL | / ----cargo LL | | @@ -7,7 +7,7 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/unclosed-4.rs:1:1 + --> $DIR/fence-unclosed-4.rs:1:1 | LL | ----cargo | ^^^^ diff --git a/tests/ui/frontmatter/unclosed-5.rs b/tests/ui/frontmatter/fence-unclosed-5.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-5.rs rename to tests/ui/frontmatter/fence-unclosed-5.rs diff --git a/tests/ui/frontmatter/unclosed-5.stderr b/tests/ui/frontmatter/fence-unclosed-5.stderr similarity index 85% rename from tests/ui/frontmatter/unclosed-5.stderr rename to tests/ui/frontmatter/fence-unclosed-5.stderr index e904014a175a..09531f3c0341 100644 --- a/tests/ui/frontmatter/unclosed-5.stderr +++ b/tests/ui/frontmatter/fence-unclosed-5.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/unclosed-5.rs:1:1 + --> $DIR/fence-unclosed-5.rs:1:1 | LL | / ----cargo ... | @@ -7,13 +7,13 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/unclosed-5.rs:1:1 + --> $DIR/fence-unclosed-5.rs:1:1 | LL | ----cargo | ^^^^ error[E0658]: frontmatters are experimental - --> $DIR/unclosed-5.rs:1:1 + --> $DIR/fence-unclosed-5.rs:1:1 | LL | / ----cargo ... | diff --git a/tests/ui/frontmatter/unclosed-6.rs b/tests/ui/frontmatter/fence-unclosed-6.rs similarity index 100% rename from tests/ui/frontmatter/unclosed-6.rs rename to tests/ui/frontmatter/fence-unclosed-6.rs diff --git a/tests/ui/frontmatter/unclosed-6.stderr b/tests/ui/frontmatter/fence-unclosed-6.stderr similarity index 75% rename from tests/ui/frontmatter/unclosed-6.stderr rename to tests/ui/frontmatter/fence-unclosed-6.stderr index 01a13e87268c..6b653f0781c6 100644 --- a/tests/ui/frontmatter/unclosed-6.stderr +++ b/tests/ui/frontmatter/fence-unclosed-6.stderr @@ -1,5 +1,5 @@ error: unclosed frontmatter - --> $DIR/unclosed-6.rs:1:1 + --> $DIR/fence-unclosed-6.rs:1:1 | LL | / --- LL | | @@ -10,7 +10,7 @@ LL | | | |_^ | note: frontmatter opening here was not closed - --> $DIR/unclosed-6.rs:1:1 + --> $DIR/fence-unclosed-6.rs:1:1 | LL | --- | ^^^ diff --git a/tests/ui/frontmatter/frontmatter-whitespace-3.rs b/tests/ui/frontmatter/fence-whitespace-trailing-1.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-whitespace-3.rs rename to tests/ui/frontmatter/fence-whitespace-trailing-1.rs diff --git a/tests/ui/frontmatter/frontmatter-whitespace-4.rs b/tests/ui/frontmatter/fence-whitespace-trailing-2.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-whitespace-4.rs rename to tests/ui/frontmatter/fence-whitespace-trailing-2.rs diff --git a/tests/ui/frontmatter/infostring-fail.rs b/tests/ui/frontmatter/infostring-comma.rs similarity index 100% rename from tests/ui/frontmatter/infostring-fail.rs rename to tests/ui/frontmatter/infostring-comma.rs diff --git a/tests/ui/frontmatter/infostring-fail.stderr b/tests/ui/frontmatter/infostring-comma.stderr similarity index 86% rename from tests/ui/frontmatter/infostring-fail.stderr rename to tests/ui/frontmatter/infostring-comma.stderr index 6b264abc90f1..4463dd414c4f 100644 --- a/tests/ui/frontmatter/infostring-fail.stderr +++ b/tests/ui/frontmatter/infostring-comma.stderr @@ -1,5 +1,5 @@ error: invalid infostring for frontmatter - --> $DIR/infostring-fail.rs:1:4 + --> $DIR/infostring-comma.rs:1:4 | LL | ---cargo,clippy | ^^^^^^^^^^^^ diff --git a/tests/ui/frontmatter/dot-in-infostring-leading.rs b/tests/ui/frontmatter/infostring-dot-leading.rs similarity index 100% rename from tests/ui/frontmatter/dot-in-infostring-leading.rs rename to tests/ui/frontmatter/infostring-dot-leading.rs diff --git a/tests/ui/frontmatter/dot-in-infostring-leading.stderr b/tests/ui/frontmatter/infostring-dot-leading.stderr similarity index 83% rename from tests/ui/frontmatter/dot-in-infostring-leading.stderr rename to tests/ui/frontmatter/infostring-dot-leading.stderr index bc86bd80eece..8c15f8f7536e 100644 --- a/tests/ui/frontmatter/dot-in-infostring-leading.stderr +++ b/tests/ui/frontmatter/infostring-dot-leading.stderr @@ -1,5 +1,5 @@ error: invalid infostring for frontmatter - --> $DIR/dot-in-infostring-leading.rs:1:4 + --> $DIR/infostring-dot-leading.rs:1:4 | LL | ---.toml | ^^^^^ diff --git a/tests/ui/frontmatter/dot-in-infostring-non-leading.rs b/tests/ui/frontmatter/infostring-dot-nonleading.rs similarity index 100% rename from tests/ui/frontmatter/dot-in-infostring-non-leading.rs rename to tests/ui/frontmatter/infostring-dot-nonleading.rs diff --git a/tests/ui/frontmatter/hyphen-in-infostring-leading.rs b/tests/ui/frontmatter/infostring-hyphen-leading.rs similarity index 100% rename from tests/ui/frontmatter/hyphen-in-infostring-leading.rs rename to tests/ui/frontmatter/infostring-hyphen-leading.rs diff --git a/tests/ui/frontmatter/hyphen-in-infostring-leading.stderr b/tests/ui/frontmatter/infostring-hyphen-leading.stderr similarity index 82% rename from tests/ui/frontmatter/hyphen-in-infostring-leading.stderr rename to tests/ui/frontmatter/infostring-hyphen-leading.stderr index 167b537d62be..646936b92830 100644 --- a/tests/ui/frontmatter/hyphen-in-infostring-leading.stderr +++ b/tests/ui/frontmatter/infostring-hyphen-leading.stderr @@ -1,5 +1,5 @@ error: invalid infostring for frontmatter - --> $DIR/hyphen-in-infostring-leading.rs:1:4 + --> $DIR/infostring-hyphen-leading.rs:1:4 | LL | --- -toml | ^^^^^^ diff --git a/tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs b/tests/ui/frontmatter/infostring-hyphen-nonleading.rs similarity index 100% rename from tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs rename to tests/ui/frontmatter/infostring-hyphen-nonleading.rs diff --git a/tests/ui/frontmatter/space-in-infostring.rs b/tests/ui/frontmatter/infostring-space.rs similarity index 100% rename from tests/ui/frontmatter/space-in-infostring.rs rename to tests/ui/frontmatter/infostring-space.rs diff --git a/tests/ui/frontmatter/space-in-infostring.stderr b/tests/ui/frontmatter/infostring-space.stderr similarity index 86% rename from tests/ui/frontmatter/space-in-infostring.stderr rename to tests/ui/frontmatter/infostring-space.stderr index b876ddae782e..aa8d08d60904 100644 --- a/tests/ui/frontmatter/space-in-infostring.stderr +++ b/tests/ui/frontmatter/infostring-space.stderr @@ -1,5 +1,5 @@ error: invalid infostring for frontmatter - --> $DIR/space-in-infostring.rs:1:4 + --> $DIR/infostring-space.rs:1:4 | LL | --- cargo clippy | ^^^^^^^^^^^^^ diff --git a/tests/ui/frontmatter/shebang.rs b/tests/ui/frontmatter/location-after-shebang.rs similarity index 100% rename from tests/ui/frontmatter/shebang.rs rename to tests/ui/frontmatter/location-after-shebang.rs diff --git a/tests/ui/frontmatter/frontmatter-after-tokens.rs b/tests/ui/frontmatter/location-after-tokens.rs similarity index 100% rename from tests/ui/frontmatter/frontmatter-after-tokens.rs rename to tests/ui/frontmatter/location-after-tokens.rs diff --git a/tests/ui/frontmatter/frontmatter-after-tokens.stderr b/tests/ui/frontmatter/location-after-tokens.stderr similarity index 84% rename from tests/ui/frontmatter/frontmatter-after-tokens.stderr rename to tests/ui/frontmatter/location-after-tokens.stderr index 919456924d02..b8b38167ace5 100644 --- a/tests/ui/frontmatter/frontmatter-after-tokens.stderr +++ b/tests/ui/frontmatter/location-after-tokens.stderr @@ -1,5 +1,5 @@ error: expected item, found `-` - --> $DIR/frontmatter-after-tokens.rs:3:1 + --> $DIR/location-after-tokens.rs:3:1 | LL | --- | ^ expected item diff --git a/tests/ui/frontmatter/include-in-expr-ctxt.rs b/tests/ui/frontmatter/location-include-in-expr-ctxt.rs similarity index 100% rename from tests/ui/frontmatter/include-in-expr-ctxt.rs rename to tests/ui/frontmatter/location-include-in-expr-ctxt.rs diff --git a/tests/ui/frontmatter/include-in-item-ctxt.rs b/tests/ui/frontmatter/location-include-in-item-ctxt.rs similarity index 100% rename from tests/ui/frontmatter/include-in-item-ctxt.rs rename to tests/ui/frontmatter/location-include-in-item-ctxt.rs diff --git a/tests/ui/frontmatter/proc-macro-observer.rs b/tests/ui/frontmatter/location-proc-macro-observer.rs similarity index 100% rename from tests/ui/frontmatter/proc-macro-observer.rs rename to tests/ui/frontmatter/location-proc-macro-observer.rs