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
…umeGomez
Use `pprust` to print attributes in rustdoc
Fixesrust-lang#69559.
I'm not sure what the original motivation was for the `render_attribute`, so I may be missing something, but replacing it with `pprust::attribute_to_string` seems to give the intended output (modulo some spacing idiosyncrasies).
r? @GuillaumeGomez
For example,
AtomicU64
is#[repr(C, align(8))]
, but rustdoc just displays#[repr(C)]
: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.htmlThe text was updated successfully, but these errors were encountered: