-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! new lint:
source_item_ordering
- Loading branch information
Showing
4 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
tests/ui-toml/arbitrary_source_item_ordering/bad_conf_3/clippy.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source-item-ordering = ["enum", "impl", "module", "struct", "trait", "struct"] |
2 changes: 2 additions & 0 deletions
2
tests/ui-toml/arbitrary_source_item_ordering/default_exp/clippy.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
trait-assoc-item-kinds-order = ["const", "type", "fn"] | ||
source-item-ordering = ["enum", "impl", "module", "struct", "trait"] |
8 changes: 8 additions & 0 deletions
8
tests/ui-toml/arbitrary_source_item_ordering/ordering_good.bad_conf_3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: error reading Clippy's configuration file: The category "Struct" was enabled more than once in the source ordering configuration. | ||
--> $DIR/tests/ui-toml/arbitrary_source_item_ordering/bad_conf_3/clippy.toml:1:24 | ||
| | ||
LL | source-item-ordering = ["enum", "impl", "module", "struct", "trait", "struct"] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters