Do not display ~const in rustdoc
This commit is contained in:
parent
03a8cc7df1
commit
d2eccb028f
1 changed files with 2 additions and 1 deletions
|
@ -424,7 +424,8 @@ impl clean::GenericBound {
|
||||||
let modifier_str = match modifier {
|
let modifier_str = match modifier {
|
||||||
hir::TraitBoundModifier::None => "",
|
hir::TraitBoundModifier::None => "",
|
||||||
hir::TraitBoundModifier::Maybe => "?",
|
hir::TraitBoundModifier::Maybe => "?",
|
||||||
hir::TraitBoundModifier::MaybeConst => "~const",
|
// ~const is experimental; do not display those bounds in rustdoc
|
||||||
|
hir::TraitBoundModifier::MaybeConst => "",
|
||||||
};
|
};
|
||||||
if f.alternate() {
|
if f.alternate() {
|
||||||
write!(f, "{}{:#}", modifier_str, ty.print(cx))
|
write!(f, "{}{:#}", modifier_str, ty.print(cx))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue