Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot
Add `rustc_deny_explicit_impl` Also adjust `E0322` error message to be more general, since it's used for `DiscriminantKind` and `Pointee` as well. Also add `rustc_deny_explicit_impl` on the `Tuple` and `Destruct` marker traits.
This commit is contained in:
commit
55ff8bf847
6 changed files with 28 additions and 50 deletions
|
@ -1,4 +1,5 @@
|
|||
The `Sized` trait was implemented explicitly.
|
||||
A built-in trait was implemented explicitly. All implementations of the trait
|
||||
are provided automatically by the compiler.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue