]> git.lizzy.rs Git - rust.git/commit
Uplift `get_def_path` from Clippy
authorflip1995 <hello@philkrones.com>
Sun, 7 Apr 2019 17:47:54 +0000 (19:47 +0200)
committerflip1995 <hello@philkrones.com>
Fri, 12 Apr 2019 08:38:39 +0000 (10:38 +0200)
commit136d66f0113b4fb53d517d6653fee0487b56202d
tree48b80110c3cbb1734dce3520f6092cd2d50db78b
parent0369e6c539a3085179c066ab1f789eb89cb4aed5
Uplift `get_def_path` from Clippy

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.
src/librustc/lint/context.rs
src/librustc/lint/internal.rs