Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70d9281c authored by Jooyung Han's avatar Jooyung Han
Browse files

libbinder_rs: allow attributes for enumerators

declare_binder_enum macro now allows attributes for enumerators so that
an enumerator can be deprecated.

Bug: 218401941
Test: aidl_integration_test
Change-Id: If34fd88db3bee498a65d2d66eae14caa8583d0cf
parent 9779dd4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1086,7 +1086,7 @@ macro_rules! declare_binder_enum {
    {
        $( #[$attr:meta] )*
        $enum:ident : [$backing:ty; $size:expr] {
            $( $name:ident = $value:expr, )*
            $( $( #[$value_attr:meta] )* $name:ident = $value:expr, )*
        }
    } => {
        $( #[$attr] )*
@@ -1094,7 +1094,7 @@ macro_rules! declare_binder_enum {
        #[allow(missing_docs)]
        pub struct $enum(pub $backing);
        impl $enum {
            $( #[allow(missing_docs)] pub const $name: Self = Self($value); )*
            $( $( #[$value_attr] )* #[allow(missing_docs)] pub const $name: Self = Self($value); )*

            #[inline(always)]
            #[allow(missing_docs)]