Skip to content

Commit 8e330f9

Browse files
Make tools happy
1 parent ae213e2 commit 8e330f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types.rs

+2
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@ impl Rewrite for ast::GenericBound {
552552
ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref
553553
.rewrite(context, shape.offset_left(8)?)
554554
.map(|s| format!("~const ?{}", s)),
555+
rustc_ast::TraitBoundModifier::Negative
556+
| rustc_ast::TraitBoundModifier::MaybeConstNegative => None,
555557
};
556558
rewrite.map(|s| if has_paren { format!("({})", s) } else { s })
557559
}

0 commit comments

Comments
 (0)