We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a8cc7 commit d2eccb0Copy full SHA for d2eccb0
src/librustdoc/html/format.rs
@@ -424,7 +424,8 @@ impl clean::GenericBound {
424
let modifier_str = match modifier {
425
hir::TraitBoundModifier::None => "",
426
hir::TraitBoundModifier::Maybe => "?",
427
- hir::TraitBoundModifier::MaybeConst => "~const",
+ // ~const is experimental; do not display those bounds in rustdoc
428
+ hir::TraitBoundModifier::MaybeConst => "",
429
};
430
if f.alternate() {
431
write!(f, "{}{:#}", modifier_str, ty.print(cx))
0 commit comments