mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
cf09cba20c
Previously we would only mention that the item was gated out, and opportunisitically mention the feature flag name when possible. We now point to the place where the item was gated, which can be behind layers of macro indirection, or in different modules. ``` 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 | pub mod doesnt_exist { | ^^^^^^^^^^^^ note: the item is gated here --> $DIR/auxiliary/cfged_out.rs:5:5 | LL | #[cfg(FALSE)] | ^^^^^^^^^^^^^ ```
68 lines
1.7 KiB
Plaintext
68 lines
1.7 KiB
Plaintext
error[E0432]: unresolved import `a::x`
|
|
--> $DIR/diagnostics-reexport.rs:12:9
|
|
|
|
|
LL | pub use a::x;
|
|
| ^^^^ no `x` in `a`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport.rs:18:12
|
|
|
|
|
LL | pub fn x() {}
|
|
| ^
|
|
note: the item is gated here
|
|
--> $DIR/diagnostics-reexport.rs:17:5
|
|
|
|
|
LL | #[cfg(FALSE)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error[E0432]: unresolved imports `b::x`, `b::y`
|
|
--> $DIR/diagnostics-reexport.rs:22:13
|
|
|
|
|
LL | pub use b::{x, y};
|
|
| ^ ^ no `y` in `b`
|
|
| |
|
|
| no `x` in `b`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport.rs:29:12
|
|
|
|
|
LL | pub fn x() {}
|
|
| ^
|
|
note: the item is gated here
|
|
--> $DIR/diagnostics-reexport.rs:28:5
|
|
|
|
|
LL | #[cfg(FALSE)]
|
|
| ^^^^^^^^^^^^^
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport.rs:32:12
|
|
|
|
|
LL | pub fn y() {}
|
|
| ^
|
|
note: the item is gated here
|
|
--> $DIR/diagnostics-reexport.rs:31:5
|
|
|
|
|
LL | #[cfg(FALSE)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error[E0425]: cannot find function `uwu` in module `inner`
|
|
--> $DIR/diagnostics-reexport.rs:38:12
|
|
|
|
|
LL | inner::uwu();
|
|
| ^^^ not found in `inner`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport.rs:8:20
|
|
|
|
|
LL | pub use super::uwu;
|
|
| ^^^
|
|
note: the item is gated here
|
|
--> $DIR/diagnostics-reexport.rs:7:5
|
|
|
|
|
LL | #[cfg(FALSE)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
Some errors have detailed explanations: E0425, E0432.
|
|
For more information about an error, try `rustc --explain E0425`.
|