Skip to content

Commit 489c4f0

Browse files
committed
Auto merge of #6756 - smoelius:clippy_utils, r=flip1995,obi-obk
Factor out `clippy_utils` crate As discussed in #6746, this PR factors out `clippy_lints::utils` as its own crate, `clippy_utils` . This change will allow `clippy_utils` to be used in lints outside of Clippy. There is no plan to publish this crate on `crates.io` (see #6746 (comment)). Dependent crates should obtain it from GitHub. changelog: Factor out `clippy_utils` so it can be used by external tools (not published)
2 parents 045d3f3 + ab7381f commit 489c4f0

29 files changed

+2529
-2463
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ out
1818
*Cargo.lock
1919
/target
2020
/clippy_lints/target
21+
/clippy_utils/target
2122
/clippy_workspace_tests/target
2223
/clippy_dev/target
2324
/rustc_tools_util/target

clippy_lints/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ edition = "2018"
1818

1919
[dependencies]
2020
cargo_metadata = "0.12"
21+
clippy_utils = { path = "../clippy_utils" }
2122
if_chain = "1.0.0"
2223
itertools = "0.9"
2324
pulldown-cmark = { version = "0.8", default-features = false }
@@ -38,4 +39,4 @@ syn = { version = "1", features = ["full"] }
3839
[features]
3940
deny-warnings = []
4041
# build clippy with internal lints enabled, off by default
41-
internal-lints = []
42+
internal-lints = ["clippy_utils/internal-lints"]

0 commit comments

Comments
 (0)