Skip to content

Replace the ast::Mac_ enum with a struct #28527

Closed
@Manishearth

Description

@Manishearth

https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs#L1137

pub enum Mac_ {
    MacInvocTT(Path, Vec<TokenTree>, SyntaxContext),   // new macro-invocation
}

this should instead be something like

pub struct MacroInvoke {
    path: Path,
    tts: Vec<TokenTree>,
    context: SyntaxContext,
}

We'd need to update all type and other errors.

I'm willing to mentor this.

Please leave a comment if you're working on this and let me know if you need any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions