You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fix for this but as usual, it created a whole host of new issues like : Sized appearing on every type parameter and the appearance of repeated bounds between the type parameter list and where clause which I'll fix up.
Run syntax checking, type checking, analysis, etc. on a crate.
Walk the crate's AST, cleaning it up as it goes into a form more palatable for rendering and caching information like trait impls.
Render the cleaned crate as HTML.
When it hits re-exported items though, it can't get ASTs for them, so it has to not only "inline" the document attribute for that item from the external crate but also clean an entirely different set of types (generally living in rustc::middle::ty), often undoing a lot of work done by the compiler to make something at least close to the original signature for the item.
I think the right, but maybe painful, thing to do would be to always build rustdocs from the compiled crate, and not from the AST, which would mean if a rustdoc feature is broken for re-exports it's also broken for "normal" items. It would also mean not re-implementing every feature twice, once for the AST and another for ty types.
For example:
The docs for
bar::f
will be missing the?Sized
bound on T.The text was updated successfully, but these errors were encountered: