Skip to content

mir-opt: support "FileCheck"-like annotations #85180

@RalfJung

Description

@RalfJung
Member

Ever since our mir-opt tests were changed to auto-blessing, we no longer have a way to say "but this part of the output must definitely look like that". This makes tests a lot more fragile. We should re-add some infrastructure like that.

LLVM has FileCheck for this. We also had something like that for mir-opt tests that we could reinstate (I think it was adequate for this job, it just didn't work well for large chunks of code).

Cc @rust-lang/wg-mir-opt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-mir-optArea: MIR optimizationsA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @RalfJung@oli-obk@wesleywiser

      Issue actions

        mir-opt: support "FileCheck"-like annotations · Issue #85180 · rust-lang/rust