Skip to content

Commit 8df328b

Browse files
committed
bless the tests
1 parent f093dd0 commit 8df328b

28 files changed

+124
-88
lines changed

tests/ui/anon-params/anon-params-deprecated.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fn foo(i32);
55
| ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32`
66
|
77
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
8+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
99
note: the lint level is defined here
1010
--> $DIR/anon-params-deprecated.rs:1:9
1111
|
@@ -19,7 +19,7 @@ LL | fn bar_with_default_impl(String, String) {}
1919
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`
2020
|
2121
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
22-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
22+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
2323

2424
warning: anonymous parameters are deprecated and will be removed in the next edition
2525
--> $DIR/anon-params-deprecated.rs:13:38
@@ -28,7 +28,7 @@ LL | fn bar_with_default_impl(String, String) {}
2828
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`
2929
|
3030
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
31-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
31+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
3232

3333
warning: 3 warnings emitted
3434

tests/ui/async-await/await-keyword/2015-edition-error-various-positions.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub mod await {
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
66
|
77
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
99
note: the lint level is defined here
1010
--> $DIR/2015-edition-error-various-positions.rs:3:9
1111
|
@@ -20,7 +20,7 @@ LL | pub struct await;
2020
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
2121
|
2222
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
23-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
2424

2525
error: `await` is a keyword in the 2018 edition
2626
--> $DIR/2015-edition-error-various-positions.rs:12:16
@@ -29,7 +29,7 @@ LL | use outer_mod::await::await;
2929
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
3030
|
3131
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
32-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
3333

3434
error: `await` is a keyword in the 2018 edition
3535
--> $DIR/2015-edition-error-various-positions.rs:12:23
@@ -38,7 +38,7 @@ LL | use outer_mod::await::await;
3838
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
3939
|
4040
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
41-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
4242

4343
error: `await` is a keyword in the 2018 edition
4444
--> $DIR/2015-edition-error-various-positions.rs:17:14
@@ -47,7 +47,7 @@ LL | struct Foo { await: () }
4747
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
4848
|
4949
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
50-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
5151

5252
error: `await` is a keyword in the 2018 edition
5353
--> $DIR/2015-edition-error-various-positions.rs:21:15
@@ -56,7 +56,7 @@ LL | impl Foo { fn await() {} }
5656
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
5757
|
5858
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
59-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
6060

6161
error: `await` is a keyword in the 2018 edition
6262
--> $DIR/2015-edition-error-various-positions.rs:25:14
@@ -65,7 +65,7 @@ LL | macro_rules! await {
6565
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
6666
|
6767
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
68-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
6969

7070
error: `await` is a keyword in the 2018 edition
7171
--> $DIR/2015-edition-error-various-positions.rs:32:5
@@ -74,7 +74,7 @@ LL | await!();
7474
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
7575
|
7676
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
77-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
7878

7979
error: `await` is a keyword in the 2018 edition
8080
--> $DIR/2015-edition-error-various-positions.rs:35:11
@@ -83,7 +83,7 @@ LL | match await { await => {} }
8383
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
8484
|
8585
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
86-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
8787

8888
error: `await` is a keyword in the 2018 edition
8989
--> $DIR/2015-edition-error-various-positions.rs:35:19
@@ -92,7 +92,7 @@ LL | match await { await => {} }
9292
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
9393
|
9494
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
95-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
9696

9797
error: aborting due to 10 previous errors
9898

tests/ui/async-await/await-keyword/2015-edition-warning.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub mod await {
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
66
|
77
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
99
note: the lint level is defined here
1010
--> $DIR/2015-edition-warning.rs:5:9
1111
|
@@ -20,7 +20,7 @@ LL | pub struct await;
2020
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
2121
|
2222
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
23-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
2424

2525
error: `await` is a keyword in the 2018 edition
2626
--> $DIR/2015-edition-warning.rs:16:16
@@ -29,7 +29,7 @@ LL | use outer_mod::await::await;
2929
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
3030
|
3131
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
32-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
3333

3434
error: `await` is a keyword in the 2018 edition
3535
--> $DIR/2015-edition-warning.rs:16:23
@@ -38,7 +38,7 @@ LL | use outer_mod::await::await;
3838
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
3939
|
4040
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
41-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
4242

4343
error: `await` is a keyword in the 2018 edition
4444
--> $DIR/2015-edition-warning.rs:23:11
@@ -47,7 +47,7 @@ LL | match await { await => {} }
4747
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
4848
|
4949
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
50-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
5151

5252
error: `await` is a keyword in the 2018 edition
5353
--> $DIR/2015-edition-warning.rs:23:19
@@ -56,7 +56,7 @@ LL | match await { await => {} }
5656
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
5757
|
5858
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
59-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
6060

6161
error: aborting due to 6 previous errors
6262

tests/ui/borrowck/ice-mutability-error-slicing-121807.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LL | extern "C" fn read_dword(Self::Assoc<'_>) -> u16;
2020
| ^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::Assoc<'_>`
2121
|
2222
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
23-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
23+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
2424
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
2525

2626
error[E0185]: method `read_dword` has a `&self` declaration in the impl, but not in the trait

tests/ui/borrowck/trait-impl-argument-difference-ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | extern "C" fn read_dword(Self::Assoc<'_>) -> u16;
55
| ^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::Assoc<'_>`
66
|
77
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
8+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
99
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
1010

1111
error[E0185]: method `read_dword` has a `&self` declaration in the impl, but not in the trait

tests/ui/consts/const-eval/const_panic_stability.e2018.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ warning: panic message is not a string literal
44
LL | panic!({ "foo" });
55
| ^^^^^^^^^
66
|
7+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
78
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
89
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
910
= note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default

tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub mod dyn {
55
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
66
|
77
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
8-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
8+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
99
note: the lint level is defined here
1010
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:11:9
1111
|
@@ -20,7 +20,7 @@ LL | pub struct dyn;
2020
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
2121
|
2222
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
23-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
2424

2525
error: `dyn` is a keyword in the 2018 edition
2626
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:16
@@ -29,7 +29,7 @@ LL | use outer_mod::dyn::dyn;
2929
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
3030
|
3131
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
32-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
3333

3434
error: `dyn` is a keyword in the 2018 edition
3535
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:21
@@ -38,7 +38,7 @@ LL | use outer_mod::dyn::dyn;
3838
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
3939
|
4040
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
41-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
4242

4343
error: `dyn` is a keyword in the 2018 edition
4444
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:11
@@ -47,7 +47,7 @@ LL | match dyn { dyn => {} }
4747
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
4848
|
4949
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
50-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
5151

5252
error: `dyn` is a keyword in the 2018 edition
5353
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:17
@@ -56,7 +56,7 @@ LL | match dyn { dyn => {} }
5656
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
5757
|
5858
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
59-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
6060

6161
error: `dyn` is a keyword in the 2018 edition
6262
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:34:17
@@ -65,7 +65,7 @@ LL | macro_defn::dyn();
6565
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
6666
|
6767
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
68-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
6969

7070
error: `dyn` is a keyword in the 2018 edition
7171
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:44:18
@@ -74,7 +74,7 @@ LL | macro_rules! dyn {
7474
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
7575
|
7676
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
77-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
7878

7979
error: `dyn` is a keyword in the 2018 edition
8080
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:12
@@ -83,7 +83,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
8383
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
8484
|
8585
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
86-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
8787

8888
error: `dyn` is a keyword in the 2018 edition
8989
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:34
@@ -92,7 +92,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
9292
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
9393
|
9494
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
95-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
9696

9797
error: `dyn` is a keyword in the 2018 edition
9898
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:39
@@ -101,7 +101,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
101101
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
102102
|
103103
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
104-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
105105

106106
error: `dyn` is a keyword in the 2018 edition
107107
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:22
@@ -110,7 +110,7 @@ LL | ::outer_mod::dyn::dyn
110110
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
111111
|
112112
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
113-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
114114

115115
error: `dyn` is a keyword in the 2018 edition
116116
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:27
@@ -119,7 +119,7 @@ LL | ::outer_mod::dyn::dyn
119119
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
120120
|
121121
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
122-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
123123

124124
error: `dyn` is a keyword in the 2018 edition
125125
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:68:23
@@ -128,7 +128,7 @@ LL | pub fn boxed() -> dyn!(
128128
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
129129
|
130130
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
131-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
131+
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
132132

133133
error: aborting due to 14 previous errors
134134

0 commit comments

Comments
 (0)