Skip to content

Commit 6a8cf4a

Browse files
committed
adjust tests
1 parent 1fce203 commit 6a8cf4a

File tree

175 files changed

+270
-176
lines changed

Some content is hidden

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

175 files changed

+270
-176
lines changed

src/test/incremental/const-generics/issue-62536.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions:cfail1
22
#![feature(const_generics)]
3-
//[cfail1]~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3+
//[cfail1]~^ WARN the feature `const_generics` is incomplete
44

55
struct S<T, const N: usize>([T; N]);
66

src/test/incremental/const-generics/issue-64087.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions:cfail1
22
#![feature(const_generics)]
3-
//[cfail1]~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3+
//[cfail1]~^ WARN the feature `const_generics` is incomplete
44

55
fn combinator<T, const S: usize>() -> [T; S] {}
66
//[cfail1]~^ ERROR mismatched types

src/test/ui/array-slice-vec/match_arr_unknown_len.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(const_generics)]
2-
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
2+
//~^ WARN the feature `const_generics` is incomplete
33

44
fn is_123<const N: usize>(x: [u32; N]) -> bool {
55
match x {

src/test/ui/array-slice-vec/match_arr_unknown_len.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
1+
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/match_arr_unknown_len.rs:1:12
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
89

910
error[E0308]: mismatched types
1011
--> $DIR/match_arr_unknown_len.rs:6:9

src/test/ui/associated-type-bounds/duplicate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#![feature(associated_type_bounds)]
44
#![feature(type_alias_impl_trait)]
5-
#![feature(impl_trait_in_bindings)] //~ WARN the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash [incomplete_features]
5+
#![feature(impl_trait_in_bindings)] //~ WARN the feature `impl_trait_in_bindings` is incomplete
66
#![feature(untagged_unions)]
77

88
use std::iter;

src/test/ui/associated-type-bounds/duplicate.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
1+
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/duplicate.rs:5:12
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
89

910
error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
1011
--> $DIR/duplicate.rs:10:36
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
1+
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/dyn-lcsit.rs:4:12
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
89

910
warning: 1 warning emitted
1011

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
1+
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/lcsit.rs:4:12
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
89

910
warning: 1 warning emitted
1011

src/test/ui/binding/const-param.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
1+
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/const-param.rs:3:12
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
89

910
error[E0158]: const parameters cannot be referenced in patterns
1011
--> $DIR/const-param.rs:7:9

src/test/ui/const-generics/apit-with-const-param.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// check-pass
22

33
#![feature(const_generics)]
4-
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4+
//~^ WARN the feature `const_generics` is incomplete
55

66
trait Trait {}
77

0 commit comments

Comments
 (0)