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` ```
61 lines
1.4 KiB
Rust
61 lines
1.4 KiB
Rust
// issue#141256
|
|
|
|
mod original {
|
|
#[cfg(false)]
|
|
//~^ NOTE the item is gated here
|
|
//~| NOTE the item is gated here
|
|
//~| NOTE the item is gated here
|
|
//~| NOTE the item is gated here
|
|
//~| NOTE the item is gated here
|
|
pub mod gated {
|
|
//~^ NOTE found an item that was configured out
|
|
//~| NOTE found an item that was configured out
|
|
//~| NOTE found an item that was configured out
|
|
//~| NOTE found an item that was configured out
|
|
//~| NOTE found an item that was configured out
|
|
pub fn foo() {}
|
|
}
|
|
}
|
|
|
|
mod reexport {
|
|
pub use super::original::*;
|
|
}
|
|
|
|
mod reexport2 {
|
|
pub use super::reexport::*;
|
|
}
|
|
|
|
mod reexport30 {
|
|
pub use super::original::*;
|
|
pub use super::reexport31::*;
|
|
}
|
|
|
|
mod reexport31 {
|
|
pub use super::reexport30::*;
|
|
}
|
|
|
|
mod reexport32 {
|
|
pub use super::reexport30::*;
|
|
}
|
|
|
|
fn main() {
|
|
reexport::gated::foo();
|
|
//~^ ERROR cannot find
|
|
//~| NOTE could not find `gated` in `reexport`
|
|
|
|
reexport2::gated::foo();
|
|
//~^ ERROR cannot find
|
|
//~| NOTE could not find `gated` in `reexport2`
|
|
|
|
reexport30::gated::foo();
|
|
//~^ ERROR cannot find
|
|
//~| NOTE could not find `gated` in `reexport30`
|
|
|
|
reexport31::gated::foo();
|
|
//~^ ERROR cannot find
|
|
//~| NOTE could not find `gated` in `reexport31`
|
|
|
|
reexport32::gated::foo();
|
|
//~^ ERROR cannot find
|
|
//~| NOTE could not find `gated` in `reexport32`
|
|
}
|