]> git.lizzy.rs Git - rust.git/commit
Auto merge of #9495 - Alexendoo:disallowed-macros, r=Jarcho
authorbors <bors@rust-lang.org>
Wed, 5 Oct 2022 14:49:31 +0000 (14:49 +0000)
committerbors <bors@rust-lang.org>
Wed, 5 Oct 2022 14:49:31 +0000 (14:49 +0000)
commite687bedac68aaacac7948a26ed13bea5b7f43427
tree8cb0c81c1608eb25296f6d7862ccdab93f4e3fd5
parent425e1ea73d1e67c38c1d12e160d5fd20b64ffa5d
parent86c86c37429e95aee45846262bb50239a69be546
Auto merge of #9495 - Alexendoo:disallowed-macros, r=Jarcho

Add `disallowed_macros` lint

Closes #7790
Fixes #9558

`clippy_utils::def_path_res` already resolved macro definitions which is nice, it just needed a tweak to be able to disambiguate e.g. `std::vec` the module & `std::vec` the macro, and `serde::Serialize` the trait & `serde::Serialize` the derive macro

changelog: new lint: [`disallowed_macros`]
changelog: [`disallowed_methods`], [`disallowed_types`]: Fix false negative when a type/fn/macro share the same path