Skip to content

Commit d56cdd4

Browse files
author
George-lewis
committed
Bless tests
Update tests
1 parent 9f327a2 commit d56cdd4

File tree

407 files changed

+1364
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+1364
-318
lines changed

tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//~^^^ WARNING custom classes in code blocks will change behaviour
77
//~| NOTE found these custom classes: class=language-c
88
//~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
9+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910
//~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
1011
pub struct Bar;
1112

tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LL | | /// ```
88
|
99
= note: see issue #79483 <https://github.com/rust-lang/rust/issues/79483> for more information
1010
= help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
11+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1112
= note: found these custom classes: class=language-c
1213

1314
warning: 1 warning emitted

tests/rustdoc-ui/feature-gate-doc_cfg_hide.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![doc(cfg_hide(test))]
66
|
77
= note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
88
= help: add `#![feature(doc_cfg_hide)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910

1011
error: aborting due to 1 previous error
1112

tests/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | //! [pointer::add]
66
|
77
= note: see issue #80896 <https://github.com/rust-lang/rust/issues/80896> for more information
88
= help: add `#![feature(intra_doc_pointers)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910
= note: rustdoc does not allow disambiguating between `*const` and `*mut`, and pointers are unstable until it does
1011

1112
error[E0658]: linking to associated items of raw pointers is experimental
@@ -16,6 +17,7 @@ LL | //! [pointer::wrapping_add]
1617
|
1718
= note: see issue #80896 <https://github.com/rust-lang/rust/issues/80896> for more information
1819
= help: add `#![feature(intra_doc_pointers)]` to the crate attributes to enable
20+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1921
= note: rustdoc does not allow disambiguating between `*const` and `*mut`, and pointers are unstable until it does
2022

2123
error: aborting due to 2 previous errors

tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
//~^ ERROR unknown lint
66
//~| NOTE lint is unstable
77
//~| NOTE see issue
8+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LL | #![allow(rustdoc::missing_doc_code_examples)]
77
= note: the `rustdoc::missing_doc_code_examples` lint is unstable
88
= note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
99
= help: add `#![feature(rustdoc_missing_doc_code_examples)]` to the crate attributes to enable
10+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1011
note: the lint level is defined here
1112
--> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:2:9
1213
|
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1+
// ignore-stage1
12
// compile-flags: -Zdeduplicate-diagnostics=yes
23
extern crate rustc_data_structures;
34
//~^ use of unstable library feature 'rustc_private'
5+
//~| NOTE: issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
6+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
47
extern crate rustc_macros;
58
//~^ use of unstable library feature 'rustc_private'
9+
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
10+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
611
extern crate rustc_query_system;
712
//~^ use of unstable library feature 'rustc_private'
13+
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
14+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
815

916
use rustc_macros::HashStable;
1017
//~^ use of unstable library feature 'rustc_private'
18+
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
19+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1120

1221
#[derive(HashStable)]
1322
//~^ use of unstable library feature 'rustc_private'
23+
//~| NOTE: in this expansion of #[derive(HashStable)]
24+
//~| NOTE: in this expansion of #[derive(HashStable)]
25+
//~| NOTE: in this expansion of #[derive(HashStable)]
26+
//~| NOTE: in this expansion of #[derive(HashStable)]
27+
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
28+
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1429
struct Test;
1530

1631
fn main() {}

tests/ui-fulldeps/hash-stable-is-unstable.stderr

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,52 @@
11
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?
2-
--> $DIR/hash-stable-is-unstable.rs:2:1
2+
--> $DIR/hash-stable-is-unstable.rs:3:1
33
|
44
LL | extern crate rustc_data_structures;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
88
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910

1011
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?
11-
--> $DIR/hash-stable-is-unstable.rs:4:1
12+
--> $DIR/hash-stable-is-unstable.rs:7:1
1213
|
1314
LL | extern crate rustc_macros;
1415
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1516
|
1617
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
1718
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
19+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1820

1921
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?
20-
--> $DIR/hash-stable-is-unstable.rs:6:1
22+
--> $DIR/hash-stable-is-unstable.rs:11:1
2123
|
2224
LL | extern crate rustc_query_system;
2325
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2426
|
2527
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
2628
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
29+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2730

2831
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?
29-
--> $DIR/hash-stable-is-unstable.rs:9:5
32+
--> $DIR/hash-stable-is-unstable.rs:16:5
3033
|
3134
LL | use rustc_macros::HashStable;
3235
| ^^^^^^^^^^^^^^^^^^^^^^^^
3336
|
3437
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
3538
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
39+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3640

3741
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?
38-
--> $DIR/hash-stable-is-unstable.rs:12:10
42+
--> $DIR/hash-stable-is-unstable.rs:21:10
3943
|
4044
LL | #[derive(HashStable)]
4145
| ^^^^^^^^^^
4246
|
4347
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
4448
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
49+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4550
= note: this error originates in the derive macro `HashStable` (in Nightly builds, run with -Z macro-backtrace for more info)
4651

4752
error: aborting due to 5 previous errors

tests/ui-fulldeps/pathless-extern-unstable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// edition:2018
2+
// ignore-stage1
23
// compile-flags:--extern rustc_middle
34

45
// Test that `--extern rustc_middle` fails with `rustc_private`.

tests/ui-fulldeps/pathless-extern-unstable.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
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?
2-
--> $DIR/pathless-extern-unstable.rs:6:9
2+
--> $DIR/pathless-extern-unstable.rs:7:9
33
|
44
LL | pub use rustc_middle;
55
| ^^^^^^^^^^^^
66
|
77
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
88
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910

1011
error: aborting due to 1 previous error
1112

0 commit comments

Comments
 (0)