fn take_first_attr_no_derive(
        &mut self,
        nonitem: &mut impl HasAttrs,
    ) -> Option<(Option<ast::Attribute>, Vec<Path>, /* after_derive */ bool)> {
        let (mut attr, mut after_derive) = (None, false);

        nonitem.visit_attrs(|mut attrs| {
            attr = self.find_attr_invoc(&mut attrs, &mut after_derive);
        });

        attr.map(|attr| (Some(attr), Vec::new(), after_derive))
    }
/// Alternative to `take_first_attr()` that ignores `#[derive]` so invocations fallthrough
/// to the unused-attributes lint (making it an error on statements and expressions
/// is a breaking change)
Alternative to `take_first_attr()` that ignores `#[derive]` so invocations fallthrough
to the unused-attributes lint (making it an error on statements and expressions
is a breaking change)
Alternative to ` take_first_attr () ` that ignores ` # [ derive ] ` so invocations fallthrough to the unused - attributes lint ( making it an error on statements and expressions is a breaking change )
fn take_first_attr_no_derive(
        &mut self,
        nonitem: &mut impl HasAttrs,
    ) -> Option<(Option<ast::Attribute>, Vec<Path>, /* after_derive */ bool)> {
        let (mut attr, mut after_derive) = (None, false);
        nonitem.visit_attrs(|mut attrs| {
            attr = self.find_attr_invoc(&mut attrs, &mut after_derive);
        });
        attr.map(|attr| (Some(attr), Vec::new(), after_derive))
    }
fn take_first_attr_no_derive ( & mut self , nonitem : & mut impl HasAttrs , ) -> Option < ( Option < ast :: Attribute > , Vec < Path > , /* after_derive */ bool ) > { let ( mut attr , mut after_derive ) = ( None , false ) ; nonitem . visit_attrs ( | mut attrs | { attr = self . find_attr_invoc ( & mut attrs , & mut after_derive ) ; } ) ; attr . map ( | attr | ( Some ( attr ) , Vec :: new ( ) , after_derive ) ) }
Alternative to `take_first_attr()` that ignores `#[derive]` so invocations fallthrough
to the unused-attributes lint (making it an error on statements and expressions
is a breaking change)
Alternative to ` take_first_attr () ` that ignores ` # [ derive ] ` so invocations fallthrough to the unused - attributes lint ( making it an error on statements and expressions is a breaking change )
&mut self
nonitem
&mut impl HasAttrs
&mut self
nonitem
&mut impl HasAttrs