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 | 40a63cb06ff21d7cd38f35c92a29162e43f9aadf (patch) | |
| tree | b233de574c13214643bd65abf928bc8e198da601 /src/tools/rustfmt | |
| parent | 86f50b9f5c56982f4f50404539c56395ce811f18 (diff) | |
| download | rust-40a63cb06ff21d7cd38f35c92a29162e43f9aadf.tar.gz rust-40a63cb06ff21d7cd38f35c92a29162e43f9aadf.zip | |
Make tools happy
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/types.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rustfmt/src/types.rs b/src/tools/rustfmt/src/types.rs index 01e2fb6e61e..9ebe38cc25f 100644 --- a/src/tools/rustfmt/src/types.rs +++ b/src/tools/rustfmt/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 }) } |
