Skip to content

Compiletest should detect when a .nll.stderr file matches the .stderr file #51204

Closed
@oli-obk

Description

@oli-obk

This happens when NLL has been fixed up to the point where it reproduces borrowck's output. (example: #51186)

If both are the same, automatically remove the .nll.stderr in --bless mode and emit an error without --bless.

Here's what --bless does when it detects that the output of files has changed. Something similar can be done as a new check for equality of the .nll.* and .* files. It would probably be best to extract the replacing code from the current --bless impl to a separate function so it can be reused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcE-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions