]> git.lizzy.rs Git - rust.git/commit
Suggest deriving traits if possible
authorPaul Trojahn <paul.trojahn@gmail.com>
Mon, 26 Jul 2021 18:26:23 +0000 (20:26 +0200)
committerPaul Trojahn <paul.trojahn@gmail.com>
Mon, 6 Sep 2021 11:18:05 +0000 (13:18 +0200)
commit50e5f90c925b411bac7de0ec3ec239d7d321b5a2
tree605d5f1093e938a80377d0b942425f6bcf5e81a9
parentd19d864e79531ad702e4f44b2635da6c50cc5eb0
Suggest deriving traits if possible

This only applies to builtin derives as I don't think there is a
clean way to get the available derives in typeck.

Closes #85851
compiler/rustc_typeck/src/check/method/suggest.rs
library/core/src/cmp.rs
library/core/src/hash/mod.rs
library/core/src/marker.rs
src/test/ui/derives/derive-assoc-type-not-impl.stderr
src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr
src/test/ui/suggestions/derive-trait-for-method-call.rs [new file with mode: 0644]
src/test/ui/suggestions/derive-trait-for-method-call.stderr [new file with mode: 0644]
src/test/ui/union/union-derive-clone.mirunsafeck.stderr
src/test/ui/union/union-derive-clone.thirunsafeck.stderr
src/test/ui/unique-pinned-nocopy.stderr