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/rustdoc | |
| 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/rustdoc')
| -rw-r--r-- | tests/ui/rustdoc/cfg-rustdoc.stderr | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/ui/rustdoc/cfg-rustdoc.stderr b/tests/ui/rustdoc/cfg-rustdoc.stderr index fd0fcfd01aa..0e8a5dfea61 100644 --- a/tests/ui/rustdoc/cfg-rustdoc.stderr +++ b/tests/ui/rustdoc/cfg-rustdoc.stderr @@ -7,13 +7,10 @@ LL | let f = Foo; note: found an item that was configured out --> $DIR/cfg-rustdoc.rs:2:12 | +LL | #[cfg(doc)] + | --- the item is gated here LL | pub struct Foo; | ^^^ -note: the item is gated here - --> $DIR/cfg-rustdoc.rs:1:7 - | -LL | #[cfg(doc)] - | ^^^ error: aborting due to 1 previous error |
