1
Fork 0

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:
Noah Lev 2021-12-11 14:15:52 -08:00
parent b8dc6aa673
commit d38ae767f8
4 changed files with 28 additions and 9 deletions

View file

@ -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<'_>,