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

Remove match_path and match_qpath #7049

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Apr 7, 2021

The only remaining usage is the author lint, so the functions are left in for now. The test result for repl_uninit changed, the lint was broken before.

The collapsible_span_lint_calls and match_type_on_diag_item tests have been changed. Both lints were broken when utils was extracted into it's own crate. match_type_on_diag_item isn't quite fixed, but it's at least less broken.

changelog: None

@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 7, 2021
@camsteffen
Copy link
Contributor

Thanks for jumping on this! I think there is some overlapping work here with #7047. Also I think we should jump straight to diagnostic items where possible.

@flip1995
Copy link
Member

flip1995 commented Apr 8, 2021

r? @camsteffen You've done more work in this direction recently, so I leave reviewing this PR to you.

@rust-highfive rust-highfive assigned camsteffen and unassigned flip1995 Apr 8, 2021
clippy_utils/src/lib.rs Show resolved Hide resolved
clippy_utils/src/lib.rs Outdated Show resolved Hide resolved
@bors
Copy link
Collaborator

bors commented Apr 8, 2021

☔ The latest upstream changes (presumably #7023) made this pull request unmergeable. Please resolve the merge conflicts.

@Jarcho Jarcho force-pushed the remove_match_path branch 2 times, most recently from 252bc07 to 56e6bb8 Compare April 13, 2021 03:07
@Jarcho
Copy link
Contributor Author

Jarcho commented Apr 13, 2021

Remaining util functions:

  • expr_path_res
  • is_qpath_def_path
  • is_expr_path_def_path
  • match_any_def_paths

@Jarcho Jarcho force-pushed the remove_match_path branch 2 times, most recently from d99bb68 to a408d4d Compare April 13, 2021 11:26
@bors
Copy link
Collaborator

bors commented Apr 13, 2021

☔ The latest upstream changes (presumably #7074) made this pull request unmergeable. Please resolve the merge conflicts.

clippy_lints/src/implicit_saturating_sub.rs Outdated Show resolved Hide resolved
clippy_lints/src/map_identity.rs Outdated Show resolved Hide resolved
clippy_lints/src/implicit_saturating_sub.rs Outdated Show resolved Hide resolved
clippy_utils/src/lib.rs Outdated Show resolved Hide resolved
clippy_lints/src/question_mark.rs Outdated Show resolved Hide resolved
clippy_lints/src/slow_vector_initialization.rs Outdated Show resolved Hide resolved
clippy_utils/src/lib.rs Outdated Show resolved Hide resolved
@Jarcho Jarcho force-pushed the remove_match_path branch 2 times, most recently from cb19326 to 4929caa Compare April 15, 2021 01:15
@Jarcho Jarcho force-pushed the remove_match_path branch 5 times, most recently from 5764a13 to 2205c55 Compare April 15, 2021 11:45
@camsteffen
Copy link
Contributor

Let me know when you're ready for another review in a comment or in the github UI. After the next review, please push any additional changes as separate commits so that I can see what changed, and then squash at the end.

@Jarcho
Copy link
Contributor Author

Jarcho commented Apr 15, 2021

Good to keep going.

clippy_utils/src/paths.rs Outdated Show resolved Hide resolved
tests/ui/repl_uninit.stderr Outdated Show resolved Hide resolved
Copy link
Contributor

@camsteffen camsteffen left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! Squash and then r=me

… except the `author` lint.

Add note to fix `MATCH_TYPE_ON_DIAG_ITEM`
Add false negative test for `uninit_assumed_init`
@camsteffen
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 15, 2021

📌 Commit f6c5d8d has been approved by camsteffen

@bors
Copy link
Collaborator

bors commented Apr 15, 2021

⌛ Testing commit f6c5d8d with merge 586a993...

@bors
Copy link
Collaborator

bors commented Apr 16, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: camsteffen
Pushing 586a993 to master...

@bors bors merged commit 586a993 into rust-lang:master Apr 16, 2021
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.

5 participants