about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-12-11 14:15:52 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-12-11 14:22:34 -0800
commitd38ae767f841a307911abd5713695eae8390bbf0 (patch)
tree1e0f863f4d6eeb490582c69aef9fa92e5d4c71b4 /src/librustdoc/html/render
parentb8dc6aa673317cf72a8abb9c421f573f2b34b47a (diff)
downloadrust-d38ae767f841a307911abd5713695eae8390bbf0.tar.gz
rust-d38ae767f841a307911abd5713695eae8390bbf0.zip
rustdoc: Pretty-print assoc const defaults on-demand
This should improve performance, clean up the code, and help pave the
way for #83035.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 166e0840127..db31751176b 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -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<'_>,