mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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)] | ^^^^^^^^^^^^^ ```
113 lines
3.9 KiB
Plaintext
113 lines
3.9 KiB
Plaintext
error[E0433]: failed to resolve: could not find `RustcDecodable` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:2:11
|
|
|
|
|
LL | core::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:4:11
|
|
|
|
|
LL | core::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:2:11
|
|
|
|
|
LL | core::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `core`
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:4:11
|
|
|
|
|
LL | core::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `core`
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error[E0433]: failed to resolve: could not find `bench` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:7:9
|
|
|
|
|
LL | #[core::bench]
|
|
| ^^^^^ could not find `bench` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `global_allocator` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:8:9
|
|
|
|
|
LL | #[core::global_allocator]
|
|
| ^^^^^^^^^^^^^^^^ could not find `global_allocator` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `test_case` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:9:9
|
|
|
|
|
LL | #[core::test_case]
|
|
| ^^^^^^^^^ could not find `test_case` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `test` in `core`
|
|
--> $DIR/builtin-std-paths-fail.rs:10:9
|
|
|
|
|
LL | #[core::test]
|
|
| ^^^^ could not find `test` in `core`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:14:10
|
|
|
|
|
LL | std::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `std`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:16:10
|
|
|
|
|
LL | std::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `std`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:14:10
|
|
|
|
|
LL | std::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `std`
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error[E0433]: failed to resolve: could not find `RustcDecodable` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:16:10
|
|
|
|
|
LL | std::RustcDecodable,
|
|
| ^^^^^^^^^^^^^^ could not find `RustcDecodable` in `std`
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error[E0433]: failed to resolve: could not find `bench` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:19:8
|
|
|
|
|
LL | #[std::bench]
|
|
| ^^^^^ could not find `bench` in `std`
|
|
|
|
error[E0433]: failed to resolve: could not find `global_allocator` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:20:8
|
|
|
|
|
LL | #[std::global_allocator]
|
|
| ^^^^^^^^^^^^^^^^ could not find `global_allocator` in `std`
|
|
|
|
error[E0433]: failed to resolve: could not find `test_case` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:21:8
|
|
|
|
|
LL | #[std::test_case]
|
|
| ^^^^^^^^^ could not find `test_case` in `std`
|
|
|
|
error[E0433]: failed to resolve: could not find `test` in `std`
|
|
--> $DIR/builtin-std-paths-fail.rs:22:8
|
|
|
|
|
LL | #[std::test]
|
|
| ^^^^ could not find `test` in `std`
|
|
|
|
|
note: found an item that was configured out
|
|
--> $SRC_DIR/std/src/lib.rs:LL:COL
|
|
note: the item is gated here
|
|
--> $SRC_DIR/std/src/lib.rs:LL:COL
|
|
|
|
error: aborting due to 16 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|