Skip to content

Commit 2bf8a6b

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 077475f commit 2bf8a6b

File tree

105 files changed

+1826
-1481
lines changed

Some content is hidden

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

105 files changed

+1826
-1481
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ clippy_utils = { path = "clippy_utils" }
2929
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
3030
clippy_lints_internal = { path = "clippy_lints_internal", optional = true }
3131
tempfile = { version = "3.3", optional = true }
32-
termize = "0.1"
3332
color-print = "0.3.4"
3433
anstream = "0.6.18"
3534

book/src/development/adding_lints.md

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

471471
impl ManualStrip {
472472
pub fn new(conf: &'static Conf) -> Self {
473-
Self { msrv: conf.msrv }
473+
Self { msrv: conf.msrv.into() }
474474
}
475475
}
476476
```

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)