Skip to content

Commit f061267

Browse files
committed
Fix unit test errors.
1 parent 9822496 commit f061267

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

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

+9-8
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': 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)
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?
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': 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)
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?
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': 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)
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?
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': 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)
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?
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': 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)
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?
4242
--> $DIR/hash-stable-is-unstable.rs:13:10
4343
|
4444
LL | #[derive(HashStable)]
@@ -47,15 +47,16 @@ 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[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)
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?
5151
--> $DIR/hash-stable-is-unstable.rs:13:10
5252
|
5353
LL | #[derive(HashStable)]
5454
| ^^^^^^^^^^
5555
|
56-
= help: add #![feature(rustc_private)] to the crate attributes to enable
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
5758

5859
error: aborting due to 7 previous errors
5960

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

src/test/ui/feature-gates/feature-gate-rustc_private-libc.stderr

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ error[E0432]: unresolved import `libc`
44
LL | use libc::*;
55
| ^^^^ maybe a missing `extern crate libc;`?
66

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? (see issue #27812)
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?
88
--> $DIR/feature-gate-rustc_private-libc.rs:2:5
99
|
1010
LL | extern crate libc;
1111
| ^^^^^^^^^^^^^^^^^^
1212
|
13-
= help: add #![feature(rustc_private)] to the crate attributes to enable
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
1415

1516
error: aborting due to 2 previous errors
1617

17-
Some errors occurred: E0432, E0658.
18+
Some errors have detailed explanations: E0432, E0658.
1819
For more information about an error, try `rustc --explain E0432`.

src/test/ui/feature-gates/feature-gate-test.stderr

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ error[E0432]: unresolved import `test`
44
LL | use test::*;
55
| ^^^^ maybe a missing `extern crate test;`?
66

7-
error[E0658]: use of unstable library feature 'test' (see issue #27812)
7+
error[E0658]: use of unstable library feature 'test'
88
--> $DIR/feature-gate-test.rs:2:5
99
|
1010
LL | extern crate test;
1111
| ^^^^^^^^^^^^^^^^^^
1212
|
13-
= help: add #![feature(test)] to the crate attributes to enable
13+
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
14+
= help: add `#![feature(test)]` to the crate attributes to enable
1415

1516
error: aborting due to 2 previous errors
1617

17-
Some errors occurred: E0432, E0658.
18+
Some errors have detailed explanations: E0432, E0658.
1819
For more information about an error, try `rustc --explain E0432`.

src/test/ui/issues/issue-37887.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0432]: unresolved import `libc`
44
LL | use libc::*;
55
| ^^^^ maybe a missing `extern crate libc;`?
66

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? (see issue #27812)
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?
88
--> $DIR/issue-37887.rs:2:5
99
|
1010
LL | extern crate libc;

0 commit comments

Comments
 (0)