Skip to content

Errors in early passes should not bail until trans #36161

Closed
@ehiggs

Description

@ehiggs

If you use clippy and set deny to a lint in an early phase, like checking docstring syntax, then rustc will bail when it is done finding the issues in this early pass. This can give the impression that the code is sound since 'oh it's only docstring issues, whatever' when actually there could be more serious issues lurking. Obviously you can stop the lint from flagging errors and denying instead, but rustc should also not bail until it hits the trans phase so it can report more errors.

An example of the confusion can be seen here: autumnai/leaf#106

I asked @Manishearth about this on IRC and he recommended I submit an issue to rustc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions