Skip to content

compiletest: //~ ERROR annotations are ignored in compile-pass tests #56277

Closed

Description

@petrochenkov

Reproduction:

// compile-pass

fn main() {} //~ ERROR any misleading message

The test passes despite the incorrect //~ ERROR annotation.

Tests often have these annotations while they are WIP, but then everything is good, the test passes and is marked as // compile-pass, but stray //~ ERROR annotations may remain confusing the reader.

Activity

  1. added
    A-testsuiteArea: The testsuite used to check the correctness of rustc
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    E-help-wantedCall for participation: Help is requested to fix this issue.
    on Nov 27, 2018
  2. petrochenkov commented on Nov 27, 2018

    @petrochenkov
    ContributorAuthor

    Somewhat similar to #55596

  3. added a commit that references this issue on Oct 29, 2019
    d4efde0
  4. added 2 commits that reference this issue on Nov 1, 2019
    a5efbe3
    098478e
  5. added 3 commits that reference this issue on Nov 2, 2019
    8e6ddca
    b43a682
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-testsuiteArea: The testsuite used to check the correctness of rustcE-help-wantedCall for participation: Help is requested to fix this issue.T-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