From 4ba4559a9d6974f5789f7e1654d5063941bb8816 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Tue, 31 Dec 2024 22:59:22 +0000 Subject: remove recursive search for items --- tests/ui/cfg/diagnostics-reexport.rs | 4 ++-- tests/ui/cfg/diagnostics-reexport.stderr | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/ui/cfg/diagnostics-reexport.rs b/tests/ui/cfg/diagnostics-reexport.rs index bdb57df2f25..c6a714fca71 100644 --- a/tests/ui/cfg/diagnostics-reexport.rs +++ b/tests/ui/cfg/diagnostics-reexport.rs @@ -1,7 +1,7 @@ pub mod inner { - #[cfg(false)] //~ NOTE the item is gated here + #[cfg(false)] mod gone { - pub fn uwu() {} //~ NOTE found an item that was configured out + pub fn uwu() {} } #[cfg(false)] //~ NOTE the item is gated here diff --git a/tests/ui/cfg/diagnostics-reexport.stderr b/tests/ui/cfg/diagnostics-reexport.stderr index 82412ed49c5..bf1bbcba7e4 100644 --- a/tests/ui/cfg/diagnostics-reexport.stderr +++ b/tests/ui/cfg/diagnostics-reexport.stderr @@ -50,16 +50,6 @@ error[E0425]: cannot find function `uwu` in module `inner` LL | inner::uwu(); | ^^^ not found in `inner` | -note: found an item that was configured out - --> $DIR/diagnostics-reexport.rs:4:16 - | -LL | pub fn uwu() {} - | ^^^ -note: the item is gated here - --> $DIR/diagnostics-reexport.rs:2:11 - | -LL | #[cfg(false)] - | ^^^^^ note: found an item that was configured out --> $DIR/diagnostics-reexport.rs:8:20 | -- cgit 1.4.1-3-g733a5