about summary refs log tree commit diff
path: root/clippy_lints/src/inconsistent_struct_constructor.rs
diff options
context:
space:
mode:
authorWilliam Chargin <wchargin@gmail.com>2021-05-07 20:24:07 -0700
committerWilliam Chargin <wchargin@gmail.com>2021-05-07 20:24:07 -0700
commit1b2ca3067e042b3c490d7f9b38258205bc2096f0 (patch)
tree70142169eb9d4c3f14b6e9a021fb8cd339d33681 /clippy_lints/src/inconsistent_struct_constructor.rs
parent65951c969ff843bc3a45c470d5f366498172ebe1 (diff)
downloadrust-1b2ca3067e042b3c490d7f9b38258205bc2096f0.tar.gz
rust-1b2ca3067e042b3c490d7f9b38258205bc2096f0.zip
Move `inconsistent_struct_constructor` to pedantic
The whole point of named fields is that we don't have to worry about
order. The names, not the position, communicate the information, so
worrying about consistency for consistency's sake is pedantic to a *T*.

Fixes #7192.

wchargin-branch: inconsistent-struct-constructor-pedantic
wchargin-source: 4fe078a21c77ceb625e58fa3b90b613fc4fa6a76
Diffstat (limited to 'clippy_lints/src/inconsistent_struct_constructor.rs')
-rw-r--r--clippy_lints/src/inconsistent_struct_constructor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/inconsistent_struct_constructor.rs b/clippy_lints/src/inconsistent_struct_constructor.rs
index d138c3a8acf..3b635071f28 100644
--- a/clippy_lints/src/inconsistent_struct_constructor.rs
+++ b/clippy_lints/src/inconsistent_struct_constructor.rs
@@ -58,7 +58,7 @@ declare_clippy_lint! {
     /// Foo { x, y };
     /// ```
     pub INCONSISTENT_STRUCT_CONSTRUCTOR,
-    style,
+    pedantic,
     "the order of the field init shorthand is inconsistent with the order in the struct definition"
 }