-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix invalid trait generation #33935
Fix invalid trait generation #33935
Conversation
3bebdcc
to
e315e4e
Compare
That doesn't look quite right. |
Oh indeed. Going back to add missing information then. |
e315e4e
to
a8c4911
Compare
I think conceptually, I like this change, but I am gonna review the code more a bit later. If anyone else is happy with the code, feel free to r+ it. |
This seems okay to me, but I am still getting to know rustdoc. @rust-lang/tools do any of you have thoughts on this patch? |
The issue this is fixing, #33919, is mostly just a dupe of #14072 which is a general problem that rustdoc doesn't substitute type parameters, so it just shows up this way. In general I think this may be a pretty ad-hoc solution which doesn't actually get us much farther. It looks like this only handles I think this would be best done as a preparation pass during rustdoc, either during the "clean" phase or as a dedicated pass in rustdoc itself. The rendered is already pretty complicated with lots of functions taking lots of arguments, so offloading as much as we can elsewhere seems beneficial. |
@alexcrichton: That's what I tried at first but got quickly stuck with my lack of knowledge on the "low" code. I'll try to redo it in the "preparation pass". |
☔ The latest upstream changes (presumably #34541) made this pull request unmergeable. Please resolve the merge conflicts. |
@GuillaumeGomez are you still working on this? |
Closing due to a lack of activity, let me know if you want to keep up with this! |
Ah damn, didn't see the first comment. I'll, but don't know when. |
Fixes #33919.
r? @steveklabnik
And a screenshot to come along: