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

Uplift get_def_path from Clippy #59779

Merged
merged 1 commit into from
Apr 15, 2019
Merged

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Apr 7, 2019

cc rust-lang/rust-clippy#3926
cc #59738

This uplifts get_def_path from Clippy. This is a follow up on the
implementation of internal lints: #59316

The internal lint implementation also copied the implementation of the
AbsolutePathPrinter. To get rid of this code duplication this also
uplifts the get_def_path function from Clippy.

This also renames match_path to match_def_path, as it was originally
named in Clippy.

r? @Manishearth

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 7, 2019
@Manishearth
Copy link
Member

@bors r+

Eventually we want to use a diagnostic-item API like in #58070 (comment) , but in the meantime this is fine

@bors
Copy link
Contributor

bors commented Apr 7, 2019

📌 Commit a2d4e85 has been approved by Manishearth

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 7, 2019
@Manishearth
Copy link
Member

Oh, #39131 is a better link for that

Centril added a commit to Centril/rust that referenced this pull request Apr 8, 2019
…ishearth

Uplift `get_def_path` from Clippy

cc rust-lang/rust-clippy#3926
cc rust-lang#59738

This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: rust-lang#59316

The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.

This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.

r? @Manishearth
sanxiyn added a commit to sanxiyn/rust that referenced this pull request Apr 11, 2019
…ishearth

Uplift `get_def_path` from Clippy

cc rust-lang/rust-clippy#3926
cc rust-lang#59738

This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: rust-lang#59316

The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.

This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.

r? @Manishearth
@flip1995
Copy link
Member Author

This won't build anymore, due to #59227

I try to get a fix ready this evening

Do I have permission to unapprove this myself?
@bors r-

@bors
Copy link
Contributor

bors commented Apr 12, 2019

@flip1995: 🔑 Insufficient privileges: Not in reviewers

@matthiaskrgr
Copy link
Member

Ugh, it would be great if the author of a PR could always r- it in case they spot something that is wrong after approval :/

This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: rust-lang#59316

The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.

This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.
@flip1995
Copy link
Member Author

The fix was easier, than anticipated. This should test-pass again.

flip1995 added a commit to flip1995/rust-clippy that referenced this pull request Apr 12, 2019
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
flip1995 added a commit to flip1995/rust-clippy that referenced this pull request Apr 12, 2019
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
flip1995 added a commit to flip1995/rust-clippy that referenced this pull request Apr 12, 2019
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
flip1995 added a commit to flip1995/rust-clippy that referenced this pull request Apr 12, 2019
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
bors added a commit to rust-lang/rust-clippy that referenced this pull request Apr 12, 2019
@flip1995
Copy link
Member Author

ping @Manishearth this needs to be reapproved, due to #59779 (comment)

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Apr 15, 2019

📌 Commit 136d66f has been approved by Manishearth

Centril added a commit to Centril/rust that referenced this pull request Apr 15, 2019
…ishearth

Uplift `get_def_path` from Clippy

cc rust-lang/rust-clippy#3926
cc rust-lang#59738

This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: rust-lang#59316

The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.

This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.

r? @Manishearth
bors added a commit that referenced this pull request Apr 15, 2019
Rollup of 6 pull requests

Successful merges:

 - #59648 (Add must_use annotations to Result::is_ok and is_err)
 - #59748 (Add summary and reference to Rust trademark guide)
 - #59779 (Uplift `get_def_path` from Clippy)
 - #59955 (bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent)
 - #59978 (rustdoc: Remove default keyword from re-exported trait methods)
 - #59989 (Fix links to Atomic* in RELEASES.md)

Failed merges:

r? @ghost
@bors bors merged commit 136d66f into rust-lang:master Apr 15, 2019
@flip1995 flip1995 deleted the uplift_get_def_path branch April 16, 2019 07:15
bors added a commit to rust-lang/rust-clippy that referenced this pull request Apr 17, 2019
Use {get,match}_def_path from rustc

This is a follow up of the uplift of `{get,match}_def_path` to rustc.

~~This is blocked on rust-lang/rust#59779~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants