pub(super) fn try_match_macro_attr<'matcher, T: Tracker<'matcher>>(
psess: &ParseSess,
name: Ident,
attr_args: &TokenStream,
attr_body: &TokenStream,
rules: &'matcher [MacroRule],
track: &mut T,
) -> Result<(usize, &'matcher MacroRule, FxHashMap<MacroRulesNormalizedIdent, NamedMatch>), CanRetry>
Expand description
Try expanding the macro attribute. Returns the index of the successful arm and its
named_matches if it was successful, and nothing if it failed. On failure, it’s the caller’s job
to use track
accordingly to record all errors correctly.