diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-01 23:58:15 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-01 23:58:15 +0000 |
| commit | 4b24c4bf23df8ae5c53669e3209b9f3074769b69 (patch) | |
| tree | 4296984795f0057fd76d214c678fd1a3e15d251a /tests/ui/macros/macro-outer-attributes.stderr | |
| parent | 77f75f91c5822c3c83f55317b76330153859a12a (diff) | |
| download | rust-4b24c4bf23df8ae5c53669e3209b9f3074769b69.tar.gz rust-4b24c4bf23df8ae5c53669e3209b9f3074769b69.zip | |
Tweak rendering of cfg'd out item
```
error[E0433]: failed to resolve: could not find `doesnt_exist` in `inner`
--> $DIR/diagnostics-cross-crate.rs:18:23
|
LL | cfged_out::inner::doesnt_exist::hello();
| ^^^^^^^^^^^^ could not find `doesnt_exist` in `inner`
|
note: found an item that was configured out
--> $DIR/auxiliary/cfged_out.rs:6:13
|
LL | #[cfg(false)]
| ----- the item is gated here
LL | pub mod doesnt_exist {
| ^^^^^^^^^^^^
```
Diffstat (limited to 'tests/ui/macros/macro-outer-attributes.stderr')
| -rw-r--r-- | tests/ui/macros/macro-outer-attributes.stderr | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/ui/macros/macro-outer-attributes.stderr b/tests/ui/macros/macro-outer-attributes.stderr index 9215754d4bb..4696bb774e3 100644 --- a/tests/ui/macros/macro-outer-attributes.stderr +++ b/tests/ui/macros/macro-outer-attributes.stderr @@ -7,13 +7,10 @@ LL | a::bar(); note: found an item that was configured out --> $DIR/macro-outer-attributes.rs:9:14 | +LL | #[cfg(false)], + | ----- the item is gated here LL | pub fn bar() { }); | ^^^ -note: the item is gated here - --> $DIR/macro-outer-attributes.rs:8:13 - | -LL | #[cfg(false)], - | ^^^^^ help: consider importing this function | LL + use b::bar; |
