Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several run rustfix annotations #3658

Merged
merged 18 commits into from
Jan 14, 2019

Conversation

detrumi
Copy link
Member

@detrumi detrumi commented Jan 13, 2019

Adds run-rustfix to 18 of the tests from the tracking issue #3630.
Each test has its own commit, to make reviewing easier (hopefully this is easier to review than 18 separate PRs).

Changes

  • cfg_attr_rustfmt: Custom inner attributes are unstable. Let's disable the lint for inner attributes until #54726 stabilizes
  • collapsible_if: unrelated cyclomatic_complexity warning that can be ignored
  • duration_subsec: Simply needed #![allow(dead_code)]
  • excessive_precision: Fixed by #!allow(dead_code,unused_variables)
  • explicit_write: Fixed by #![allow(unused_imports)]
  • inconsistent_digit_grouping: Avoid triggering clippy::excessive_precision lint
  • infallible_destructuring_match: Fixed by #![allow(dead_code, unreachable_code, unused_variables)]
  • into_iter_on_ref: Triggered unrelated clippy::useless_vec lint
  • large_digit_groups: Avoid triggering clippy::excessive_precision lint
  • map_clone: Fixed by #![allow(clippy::iter_cloned_collect)]
  • mem_replace: Suggestion causes import to be unused, fixed by #![allow(unused_imports)]
  • precedence: Allow some unrelated lints, and change out-of-range 0b1111_1111i8 literal
  • redundant_field_names: Allow dead code, and remove stabilized feature toggles
  • replace_consts: Fixed by #![allow(unused_variables)]
  • starts_ends_with: Fixed by #![allow(unused_must_use)]
  • types: Fixed by #![allow(dead_code, unused_variables)]
  • unit_arg: Fixed by #[allow(unused_must_use)]
  • unnecessary_fold: Fixed by adding type annotations and adding #![allow(dead_code)]

@flip1995 flip1995 added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 14, 2019
Copy link
Member

@phansch phansch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

clippy_lints/src/attrs.rs Show resolved Hide resolved
@phansch
Copy link
Member

phansch commented Jan 14, 2019

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 14, 2019

📌 Commit 51c0dd4 has been approved by phansch

@bors
Copy link
Collaborator

bors commented Jan 14, 2019

⌛ Testing commit 51c0dd4 with merge ec1a6cb...

bors added a commit that referenced this pull request Jan 14, 2019
…phansch

Add several run rustfix annotations

Adds `run-rustfix` to 18 of the tests from the tracking issue #3630.
Each test has its own commit, to make reviewing easier (hopefully this is easier to review than 18 separate PRs).

## Changes
- `cfg_attr_rustfmt`: Custom inner attributes are unstable. Let's disable the lint for inner attributes until [#54726](rust-lang/rust#54726) stabilizes
- `collapsible_if`: unrelated cyclomatic_complexity warning that can be ignored
- `duration_subsec`: Simply needed `#![allow(dead_code)]`
- `excessive_precision`: Fixed by `#!allow(dead_code,unused_variables)`
- `explicit_write`: Fixed by `#![allow(unused_imports)]`
- `inconsistent_digit_grouping`: Avoid triggering `clippy::excessive_precision` lint
- `infallible_destructuring_match`: Fixed by `#![allow(dead_code, unreachable_code, unused_variables)]`
- `into_iter_on_ref`: Triggered unrelated `clippy::useless_vec` lint
- `large_digit_groups`: Avoid triggering `clippy::excessive_precision` lint
- `map_clone`: Fixed by `#![allow(clippy::iter_cloned_collect)]`
- `mem_replace`: Suggestion causes import to be unused, fixed by `#![allow(unused_imports)]`
- `precedence`: Allow some unrelated lints, and change out-of-range `0b1111_1111i8` literal
- `redundant_field_names`: Allow dead code, and remove stabilized feature toggles
- `replace_consts`: Fixed by `#![allow(unused_variables)]`
- `starts_ends_with`: Fixed by `#![allow(unused_must_use)]`
- `types`: Fixed by `#![allow(dead_code, unused_variables)]`
- `unit_arg`: Fixed by `#[allow(unused_must_use)]`
- `unnecessary_fold`: Fixed by adding type annotations and adding `#![allow(dead_code)]`
@bors
Copy link
Collaborator

bors commented Jan 14, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: phansch
Pushing ec1a6cb to master...

@bors bors merged commit 51c0dd4 into rust-lang:master Jan 14, 2019
@detrumi detrumi deleted the add-several-run-rustfix-annotations branch January 14, 2019 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants