Skip to content

Commit d6a7017

Browse files
gnzlbgcrlf0710
authored andcommitted
Fix hash-stable-is-unstable test
1 parent 91f0d58 commit d6a7017

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/test/ui-fulldeps/hash-stable-is-unstable.stderr

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0601]: `main` function not found in crate `hash_stable_is_unstable`
22
|
33
= note: consider adding a `main` function to `$DIR/hash-stable-is-unstable.rs`
44

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? (see issue #27812)
66
--> $DIR/hash-stable-is-unstable.rs:3:1
77
|
88
LL | extern crate rustc_data_structures;
@@ -11,7 +11,7 @@ LL | extern crate rustc_data_structures;
1111
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
1212
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
1313

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? (see issue #27812)
1515
--> $DIR/hash-stable-is-unstable.rs:5:1
1616
|
1717
LL | extern crate rustc;
@@ -20,7 +20,7 @@ LL | extern crate rustc;
2020
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
2121
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
2222

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? (see issue #27812)
2424
--> $DIR/hash-stable-is-unstable.rs:7:1
2525
|
2626
LL | extern crate rustc_macros;
@@ -29,7 +29,7 @@ LL | extern crate rustc_macros;
2929
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
3030
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
3131

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? (see issue #27812)
3333
--> $DIR/hash-stable-is-unstable.rs:10:5
3434
|
3535
LL | use rustc_macros::HashStable;
@@ -38,7 +38,7 @@ LL | use rustc_macros::HashStable;
3838
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
3939
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
4040

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? (see issue #27812)
4242
--> $DIR/hash-stable-is-unstable.rs:13:10
4343
|
4444
LL | #[derive(HashStable)]
@@ -47,7 +47,15 @@ LL | #[derive(HashStable)]
4747
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
4848
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
4949

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? (see issue #27812)
51+
--> $DIR/hash-stable-is-unstable.rs:13:10
52+
|
53+
LL | #[derive(HashStable)]
54+
| ^^^^^^^^^^
55+
|
56+
= help: add #![feature(rustc_private)] to the crate attributes to enable
57+
58+
error: aborting due to 7 previous errors
5159

52-
Some errors have detailed explanations: E0601, E0658.
60+
Some errors occurred: E0601, E0658.
5361
For more information about an error, try `rustc --explain E0601`.

0 commit comments

Comments
 (0)