Skip to content

Take advantage of error nodes for error handling #220

@philberty

Description

@philberty

To compile Rust code we have many passes to generate more information stored in side-tables such as name-resolution lookups or type information. With each successive pass we have code to check if any errors have occurred in the previous pass lets exit.

This is not of sufficient quality for error handling, GCC has error_mark_node which means even if you have errors with unknown variables for example we can simply treat this as an error node in the graph and continue the compilation process as far as possible and simply delegate the error handling over to GCC instead of the front-end code. This means we will respect all existing conventions and return codes properly.

This issue will track any child issues trying to fix this in the front-end.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions