Skip to content

Use syn::Error for error handling in procedural macro #295

Closed
@ghost

Description

Currently, errors are handled in the procedural macros with panic!. This is better than failing silently, but produces unhelpful error messages, especially in larger projects. The syn::Error type can be used to generate properly spanned compile errors, which can be much more useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: exportComponent: export (mod export, derive)featureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions