File tree 2 files changed +5
-2
lines changed
tests/ui-toml/conf_deprecated_key
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- # that one is a warning
1
+ # Expect errors from these deprecated configs
2
2
cyclomatic-complexity-threshold = 2
3
+ blacklisted-names = [ " .." , " wibble" ]
3
4
4
5
# that one is white-listed
5
6
[third-party ]
Original file line number Diff line number Diff line change 1
1
warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `cyclomatic-complexity-threshold`. Please use `cognitive-complexity-threshold` instead
2
2
3
+ warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `blacklisted-names`. Please use `disallowed-names` instead
4
+
3
5
error: the function has a cognitive complexity of (3/2)
4
6
--> $DIR/conf_deprecated_key.rs:4:4
5
7
|
@@ -9,5 +11,5 @@ LL | fn cognitive_complexity() {
9
11
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
10
12
= help: you could split it up into multiple smaller functions
11
13
12
- error: aborting due to previous error; 1 warning emitted
14
+ error: aborting due to previous error; 2 warnings emitted
13
15
You can’t perform that action at this time.
0 commit comments