Skip to content

Commit 06ad2d3

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 `clippy_utils` dependancy from `clippy_config` * Multi-column support for long suggestion lists
1 parent d4dea4b commit 06ad2d3

File tree

107 files changed

+1807
-1412
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

+1807
-1412
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ clippy_utils = { path = "clippy_utils" }
2727
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 }
30-
tempfile = { version = "3.20", optional = true }
31-
termize = "0.2"
30+
tempfile = { version = "3.3", optional = true }
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)