Skip to content

Commit 18c5614

Browse files
committed
--bless tests due to INCOMPLETE_FEATURES being a lint.
1 parent 651c178 commit 18c5614

File tree

58 files changed

+159
-54
lines changed

Some content is hidden

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

58 files changed

+159
-54
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
810
--> $DIR/duplicate.rs:12:36

src/test/ui/associated-type-bounds/dyn-lcsit.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/array-wrapper-struct-ctor.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/broken-mir-1.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/broken-mir-2.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0277]: arrays only have std trait implementations for lengths 0..=32
810
--> $DIR/broken-mir-2.rs:7:36

src/test/ui/const-generics/cannot-infer-const-args.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0282]: type annotations needed
810
--> $DIR/cannot-infer-const-args.rs:9:5

src/test/ui/const-generics/cannot-infer-type-for-const-param.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/concrete-const-as-fn-arg.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/concrete-const-impl-method.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/condition-in-trait-const-arg.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/const-arg-in-fn.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/const-expression-parameter.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
99
|
1010
LL | #![feature(const_generics)]
1111
| ^^^^^^^^^^^^^^
12+
|
13+
= note: `#[warn(incomplete_features)]` on by default
1214

1315
error: aborting due to previous error
1416

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2-
--> $DIR/const-fn-with-const-param.rs:1:12
3-
|
4-
LL | #![feature(const_generics)]
5-
| ^^^^^^^^^^^^^^
6-
71
error: const parameters are not permitted in `const fn`
82
--> $DIR/const-fn-with-const-param.rs:4:1
93
|
@@ -13,5 +7,13 @@ LL | | X
137
LL | | }
148
| |_^
159

10+
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
11+
--> $DIR/const-fn-with-const-param.rs:1:12
12+
|
13+
LL | #![feature(const_generics)]
14+
| ^^^^^^^^^^^^^^
15+
|
16+
= note: `#[warn(incomplete_features)]` on by default
17+
1618
error: aborting due to previous error
1719

src/test/ui/const-generics/const-generic-array-wrapper.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/const-param-before-other-params.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(const_generics)]
2-
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
32

43
fn bar<const X: (), 'a>(_: &'a ()) {
54
//~^ ERROR lifetime parameters must be declared prior to const parameters

src/test/ui/const-generics/const-param-before-other-params.stderr

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2-
--> $DIR/const-param-before-other-params.rs:1:12
3-
|
4-
LL | #![feature(const_generics)]
5-
| ^^^^^^^^^^^^^^
6-
71
error: lifetime parameters must be declared prior to const parameters
8-
--> $DIR/const-param-before-other-params.rs:4:21
2+
--> $DIR/const-param-before-other-params.rs:3:21
93
|
104
LL | fn bar<const X: (), 'a>(_: &'a ()) {
115
| --------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, const X: ()>`
126

137
error: type parameters must be declared prior to const parameters
14-
--> $DIR/const-param-before-other-params.rs:8:21
8+
--> $DIR/const-param-before-other-params.rs:7:21
159
|
1610
LL | fn foo<const X: (), T>(_: &T) {
1711
| --------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const X: ()>`
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2-
--> $DIR/const-param-from-outer-fn.rs:1:12
3-
|
4-
LL | #![feature(const_generics)]
5-
| ^^^^^^^^^^^^^^
6-
71
error[E0401]: can't use generic parameters from outer function
82
--> $DIR/const-param-from-outer-fn.rs:6:9
93
|
@@ -14,6 +8,14 @@ LL | fn bar() -> u32 {
148
LL | X
159
| ^ use of generic parameter from outer function
1610

11+
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
12+
--> $DIR/const-param-from-outer-fn.rs:1:12
13+
|
14+
LL | #![feature(const_generics)]
15+
| ^^^^^^^^^^^^^^
16+
|
17+
= note: `#[warn(incomplete_features)]` on by default
18+
1719
error: aborting due to previous error
1820

1921
For more information about this error, try `rustc --explain E0401`.

src/test/ui/const-generics/const-param-in-trait.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/const-param-type-depends-on-type-param.stderr

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
error[E0671]: const parameters cannot depend on type parameters
2+
--> $DIR/const-param-type-depends-on-type-param.rs:9:34
3+
|
4+
LL | pub struct Dependent<T, const X: T>([(); X]);
5+
| ^ const parameter depends on type parameter
6+
17
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
28
--> $DIR/const-param-type-depends-on-type-param.rs:1:12
39
|
410
LL | #![feature(const_generics)]
511
| ^^^^^^^^^^^^^^
6-
7-
error[E0671]: const parameters cannot depend on type parameters
8-
--> $DIR/const-param-type-depends-on-type-param.rs:9:34
912
|
10-
LL | pub struct Dependent<T, const X: T>([(); X]);
11-
| ^ const parameter depends on type parameter
13+
= note: `#[warn(incomplete_features)]` on by default
1214

1315
error[E0392]: parameter `T` is never used
1416
--> $DIR/const-param-type-depends-on-type-param.rs:9:22

src/test/ui/const-generics/const-parameter-uppercase-lint.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error: const parameter `x` should have an upper case name
810
--> $DIR/const-parameter-uppercase-lint.rs:6:15

src/test/ui/const-generics/const-types.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/derive-debug-array-wrapper.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0277]: arrays only have std trait implementations for lengths 0..=32
810
--> $DIR/derive-debug-array-wrapper.rs:6:5

src/test/ui/const-generics/fn-taking-const-generic-array.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/impl-const-generic-struct.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/incorrect-number-of-const-args.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0107]: wrong number of const arguments: expected 2, found 1
810
--> $DIR/incorrect-number-of-const-args.rs:9:5

src/test/ui/const-generics/issue-60818-struct-constructors.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/issue-61336-1.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error: array lengths can't depend on generic parameters
810
--> $DIR/issue-61336-1.rs:5:9

src/test/ui/const-generics/issue-61336-2.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error: array lengths can't depend on generic parameters
810
--> $DIR/issue-61336-2.rs:5:9

src/test/ui/const-generics/issue-61336.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error: array lengths can't depend on generic parameters
810
--> $DIR/issue-61336.rs:5:9

src/test/ui/const-generics/issue-61422.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/mut-ref-const-param-array.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
error[E0573]: expected type, found const parameter `C`
2+
--> $DIR/struct-with-invalid-const-param.rs:4:23
3+
|
4+
LL | struct S<const C: u8>(C);
5+
| ^ help: a struct with a similar name exists: `S`
6+
17
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
28
--> $DIR/struct-with-invalid-const-param.rs:1:12
39
|
410
LL | #![feature(const_generics)]
511
| ^^^^^^^^^^^^^^
6-
7-
error[E0573]: expected type, found const parameter `C`
8-
--> $DIR/struct-with-invalid-const-param.rs:4:23
912
|
10-
LL | struct S<const C: u8>(C);
11-
| ^ help: a struct with a similar name exists: `S`
13+
= note: `#[warn(incomplete_features)]` on by default
1214

1315
error: aborting due to previous error
1416

src/test/ui/const-generics/transparent-maybeunit-array-wrapper.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/uninferred-consts-during-codegen-1.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/uninferred-consts-during-codegen-2.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/const-generics/unused-const-param.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/error-codes/E0730.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `const_generics` is incomplete and may cause the compiler t
33
|
44
LL | #![feature(const_generics)]
55
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0730]: cannot pattern-match on an array without a fixed length
810
--> $DIR/E0730.rs:6:9

src/test/ui/existential_types/existential_type_const.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/impl-trait-in-bindings.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

src/test/ui/impl-trait/bindings-opaque.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ warning: the feature `impl_trait_in_bindings` is incomplete and may cause the co
33
|
44
LL | #![feature(impl_trait_in_bindings)]
55
| ^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
68

79
error[E0599]: no method named `count_ones` found for type `impl std::marker::Copy` in the current scope
810
--> $DIR/bindings-opaque.rs:11:17

0 commit comments

Comments
 (0)