]> git.lizzy.rs Git - rust.git/commit
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)
commitf30bf69ec7af4366e64916f32566f3a894edd593
tree2e7a647a4ac27d8cc0e2d0ba340c58b39d31727e
parent804f8e6b5a13cf304e5f5bbef99cf2d70a145bd6
parent72058a6d0d63fef5705e6f4d040b1dff3ce7affd
Auto merge of #4508 - rust-lang:reduced-symbolism, r=phansch

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
clippy_lints/src/utils/mod.rs