Skip to content

Commit 31a3467

Browse files
committed
Rewrite of the config parsing code
* More precise spans in diagnostics * Allow multiple diagnostics for each config value * Ability to capture spans in the parsed config * Easier support of `..` in lists * Remove `termize` dependency. Use values from rustc instead.
1 parent d4dea4b commit 31a3467

File tree

107 files changed

+1806
-1411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1806
-1411
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ declare_clippy_lint = { path = "declare_clippy_lint" }
2828
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
2929
clippy_lints_internal = { path = "clippy_lints_internal", optional = true }
3030
tempfile = { version = "3.20", optional = true }
31-
termize = "0.2"
3231
color-print = "0.3.4"
3332
anstream = "0.6.18"
3433

book/src/development/adding_lints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ pub struct ManualStrip {
473473

474474
impl ManualStrip {
475475
pub fn new(conf: &'static Conf) -> Self {
476-
Self { msrv: conf.msrv }
476+
Self { msrv: conf.msrv.into() }
477477
}
478478
}
479479
```

clippy_config/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ publish = false
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10+
arrayvec = { version = "0.7", default-features = false }
1011
clippy_utils = { path = "../clippy_utils" }
1112
itertools = "0.12"
12-
serde = { version = "1.0", features = ["derive"] }
13-
toml = "0.7.3"
13+
rustc-semver = "1.1"
14+
toml_edit = { version = "0.22.9", default-features = false, features = ["parse"] }
1415

1516
[dev-dependencies]
1617
walkdir = "2.3"

0 commit comments

Comments
 (0)