You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#62819 - crlf0710:update_libtest, r=oli-obk
Display name of crate requiring rustc_private in error messages.
This is extraction and rebase of one part of rust-lang#59440 that doesn't involve external things.
r? @oli-obk
Copy file name to clipboardexpand all lines: src/test/ui-fulldeps/hash-stable-is-unstable.stderr
+15-6
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0601]: `main` function not found in crate `hash_stable_is_unstable`
2
2
|
3
3
= note: consider adding a `main` function to `$DIR/hash-stable-is-unstable.rs`
4
4
5
-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
5
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_data_structures" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
12
12
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
13
13
14
-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
14
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
15
15
--> $DIR/hash-stable-is-unstable.rs:5:1
16
16
|
17
17
LL | extern crate rustc;
@@ -20,7 +20,7 @@ LL | extern crate rustc;
20
20
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
21
21
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
22
22
23
-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
23
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_macros" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
24
24
--> $DIR/hash-stable-is-unstable.rs:7:1
25
25
|
26
26
LL | extern crate rustc_macros;
@@ -29,7 +29,7 @@ LL | extern crate rustc_macros;
29
29
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
30
30
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
31
31
32
-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
32
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_macros" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
33
33
--> $DIR/hash-stable-is-unstable.rs:10:5
34
34
|
35
35
LL | use rustc_macros::HashStable;
@@ -38,7 +38,7 @@ LL | use rustc_macros::HashStable;
38
38
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
39
39
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
40
40
41
-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
41
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_data_structures" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
42
42
--> $DIR/hash-stable-is-unstable.rs:13:10
43
43
|
44
44
LL | #[derive(HashStable)]
@@ -47,7 +47,16 @@ LL | #[derive(HashStable)]
47
47
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
48
48
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
49
49
50
-
error: aborting due to 6 previous errors
50
+
error[E0658]: use of unstable library feature 'rustc_private': crate "rustc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
51
+
--> $DIR/hash-stable-is-unstable.rs:13:10
52
+
|
53
+
LL | #[derive(HashStable)]
54
+
| ^^^^^^^^^^
55
+
|
56
+
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
57
+
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
58
+
59
+
error: aborting due to 7 previous errors
51
60
52
61
Some errors have detailed explanations: E0601, E0658.
53
62
For more information about an error, try `rustc --explain E0601`.
error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
8
+
--> $DIR/feature-gate-rustc_private-libc.rs:2:5
9
+
|
10
+
LL | extern crate libc;
11
+
| ^^^^^^^^^^^^^^^^^^
12
+
|
13
+
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
14
+
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
15
+
16
+
error: aborting due to 2 previous errors
17
+
18
+
Some errors have detailed explanations: E0432, E0658.
19
+
For more information about an error, try `rustc --explain E0432`.
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
7
+
error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
0 commit comments