-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
@bors r+ Eventually we want to use a diagnostic-item API like in #58070 (comment) , but in the meantime this is fine |
📌 Commit a2d4e85 has been approved by |
Oh, #39131 is a better link for that |
…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
…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: 🔑 Insufficient privileges: Not in reviewers |
Ugh, it would be great if the author of a PR could always |
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.
a2d4e85
to
136d66f
Compare
The fix was easier, than anticipated. This should test-pass again. |
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
This fix is obsolet once rust-lang/rust#59779 and rust-lang#3926 is merged.
Rustup cc rust-lang/rust#59227 (comment) This fix is obsolet once rust-lang/rust#59779 and #3926 is merged.
ping @Manishearth this needs to be reapproved, due to #59779 (comment) |
@bors r+ |
📌 Commit 136d66f has been approved by |
…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
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
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~~
cc rust-lang/rust-clippy#3926
cc #59738
This uplifts
get_def_path
from Clippy. This is a follow up on theimplementation of internal lints: #59316
The internal lint implementation also copied the implementation of the
AbsolutePathPrinter
. To get rid of this code duplication this alsouplifts the
get_def_path
function from Clippy.This also renames
match_path
tomatch_def_path
, as it was originallynamed in Clippy.
r? @Manishearth