-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Weird generated documentation with const generics #60737
Comments
My guess is that rustdoc just doesn't yet handle const generics properly |
Support for const generics in rustdoc has not been tested very thoroughly at all (I don't think there are any tests in the test suite for it at all yet). We also have a number of issues with pretty-printing consts (#60738). That said, I imagine this would not be too difficult to fix: we're getting the right parameter — we're just debug printing it instead of pretty-printing it. |
Fix display of const generics in rustdoc <img width="745" alt="Screenshot 2019-05-18 at 15 45 22" src="https://user-images.githubusercontent.com/3050060/57970638-04854e80-7984-11e9-9f04-da6b51ec8bc7.png"> Part of #60737. cc @varkor r? @badboy
… r=GuillaumeGomez Print const generics properly in rustdoc Now that rust-lang#59276 is merged, we can print consts properly in rustdoc. Fixes rust-lang#60737. Fixes rust-lang#61257. r? @GuillaumeGomez
… r=GuillaumeGomez Print const generics properly in rustdoc Now that rust-lang#59276 is merged, we can print consts properly in rustdoc. Fixes rust-lang#60737. Fixes rust-lang#61257. r? @GuillaumeGomez
… r=GuillaumeGomez Print const generics properly in rustdoc Now that rust-lang#59276 is merged, we can print consts properly in rustdoc. Fixes rust-lang#60737. Fixes rust-lang#61257. r? @GuillaumeGomez
When playing around with const generics, I found some weird generated docs:
http://prntscr.com/nn8fgg
How to reproduce:
and go to the documentation on the VecSet struct (inside the vecset module), and find the auto impls.
The text was updated successfully, but these errors were encountered: