rustdoc: Pretty-print assoc const defaults on-demand
This should improve performance, clean up the code, and help pave the way for #83035.
This commit is contained in:
parent
b8dc6aa673
commit
d38ae767f8
4 changed files with 28 additions and 9 deletions
|
@ -762,7 +762,7 @@ fn assoc_const(
|
|||
w: &mut Buffer,
|
||||
it: &clean::Item,
|
||||
ty: &clean::Type,
|
||||
_default: Option<&String>,
|
||||
_default: Option<&clean::ConstantKind>,
|
||||
link: AssocItemLink<'_>,
|
||||
extra: &str,
|
||||
cx: &Context<'_>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue