We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 529148d commit 9a88652Copy full SHA for 9a88652
src/librustdoc/html/format.rs
@@ -407,7 +407,8 @@ impl clean::GenericBound {
407
let modifier_str = match modifier {
408
hir::TraitBoundModifier::None => "",
409
hir::TraitBoundModifier::Maybe => "?",
410
- hir::TraitBoundModifier::MaybeConst => "~const",
+ // ~const is experimental; do not display those bounds in rustdoc
411
+ hir::TraitBoundModifier::MaybeConst => "",
412
};
413
if f.alternate() {
414
write!(f, "{}{:#}", modifier_str, ty.print(cx))
0 commit comments