Skip to content

Fix test style in unused parentheses lint test #63237

Closed
@bravomikekilo

Description

@bravomikekilo

Update test file to use #![deny(unused_parens)] + //~ ERROR annotations instead of pretty-json (see https://rust-lang.github.io/rustc-guide/tests/adding.html)

The files need to update are:

  • test/lint/unused_parens_json_suggestions.rs
  • test/lint/used_parens_remove_json_suggestion.rs

This issue has been assigned to @polyedre via this comment.

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-testsuiteArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-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.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