diff options
| author | bors <bors@rust-lang.org> | 2021-05-26 22:15:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-26 22:15:07 +0000 |
| commit | f205dd176a277457d3a5052565807b31e9391df4 (patch) | |
| tree | 68508689d9be3f67c98dfdd8f44357bd9e190920 | |
| parent | 6d50cff45afeeca85a14f1284badf9fc4b5b7668 (diff) | |
| parent | 5cc6635fcfe9606729dc8a3cd26bf8012d3cdd55 (diff) | |
| download | rust-f205dd176a277457d3a5052565807b31e9391df4.tar.gz rust-f205dd176a277457d3a5052565807b31e9391df4.zip | |
Auto merge of #7280 - camsteffen:macro-use, r=Manishearth
Add macro_use clippy_utils changelog: none
| -rw-r--r-- | clippy_lints/src/lib.rs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index cf54021202f..7739bd57a99 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -41,6 +41,9 @@ extern crate rustc_target; extern crate rustc_trait_selection; extern crate rustc_typeck; +#[macro_use] +extern crate clippy_utils; + use clippy_utils::parse_msrv; use rustc_data_structures::fx::FxHashSet; use rustc_lint::LintId; @@ -145,25 +148,10 @@ macro_rules! declare_clippy_lint { }; } -#[macro_export] -macro_rules! sym { - ( $($x:tt)* ) => { clippy_utils::sym!($($x)*) } -} - -#[macro_export] -macro_rules! unwrap_cargo_metadata { - ( $($x:tt)* ) => { clippy_utils::unwrap_cargo_metadata!($($x)*) } -} - -macro_rules! extract_msrv_attr { - ( $($x:tt)* ) => { clippy_utils::extract_msrv_attr!($($x)*); } -} - mod consts; -#[macro_use] -mod utils; #[cfg(feature = "metadata-collector-lint")] mod deprecated_lints; +mod utils; // begin lints modules, do not remove this comment, it’s used in `update_lints` mod absurd_extreme_comparisons; |
