Skip to content

Commit d2eccb0

Browse files
committed
Do not display ~const in rustdoc
1 parent 03a8cc7 commit d2eccb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/format.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ impl clean::GenericBound {
424424
let modifier_str = match modifier {
425425
hir::TraitBoundModifier::None => "",
426426
hir::TraitBoundModifier::Maybe => "?",
427-
hir::TraitBoundModifier::MaybeConst => "~const",
427+
// ~const is experimental; do not display those bounds in rustdoc
428+
hir::TraitBoundModifier::MaybeConst => "",
428429
};
429430
if f.alternate() {
430431
write!(f, "{}{:#}", modifier_str, ty.print(cx))

0 commit comments

Comments
 (0)