]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #4508 - rust-lang:reduced-symbolism, r=phansch
authorbors <bors@rust-lang.org>
Fri, 6 Sep 2019 15:10:06 +0000 (15:10 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 Sep 2019 15:10:06 +0000 (15:10 +0000)
Simplify `utils::match_def_path`, removing a FIXME

changelog: none

This removes the `Vec<Symbol>` allocation. We still need to call `cx.get_def_path`, but this should already have been interned, and I don't see how we can keep ergonomics of that function without allocating a `Vec`.

r? @phansch

1  2 
clippy_lints/src/utils/mod.rs

Simple merge