From 59debaf661a4980f7d00ddf88fa422a02b5f91fc Mon Sep 17 00:00:00 2001 From: Dnreikronos Date: Wed, 27 May 2026 16:57:06 -0300 Subject: [PATCH] Mark submod.rs as auxiliary so compiletest skips it --- .../crate-root-path-in-different-file.stderr | 2 +- tests/ui/attributes/crate-root-path-in-different-file/submod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr b/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr index 807d73637e7f..c0c69a7bd57a 100644 --- a/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr +++ b/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr @@ -1,5 +1,5 @@ error: the `#![crate_name]` attribute can only be used at the crate root - --> $DIR/submod.rs:1:1 + --> $DIR/submod.rs:2:1 | LL | #![crate_name = "bar"] | ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/attributes/crate-root-path-in-different-file/submod.rs b/tests/ui/attributes/crate-root-path-in-different-file/submod.rs index 8c030e6dc373..f3a36d031b48 100644 --- a/tests/ui/attributes/crate-root-path-in-different-file/submod.rs +++ b/tests/ui/attributes/crate-root-path-in-different-file/submod.rs @@ -1 +1,2 @@ +//@ ignore-auxiliary (used by `./crate-root-path-in-different-file.rs`) #![crate_name = "bar"]