From dcb82cb805fe8cbd8ab0437440f1275dfdc048de Mon Sep 17 00:00:00 2001 From: Alissa Rao Date: Mon, 1 May 2023 05:14:15 -0700 Subject: [PATCH] Modifications to get stuff to compile on the new syn/darling version. --- enumset/tests/compile-fail/variants.stderr | 18 +++++++++--------- enumset_derive/src/lib.rs | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/enumset/tests/compile-fail/variants.stderr b/enumset/tests/compile-fail/variants.stderr index d243048..948e7fe 100644 --- a/enumset/tests/compile-fail/variants.stderr +++ b/enumset/tests/compile-fail/variants.stderr @@ -53,16 +53,16 @@ error: repr cannot be smaller than bitset. = note: this error originates in the derive macro `EnumSetType` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` is not satisfied - --> tests/compile-fail/variants.rs:64:5 - | -64 | EnumSet::::from_repr(1); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EnumSetTypeWithRepr` is not implemented for `OkayEnumButCantUseFromRepr` - | + --> tests/compile-fail/variants.rs:64:5 + | +64 | EnumSet::::from_repr(1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EnumSetTypeWithRepr` is not implemented for `OkayEnumButCantUseFromRepr` + | note: required by a bound in `enumset::EnumSet::::from_repr` - --> src/lib.rs - | - | where T: EnumSetTypeWithRepr { - | ^^^^^^^^^^^^^^^^^^^ required by this bound in `enumset::EnumSet::::from_repr` + --> src/lib.rs + | + | where T: EnumSetTypeWithRepr { + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EnumSet::::from_repr` error[E0277]: the trait bound `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` is not satisfied --> tests/compile-fail/variants.rs:64:5 diff --git a/enumset_derive/src/lib.rs b/enumset_derive/src/lib.rs index 04fc0df..56bfa17 100644 --- a/enumset_derive/src/lib.rs +++ b/enumset_derive/src/lib.rs @@ -618,7 +618,7 @@ fn derive_enum_set_type_0(input: DeriveInput, attrs: EnumsetAttrs) -> Result