]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #60293 - nagisa:rustdoc-all-the-auto-traits, r=eddyb
authorbors <bors@rust-lang.org>
Thu, 20 Jun 2019 23:44:52 +0000 (23:44 +0000)
committerbors <bors@rust-lang.org>
Thu, 20 Jun 2019 23:44:52 +0000 (23:44 +0000)
rustdoc: generate implementors for all auto traits

Previously we would only generate a list of synthetic implementations
for two well known traits – Send and Sync. With this patch all the auto
traits known to rustc are considered. This includes such traits like
Unpin and user’s own traits.

Sadly the implementation still iterates through the list of crate items
and checks them against the traits, which for non-std crates containing
their own auto-traits will still not include types defined in std/core.

It is an improvement nontheless.


Trivial merge