Skip to content

Commit 219d1ec

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 ec105ba commit 219d1ec

File tree

117 files changed

+2356
-1909
lines changed

Some content is hidden

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

117 files changed

+2356
-1909
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ clippy_config = { path = "clippy_config" }
2727
clippy_lints = { path = "clippy_lints" }
2828
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
2929
tempfile = { version = "3.3", optional = true }
30-
termize = "0.1"
3130
color-print = "0.3.4"
3231
anstream = "0.6.18"
3332

book/src/development/adding_lints.md

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

467467
impl ManualStrip {
468468
pub fn new(conf: &'static Conf) -> Self {
469-
Self { msrv: conf.msrv }
469+
Self { msrv: conf.msrv.into() }
470470
}
471471
}
472472
```

clippy_config/Cargo.toml

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

1111
[dependencies]
12-
clippy_utils = { path = "../clippy_utils" }
12+
arrayvec = { version = "0.7", default-features = false }
1313
itertools = "0.12"
14-
serde = { version = "1.0", features = ["derive"] }
15-
toml = "0.7.3"
14+
rustc-semver = "1.1"
15+
toml_edit = { version = "0.22.9", default-features = false, features = ["parse"] }
1616

1717
[dev-dependencies]
1818
walkdir = "2.3"

0 commit comments

Comments
 (0)