This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
tests/ui-toml/conf_deprecated_key Expand file tree Collapse file tree 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
22cyclomatic-complexity-threshold = 2
3+ blacklisted-names = [ " .." , " wibble" ]
34
45# that one is white-listed
56[third-party ]
Original file line number Diff line number Diff line change 11warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `cyclomatic-complexity-threshold`. Please use `cognitive-complexity-threshold` instead
22
3+ warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `blacklisted-names`. Please use `disallowed-names` instead
4+
35error: the function has a cognitive complexity of (3/2)
46 --> $DIR/conf_deprecated_key.rs:4:4
57 |
@@ -9,5 +11,5 @@ LL | fn cognitive_complexity() {
911 = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
1012 = help: you could split it up into multiple smaller functions
1113
12- error: aborting due to previous error; 1 warning emitted
14+ error: aborting due to previous error; 2 warnings emitted
1315
You can’t perform that action at this time.
0 commit comments