We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae213e2 commit 8e330f9Copy full SHA for 8e330f9
src/types.rs
@@ -552,6 +552,8 @@ impl Rewrite for ast::GenericBound {
552
ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref
553
.rewrite(context, shape.offset_left(8)?)
554
.map(|s| format!("~const ?{}", s)),
555
+ rustc_ast::TraitBoundModifier::Negative
556
+ | rustc_ast::TraitBoundModifier::MaybeConstNegative => None,
557
};
558
rewrite.map(|s| if has_paren { format!("({})", s) } else { s })
559
}
0 commit comments