Skip to content

Commit 13b67fb

Browse files
committed
bless ui tests
1 parent ad3d1fc commit 13b67fb

File tree

500 files changed

+1194
-1194
lines changed

Some content is hidden

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

500 files changed

+1194
-1194
lines changed

src/test/ui/abi/unsupported.aarch64.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ warning: use of calling convention not supported on this target
5252
LL | extern "stdcall" fn stdcall() {}
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5454
|
55-
= note: `#[warn(unsupported_calling_conventions)]` on by default
5655
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5756
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
57+
= note: `#[warn(unsupported_calling_conventions)]` on by default
5858

5959
error: aborting due to 8 previous errors; 1 warning emitted
6060

src/test/ui/abi/unsupported.arm.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ warning: use of calling convention not supported on this target
4646
LL | extern "stdcall" fn stdcall() {}
4747
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4848
|
49-
= note: `#[warn(unsupported_calling_conventions)]` on by default
5049
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5150
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
51+
= note: `#[warn(unsupported_calling_conventions)]` on by default
5252

5353
error: aborting due to 7 previous errors; 1 warning emitted
5454

src/test/ui/abi/unsupported.x64.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ warning: use of calling convention not supported on this target
4646
LL | extern "stdcall" fn stdcall() {}
4747
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4848
|
49-
= note: `#[warn(unsupported_calling_conventions)]` on by default
5049
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5150
= note: for more information, see issue #87678 <https://github.com/rust-lang/rust/issues/87678>
51+
= note: `#[warn(unsupported_calling_conventions)]` on by default
5252

5353
error: aborting due to 7 previous errors; 1 warning emitted
5454

src/test/ui/anon-params/anon-params-deprecated.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ warning: anonymous parameters are deprecated and will be removed in the next edi
44
LL | fn foo(i32);
55
| ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32`
66
|
7+
= 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>
79
note: the lint level is defined here
810
--> $DIR/anon-params-deprecated.rs:1:9
911
|
1012
LL | #![warn(anonymous_parameters)]
1113
| ^^^^^^^^^^^^^^^^^^^^
12-
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
13-
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
1414

1515
warning: anonymous parameters are deprecated and will be removed in the next edition
1616
--> $DIR/anon-params-deprecated.rs:12:30

src/test/ui/array-slice-vec/array_const_index-0.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error: any use of this value will cause an error
44
LL | const B: i32 = (&A)[1];
55
| ------------ ^^^^^^^ index out of bounds: the length is 0 but the index is 1
66
|
7-
= note: `#[deny(const_err)]` on by default
87
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
98
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
9+
= note: `#[deny(const_err)]` on by default
1010

1111
error: aborting due to previous error
1212

@@ -17,7 +17,7 @@ error: any use of this value will cause an error
1717
LL | const B: i32 = (&A)[1];
1818
| ------------ ^^^^^^^ index out of bounds: the length is 0 but the index is 1
1919
|
20-
= note: `#[deny(const_err)]` on by default
2120
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
22+
= note: `#[deny(const_err)]` on by default
2323

src/test/ui/array-slice-vec/array_const_index-1.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error: any use of this value will cause an error
44
LL | const B: i32 = A[1];
55
| ------------ ^^^^ index out of bounds: the length is 0 but the index is 1
66
|
7-
= note: `#[deny(const_err)]` on by default
87
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
98
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
9+
= note: `#[deny(const_err)]` on by default
1010

1111
error: aborting due to previous error
1212

@@ -17,7 +17,7 @@ error: any use of this value will cause an error
1717
LL | const B: i32 = A[1];
1818
| ------------ ^^^^ index out of bounds: the length is 0 but the index is 1
1919
|
20-
= note: `#[deny(const_err)]` on by default
2120
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
22+
= note: `#[deny(const_err)]` on by default
2323

src/test/ui/asm/aarch64/type-check-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ warning: formatting may not be suitable for sub-register argument
44
LL | asm!("{}", in(reg) 0u8);
55
| ^^ --- for this argument
66
|
7-
= note: `#[warn(asm_sub_register)]` on by default
87
= help: use `{0:w}` to have the register formatted as `w0`
98
= help: or use `{0:x}` to keep the default formatting of `x0`
9+
= note: `#[warn(asm_sub_register)]` on by default
1010

1111
warning: formatting may not be suitable for sub-register argument
1212
--> $DIR/type-check-3.rs:50:15

src/test/ui/asm/bad-template.aarch64_mirunsafeck.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ warning: formatting may not be suitable for sub-register argument
189189
LL | asm!("{:foo}", in(reg) foo);
190190
| ^^^^^^ --- for this argument
191191
|
192-
= note: `#[warn(asm_sub_register)]` on by default
193192
= help: use `{0:w}` to have the register formatted as `w0`
194193
= help: or use `{0:x}` to keep the default formatting of `x0`
194+
= note: `#[warn(asm_sub_register)]` on by default
195195

196196
error: aborting due to 21 previous errors; 1 warning emitted
197197

src/test/ui/asm/bad-template.aarch64_thirunsafeck.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ warning: formatting may not be suitable for sub-register argument
189189
LL | asm!("{:foo}", in(reg) foo);
190190
| ^^^^^^ --- for this argument
191191
|
192-
= note: `#[warn(asm_sub_register)]` on by default
193192
= help: use `{0:w}` to have the register formatted as `w0`
194193
= help: or use `{0:x}` to keep the default formatting of `x0`
194+
= note: `#[warn(asm_sub_register)]` on by default
195195

196196
error: aborting due to 21 previous errors; 1 warning emitted
197197

src/test/ui/asm/bad-template.x86_64_mirunsafeck.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ warning: formatting may not be suitable for sub-register argument
189189
LL | asm!("{:foo}", in(reg) foo);
190190
| ^^^^^^ --- for this argument
191191
|
192-
= note: `#[warn(asm_sub_register)]` on by default
193192
= help: use `{0:e}` to have the register formatted as `eax`
194193
= help: or use `{0:r}` to keep the default formatting of `rax`
194+
= note: `#[warn(asm_sub_register)]` on by default
195195

196196
error: aborting due to 21 previous errors; 1 warning emitted
197197

src/test/ui/asm/bad-template.x86_64_thirunsafeck.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ warning: formatting may not be suitable for sub-register argument
189189
LL | asm!("{:foo}", in(reg) foo);
190190
| ^^^^^^ --- for this argument
191191
|
192-
= note: `#[warn(asm_sub_register)]` on by default
193192
= help: use `{0:e}` to have the register formatted as `eax`
194193
= help: or use `{0:r}` to keep the default formatting of `rax`
194+
= note: `#[warn(asm_sub_register)]` on by default
195195

196196
error: aborting due to 21 previous errors; 1 warning emitted
197197

src/test/ui/asm/naked-functions-ffi.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ warning: `extern` fn uses type `char`, which is not FFI-safe
44
LL | pub extern "C" fn naked(p: char) -> u128 {
55
| ^^^^ not FFI-safe
66
|
7-
= note: `#[warn(improper_ctypes_definitions)]` on by default
87
= help: consider using `u32` or `libc::wchar_t` instead
98
= note: the `char` type has no C equivalent
9+
= note: `#[warn(improper_ctypes_definitions)]` on by default
1010

1111
warning: `extern` fn uses type `u128`, which is not FFI-safe
1212
--> $DIR/naked-functions-ffi.rs:9:37

src/test/ui/asm/named-asm-labels.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error: avoid using named labels in inline assembly
44
LL | asm!("bar: nop");
55
| ^^^
66
|
7-
= note: `#[deny(named_asm_labels)]` on by default
87
= help: only local labels of the form `<number>:` should be used in inline asm
98
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
9+
= note: `#[deny(named_asm_labels)]` on by default
1010

1111
error: avoid using named labels in inline assembly
1212
--> $DIR/named-asm-labels.rs:27:15
@@ -259,13 +259,13 @@ warning: avoid using named labels in inline assembly
259259
LL | asm!("warned: nop");
260260
| ^^^^^^
261261
|
262+
= help: only local labels of the form `<number>:` should be used in inline asm
263+
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
262264
note: the lint level is defined here
263265
--> $DIR/named-asm-labels.rs:132:16
264266
|
265267
LL | #[warn(named_asm_labels)]
266268
| ^^^^^^^^^^^^^^^^
267-
= help: only local labels of the form `<number>:` should be used in inline asm
268-
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
269269

270270
error: avoid using named labels in inline assembly
271271
--> $DIR/named-asm-labels.rs:143:20

src/test/ui/asm/x86_64/type-check-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ warning: formatting may not be suitable for sub-register argument
4444
LL | asm!("{0} {0}", in(reg) 0i16);
4545
| ^^^ ^^^ ---- for this argument
4646
|
47-
= note: `#[warn(asm_sub_register)]` on by default
4847
= help: use `{0:x}` to have the register formatted as `ax`
4948
= help: or use `{0:r}` to keep the default formatting of `rax`
49+
= note: `#[warn(asm_sub_register)]` on by default
5050

5151
warning: formatting may not be suitable for sub-register argument
5252
--> $DIR/type-check-3.rs:36:15

src/test/ui/associated-consts/defaults-not-assumed-fail.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error: any use of this value will cause an error
44
LL | const B: u8 = Self::A + 1;
55
| ----------- ^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
66
|
7-
= note: `#[deny(const_err)]` on by default
87
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
98
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
9+
= note: `#[deny(const_err)]` on by default
1010

1111
error[E0080]: evaluation of constant value failed
1212
--> $DIR/defaults-not-assumed-fail.rs:34:16
@@ -34,9 +34,9 @@ error: any use of this value will cause an error
3434
LL | const B: u8 = Self::A + 1;
3535
| ----------- ^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
3636
|
37-
= note: `#[deny(const_err)]` on by default
3837
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3938
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
39+
= note: `#[deny(const_err)]` on by default
4040

4141
Future breakage diagnostic:
4242
error: erroneous constant used
@@ -45,8 +45,8 @@ error: erroneous constant used
4545
LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
4646
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
4747
|
48-
= note: `#[deny(const_err)]` on by default
4948
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5049
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
50+
= note: `#[deny(const_err)]` on by default
5151
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
5252

src/test/ui/associated-types/defaults-specialization.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ warning: the feature `specialization` is incomplete and may not be safe to use a
44
LL | #![feature(associated_type_defaults, specialization)]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: `#[warn(incomplete_features)]` on by default
87
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
98
= help: consider using `min_specialization` instead, which is more stable and complete
9+
= note: `#[warn(incomplete_features)]` on by default
1010

1111
error[E0053]: method `make` has an incompatible type for trait
1212
--> $DIR/defaults-specialization.rs:19:18

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ error: `await` is a keyword in the 2018 edition
44
LL | pub mod await {
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
66
|
7+
= 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>
79
note: the lint level is defined here
810
--> $DIR/2015-edition-error-various-positions.rs:2:9
911
|
1012
LL | #![deny(keyword_idents)]
1113
| ^^^^^^^^^^^^^^
12-
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
13-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1414

1515
error: `await` is a keyword in the 2018 edition
1616
--> $DIR/2015-edition-error-various-positions.rs:7:20

src/test/ui/async-await/await-keyword/2015-edition-warning.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ error: `await` is a keyword in the 2018 edition
44
LL | pub mod await {
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
66
|
7+
= 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>
79
note: the lint level is defined here
810
--> $DIR/2015-edition-warning.rs:4:9
911
|
1012
LL | #![deny(keyword_idents)]
1113
| ^^^^^^^^^^^^^^
12-
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
13-
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
1414

1515
error: `await` is a keyword in the 2018 edition
1616
--> $DIR/2015-edition-warning.rs:10:20

src/test/ui/async-await/large_moves.attribute.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ LL | | dbg!(y);
1010
LL | | };
1111
| |_____^ value moved from here
1212
|
13+
= note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
1314
note: the lint level is defined here
1415
--> $DIR/large_moves.rs:1:9
1516
|
1617
LL | #![deny(large_assignments)]
1718
| ^^^^^^^^^^^^^^^^^
18-
= note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
1919

2020
error: moving 10024 bytes
2121
--> $DIR/large_moves.rs:18:14

src/test/ui/async-await/large_moves.option.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ LL | | dbg!(y);
1010
LL | | };
1111
| |_____^ value moved from here
1212
|
13+
= note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
1314
note: the lint level is defined here
1415
--> $DIR/large_moves.rs:1:9
1516
|
1617
LL | #![deny(large_assignments)]
1718
| ^^^^^^^^^^^^^^^^^
18-
= note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
1919

2020
error: moving 10024 bytes
2121
--> $DIR/large_moves.rs:18:14

src/test/ui/attributes/doc-attr.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ error: unknown `doc` attribute `as_ptr`
44
LL | #[doc(as_ptr)]
55
| ^^^^^^
66
|
7+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8+
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
79
note: the lint level is defined here
810
--> $DIR/doc-attr.rs:2:9
911
|
1012
LL | #![deny(warnings)]
1113
| ^^^^^^^^
1214
= note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
13-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14-
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
1515

1616
error: invalid `doc` attribute
1717
--> $DIR/doc-attr.rs:12:7

src/test/ui/attributes/invalid-doc-attr.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error: this attribute can only be applied at the crate level
44
LL | #[doc(test(no_crate_inject))]
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
7+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8+
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9+
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
710
note: the lint level is defined here
811
--> $DIR/invalid-doc-attr.rs:2:9
912
|
1013
LL | #![deny(warnings)]
1114
| ^^^^^^^^
1215
= note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
13-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14-
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
15-
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
1616
help: to apply to the crate, use an inner attribute
1717
|
1818
LL | #![doc(test(no_crate_inject))]

src/test/ui/auto-traits/suspicious-impls-lint.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error: cross-crate traits with a default impl, like `Send`, should not be specia
44
LL | unsafe impl<T: Send> Send for MayImplementSendErr<&T> {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
note: the lint level is defined here
8-
--> $DIR/suspicious-impls-lint.rs:1:9
9-
|
10-
LL | #![deny(suspicious_auto_trait_impls)]
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
= warning: this will change its meaning in a future release!
138
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
149
= note: `&T` is not a generic parameter
@@ -17,6 +12,11 @@ note: try using the same sequence of generic parameters as the struct definition
1712
|
1813
LL | struct MayImplementSendErr<T>(T);
1914
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
note: the lint level is defined here
16+
--> $DIR/suspicious-impls-lint.rs:1:9
17+
|
18+
LL | #![deny(suspicious_auto_trait_impls)]
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020

2121
error: cross-crate traits with a default impl, like `Send`, should not be specialized
2222
--> $DIR/suspicious-impls-lint.rs:21:1

0 commit comments

Comments
 (0)