Auto merge of #48523 - varkor:generics-ty-generalisations, r=nikomatsakis
The Great Generics Generalisation: Ty Edition Part of the generic parameter refactoring effort, split off from https://github.com/rust-lang/rust/pull/48149. Contains the `ty`-relative refactoring. r? @eddyb
This commit is contained in:
commit
e44fc6c52d
48 changed files with 985 additions and 825 deletions
|
|
@ -28,7 +28,7 @@ trait BadAnnotation1
|
|||
{}
|
||||
|
||||
#[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
|
||||
//~^ ERROR there is no type parameter C on trait BadAnnotation2
|
||||
//~^ ERROR there is no parameter C on trait BadAnnotation2
|
||||
trait BadAnnotation2<A,B>
|
||||
{}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ LL | #[rustc_on_unimplemented] //~ ERROR `#[rustc_on_unimplemented]` requires a
|
|||
|
|
||||
= note: eg `#[rustc_on_unimplemented = "foo"]`
|
||||
|
||||
error[E0230]: there is no type parameter C on trait BadAnnotation2
|
||||
error[E0230]: there is no parameter C on trait BadAnnotation2
|
||||
--> $DIR/bad-annotation.rs:30:1
|
||||
|
|
||||
LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue