-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
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
~const makes rustdoc show duplicate bounds #104886
Comments
If anyone would like to work on this, for the local case one solution is – in Actually, this is a can on worms: Rustdoc doesn't dedupe normal bounds either (for local / HIR definitions), e.g. pub trait Tr { fn f() where Self: Eq, Self: Eq; } // `Self: Eq` not deduped
pub trait Super {}
pub trait Sub: Super { fn f() where Self: Super; } // `Self: Super` not deduped Unassigning myself since I'm prioritizing a rustdoc PR I've been working on for some time. |
I'm taking a look then. |
…cates, r=notriddle Merge generics and where predicates and prevent duplicates in where predicates Part of rust-lang#104886 (I didn't include bounds from parent trait yet as I think the PR is already big enough). Also we'll need to run a perf check. cc `@fmease` since you worked a bit on this. r? `@notriddle`
AFAIU |
The underlying issue is still there so keeping it open (you can see it in #105392). |
For example, see documentation for the
Ord
trait from the standard library:This is slightly confusing IMO.
Related to #91187
The text was updated successfully, but these errors were encountered: