]> git.lizzy.rs Git - rust.git/commit
only check for automatically_derived on impls, not individual methods
authorErik Desjardins <erikdesjardins@users.noreply.github.com>
Sat, 2 Oct 2021 13:53:51 +0000 (09:53 -0400)
committerErik Desjardins <erikdesjardins@users.noreply.github.com>
Sat, 2 Oct 2021 13:53:51 +0000 (09:53 -0400)
commitbec5a91450d58a821c8a41a93dd2563fc7eb4606
tree320117c8e81bd82f34409958b6b433fa8b0bfc9d
parenteb4ba58572bfaec9a9ca843b368e05564d9b1cb0
only check for automatically_derived on impls, not individual methods

this matches behavior of existing code
https://github.com/rust-lang/rust/blob/b27661eb33c74cb514dba059b47d86b6582ac1c2/compiler/rustc_passes/src/liveness.rs#L326-L333
compiler/rustc_passes/src/dead.rs