Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`". ``` error[E0433]: cannot find `nonexistent` in `existent` --> $DIR/custom_attr_multisegment_error.rs:5:13 | LL | #[existent::nonexistent] | ^^^^^^^^^^^ could not find `nonexistent` in `existent` ```
78 lines
2.1 KiB
Text
78 lines
2.1 KiB
Text
error[E0433]: cannot find `gated` in `reexport`
|
|
--> $DIR/diagnostics-reexport-2.rs:42:15
|
|
|
|
|
LL | reexport::gated::foo();
|
|
| ^^^^^ could not find `gated` in `reexport`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport-2.rs:10:13
|
|
|
|
|
LL | #[cfg(false)]
|
|
| ----- the item is gated here
|
|
...
|
|
LL | pub mod gated {
|
|
| ^^^^^
|
|
|
|
error[E0433]: cannot find `gated` in `reexport2`
|
|
--> $DIR/diagnostics-reexport-2.rs:46:16
|
|
|
|
|
LL | reexport2::gated::foo();
|
|
| ^^^^^ could not find `gated` in `reexport2`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport-2.rs:10:13
|
|
|
|
|
LL | #[cfg(false)]
|
|
| ----- the item is gated here
|
|
...
|
|
LL | pub mod gated {
|
|
| ^^^^^
|
|
|
|
error[E0433]: cannot find `gated` in `reexport30`
|
|
--> $DIR/diagnostics-reexport-2.rs:50:17
|
|
|
|
|
LL | reexport30::gated::foo();
|
|
| ^^^^^ could not find `gated` in `reexport30`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport-2.rs:10:13
|
|
|
|
|
LL | #[cfg(false)]
|
|
| ----- the item is gated here
|
|
...
|
|
LL | pub mod gated {
|
|
| ^^^^^
|
|
|
|
error[E0433]: cannot find `gated` in `reexport31`
|
|
--> $DIR/diagnostics-reexport-2.rs:54:17
|
|
|
|
|
LL | reexport31::gated::foo();
|
|
| ^^^^^ could not find `gated` in `reexport31`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport-2.rs:10:13
|
|
|
|
|
LL | #[cfg(false)]
|
|
| ----- the item is gated here
|
|
...
|
|
LL | pub mod gated {
|
|
| ^^^^^
|
|
|
|
error[E0433]: cannot find `gated` in `reexport32`
|
|
--> $DIR/diagnostics-reexport-2.rs:58:17
|
|
|
|
|
LL | reexport32::gated::foo();
|
|
| ^^^^^ could not find `gated` in `reexport32`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $DIR/diagnostics-reexport-2.rs:10:13
|
|
|
|
|
LL | #[cfg(false)]
|
|
| ----- the item is gated here
|
|
...
|
|
LL | pub mod gated {
|
|
| ^^^^^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|