Skip to content

quote_expr!() can cause early abort #14282

Closed
@lilyball

Description

@lilyball

It seems as though using quote_expr!() in a syntax extension after a span_err() will cause rustc to abort early instead of finishing the macro expansion phase.

I hit this in my bytes!() PR, where I ended up having to track whether I had an error and use DummyResult instead of quote_expr!().

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions