diff options
| author | Michael Goulet <michael@errs.io> | 2023-04-25 06:02:49 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-05-02 22:36:24 +0000 |
| commit | 8e330f9d5bb92b24afde750480b5d70d6c892da5 (patch) | |
| tree | 123ac41f40976980aea3427e37c756ca19a8a0bf | |
| parent | ae213e228dea06a6c0d6af0906e43c6d2a041054 (diff) | |
| download | rust-8e330f9d5bb92b24afde750480b5d70d6c892da5.tar.gz rust-8e330f9d5bb92b24afde750480b5d70d6c892da5.zip | |
Make tools happy
| -rw-r--r-- | src/types.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs index 01e2fb6e61e..9ebe38cc25f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -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 }) } |
