Function rustc_parse::parser::attr_wrapper::needs_tokens

source ยท
fn needs_tokens(attrs: &[Attribute]) -> bool
Expand description

Tokens are needed if:

  • any non-single-segment attributes (other than doc comments) are present; or
  • any cfg_attr attributes are present;
  • any single-segment, non-builtin attributes are present.