Skip to content

"aborting due to N previous errors" only counts errors in the last pass #33525

Closed
@arielb1

Description

@arielb1

Meta

$ rustc --version
rustc 1.9.0-beta.1 (37a2869af 2016-04-12)

STR

fn main() {
    a;
    "".lorem;
    "".ipsum;
}

Expected Results

3 errors are reported, followed by "error: aborting due to 3 previous errors".

Actual Result

3 errors are reported, but the errors reported count only counts the 2 errors from the type-checking pass - so "error: aborting due to 2 previous errors" is printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions