Skip to content

Commit 502c224

Browse files
committed
Update tests to use new feature gate.
1 parent 527d8f9 commit 502c224

110 files changed

Lines changed: 264 additions & 155 deletions

File tree

Some content is hidden

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

src/tools/clippy/tests/ui/trait_duplication_in_bounds_assoc_const_eq.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![deny(clippy::trait_duplication_in_bounds)]
22
#![expect(incomplete_features)]
33
#![feature(min_generic_const_args)]
4+
#![feature(mgca_type_const_syntax)]
45

56
trait AssocConstTrait {
67

src/tools/clippy/tests/ui/trait_duplication_in_bounds_assoc_const_eq.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![deny(clippy::trait_duplication_in_bounds)]
22
#![expect(incomplete_features)]
33
#![feature(min_generic_const_args)]
4+
#![feature(mgca_type_const_syntax)]
45

56
trait AssocConstTrait {
67

src/tools/clippy/tests/ui/trait_duplication_in_bounds_assoc_const_eq.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: these where clauses contain repeated elements
2-
--> tests/ui/trait_duplication_in_bounds_assoc_const_eq.rs:11:8
2+
--> tests/ui/trait_duplication_in_bounds_assoc_const_eq.rs:12:8
33
|
44
LL | T: AssocConstTrait<ASSOC = 0> + AssocConstTrait<ASSOC = 0>,
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `AssocConstTrait<ASSOC = 0>`

tests/crashes/149809.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ known-bug: #149809
22
#![feature(min_generic_const_args)]
3+
#![feature(mgca_type_const_syntax)]
34
#![feature(inherent_associated_types)]
45
struct Qux<'a> {
56
x: &'a (),

tests/debuginfo/associated-const-bindings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//@ cdb-check:struct ref$<dyn$<associated_const_bindings::Trait<assoc$<N,101> > > > local = [...]
1212

1313
#![feature(min_generic_const_args)]
14+
#![feature(mgca_type_const_syntax)]
1415
#![expect(unused_variables, incomplete_features)]
1516

1617
trait Trait {

tests/rustdoc-html/inline_cross/auxiliary/assoc-const-equality.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![expect(incomplete_features)]
22
#![feature(min_generic_const_args)]
3+
#![feature(mgca_type_const_syntax)]
34

45
pub fn accept(_: impl Trait<K = 0>) {}
56

tests/rustdoc-ui/associated-constant-not-allowed-102467.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![expect(incomplete_features)]
55
#![feature(min_generic_const_args)]
6+
#![feature(mgca_type_const_syntax)]
67

78
trait T {
89
type A: S<C<X = 0i32> = 34>;

tests/ui/associated-consts/issue-110933.rs

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

33
#![feature(min_generic_const_args)]
4+
#![feature(mgca_type_const_syntax)]
45
#![allow(incomplete_features)]
56

67
pub trait Trait {

tests/ui/associated-consts/type-const-in-array-len-wrong-type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//~^ WARN the feature `generic_const_exprs` is incomplete
33
#![feature(min_generic_const_args)]
44
//~^ WARN the feature `min_generic_const_args` is incomplete
5+
#![feature(mgca_type_const_syntax)]
6+
//~^ WARN the feature `mgca_type_const_syntax` is incomplete
57
#![feature(inherent_associated_types)]
68
//~^ WARN the feature `inherent_associated_types` is incomplete
79

tests/ui/associated-consts/type-const-in-array-len-wrong-type.stderr

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,29 @@ LL | #![feature(min_generic_const_args)]
1515
|
1616
= note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
1717

18-
warning: the feature `inherent_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
18+
warning: the feature `mgca_type_const_syntax` is incomplete and may not be safe to use and/or cause compiler crashes
1919
--> $DIR/type-const-in-array-len-wrong-type.rs:5:12
2020
|
21+
LL | #![feature(mgca_type_const_syntax)]
22+
| ^^^^^^^^^^^^^^^^^^^^^^
23+
|
24+
= note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
25+
26+
warning: the feature `inherent_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
27+
--> $DIR/type-const-in-array-len-wrong-type.rs:7:12
28+
|
2129
LL | #![feature(inherent_associated_types)]
2230
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2331
|
2432
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
2533

2634
error: the constant `2` is not of type `usize`
27-
--> $DIR/type-const-in-array-len-wrong-type.rs:13:26
35+
--> $DIR/type-const-in-array-len-wrong-type.rs:15:26
2836
|
2937
LL | fn lfn_contents() -> [char; Self::LFN_FRAGMENT_LEN] {
3038
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i64`
3139
|
3240
= note: the length of array `[char; 2]` must be type `usize`
3341

34-
error: aborting due to 1 previous error; 3 warnings emitted
42+
error: aborting due to 1 previous error; 4 warnings emitted
3543

0 commit comments

Comments
 (0)