1
Fork 0

Fix print const on librustdoc

This commit is contained in:
Santiago Pastorino 2019-12-13 16:23:23 -03:00 committed by Oliver Scherer
parent 5d9b399044
commit a9de4f11ed

View file

@ -467,7 +467,7 @@ pub fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
inline::print_inlined_const(cx, def_id)
};
if let Some(promoted) = promoted {
s.push_str(&format!("{:?}", promoted))
s.push_str(&format!("::{:?}", promoted))
}
s
}