Skip to content

Commit

Permalink
Make tools happy
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed May 2, 2023
1 parent ae213e2 commit 8e330f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ impl Rewrite for ast::GenericBound {
ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref
.rewrite(context, shape.offset_left(8)?)
.map(|s| format!("~const ?{}", s)),
rustc_ast::TraitBoundModifier::Negative
| rustc_ast::TraitBoundModifier::MaybeConstNegative => None,
};
rewrite.map(|s| if has_paren { format!("({})", s) } else { s })
}
Expand Down

0 comments on commit 8e330f9

Please sign in to comment.