diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2019-04-26 01:16:57 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2019-06-20 17:36:43 +0300 |
| commit | 4c8d00a3ec9cecfdff7b5da5a7157cc532e78ee2 (patch) | |
| tree | 36d4bacb7538b9289224f6c5c4a82d6c66d13401 /src/test/rustdoc/issue-50159.rs | |
| parent | 4fb77a0398d0339f35f1b18595b375428babd431 (diff) | |
| download | rust-4c8d00a3ec9cecfdff7b5da5a7157cc532e78ee2.tar.gz rust-4c8d00a3ec9cecfdff7b5da5a7157cc532e78ee2.zip | |
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.
Diffstat (limited to 'src/test/rustdoc/issue-50159.rs')
| -rw-r--r-- | src/test/rustdoc/issue-50159.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc/issue-50159.rs b/src/test/rustdoc/issue-50159.rs index d175c82ec87..74502be622a 100644 --- a/src/test/rustdoc/issue-50159.rs +++ b/src/test/rustdoc/issue-50159.rs @@ -14,7 +14,7 @@ impl<B, C> Signal2 for B where B: Signal<Item = C> { // @has - '//code' 'impl<B> Send for Switch<B> where <B as Signal>::Item: Send' // @has - '//code' 'impl<B> Sync for Switch<B> where <B as Signal>::Item: Sync' // @count - '//*[@id="implementations-list"]/*[@class="impl"]' 0 -// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 2 +// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 5 pub struct Switch<B: Signal> { pub inner: <B as Signal2>::Item2, } |
