internal: Remove name fields from MacroCallKind

This commit is contained in:
Lukas Wirth 2022-02-21 00:02:10 +01:00
parent fbe787ee10
commit 035bedc28b
5 changed files with 38 additions and 60 deletions

View file

@ -125,16 +125,16 @@ pub enum MacroCallKind {
},
Derive {
ast_id: AstId<ast::Adt>,
derive_name: Box<str>,
/// Syntactical index of the invoking `#[derive]` attribute.
///
/// Outer attributes are counted first, then inner attributes. This does not support
/// out-of-line modules, which may have attributes spread across 2 files!
derive_attr_index: u32,
/// Index of the derive macro in the derive attribute
derive_index: u32,
},
Attr {
ast_id: AstId<ast::Item>,
attr_name: Box<str>,
attr_args: Arc<(tt::Subtree, mbe::TokenMap)>,
/// Syntactical index of the invoking `#[attribute]`.
///