Skip to content

Imported variadic functions passed to procedural macros incorrectly #58853

@alexcrichton

Description

@alexcrichton

In the most recent nightly (I think #57760 was likely the cause), some input to a macro like this:

#[foo]              
extern "C" {                 
    pub fn foo3(x: i32, ...);
}                            

will actually pass the following as input to the macro:

extern "C" {                      
    pub fn foo3(x: i32, ..., ...);
}                                 

which then fails to parse in libraries like syn!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions