We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried this code:
pub trait Something {} pub trait AnAmazingTrait {} impl<T: Something> AnAmazingTrait for T {} pub struct MyStruct; impl AnAmazingTrait for MyStruct {}
I expected to see this happen: The specific implementation on MyStruct's doc page
MyStruct
Instead, this happened: Both the specific implementation, and the inapplicable blanket implementation, are shown:
> rustdoc -vV rustdoc 1.49.0-nightly (31530e5d1 2020-10-20) binary: rustdoc commit-hash: 31530e5d132ebcc3654baf2e5460599681520af0 commit-date: 2020-10-20 host: x86_64-unknown-linux-gnu release: 1.49.0-nightly LLVM version: 11.0
@rustbot modify labels: +T-rustdoc
The text was updated successfully, but these errors were encountered:
@rustbot claim
Sorry, something went wrong.
b63d05a
Rollup merge of rust-lang#78678 - Nemo157:doc-cfg-w-traits, r=jyn514,…
f0965d5
…GuillaumeGomez Add tests and improve rendering of cfgs on traits Shows the additional features required to get the trait implementation, suppressing any already shown on the current page. One interesting effect from this is if you have a cfg-ed type, implementing a cfg-ed trait (so the implementation depends on both cfgs), you will get the inverted pair of cfgs shown on each page: ![image](https://user-images.githubusercontent.com/81079/97904671-207bdc00-1d41-11eb-8144-707e8017d2b6.png) ![image](https://user-images.githubusercontent.com/81079/97904700-27a2ea00-1d41-11eb-8b9f-e925ba339044.png) The hidden items on the trait implementation also now get the correct cfgs displayed on them. Tests are blocked on rust-lang#78673. fixes rust-lang#68100 cc rust-lang#43781
7a1bd80
Nemo157
Successfully merging a pull request may close this issue.
I tried this code:
I expected to see this happen: The specific implementation on
MyStruct
's doc pageInstead, this happened: Both the specific implementation, and the inapplicable blanket implementation, are shown:
Meta
@rustbot modify labels: +T-rustdoc
The text was updated successfully, but these errors were encountered: