Skip to content

Commit 9a88652

Browse files
committed
Do not display ~const in rustdoc
1 parent 529148d commit 9a88652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/format.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ impl clean::GenericBound {
407407
let modifier_str = match modifier {
408408
hir::TraitBoundModifier::None => "",
409409
hir::TraitBoundModifier::Maybe => "?",
410-
hir::TraitBoundModifier::MaybeConst => "~const",
410+
// ~const is experimental; do not display those bounds in rustdoc
411+
hir::TraitBoundModifier::MaybeConst => "",
411412
};
412413
if f.alternate() {
413414
write!(f, "{}{:#}", modifier_str, ty.print(cx))

0 commit comments

Comments
 (0)