Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnr
Stabilise `feature(const_generics_defaults)`
`feature(const_generics_defaults)` is complete implementation wise and has a pretty extensive test suite so I think is ready for stabilisation.
needs stabilisation report and maybe an RFC 😅
r? `@lcnr`
cc `@rust-lang/project-const-generics`
This commit is contained in:
commit
753e569c9c
94 changed files with 101 additions and 380 deletions
|
|
@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
|
|||
--> $DIR/issue-14303-enum.rs:1:15
|
||||
|
|
||||
LL | enum X<'a, T, 'b> {
|
||||
| --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
|
||||
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
|
|||
--> $DIR/issue-14303-fn-def.rs:1:15
|
||||
|
|
||||
LL | fn foo<'a, T, 'b>(x: &'a T) {}
|
||||
| --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
|
||||
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
|
|||
--> $DIR/issue-14303-impl.rs:3:13
|
||||
|
|
||||
LL | impl<'a, T, 'b> X<T> {}
|
||||
| --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
|
||||
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
|
|||
--> $DIR/issue-14303-struct.rs:1:17
|
||||
|
|
||||
LL | struct X<'a, T, 'b> {
|
||||
| --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
|
||||
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
|
|||
--> $DIR/issue-14303-trait.rs:1:18
|
||||
|
|
||||
LL | trait Foo<'a, T, 'b> {}
|
||||
| --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
|
||||
| --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue