Question re inconsistent_struct_constructor
requirement · Issue #11846 · rust-lang/rust-clippy (original) (raw)
The lint's documentation states (emphasis added):
Checks for struct constructors where all fields are shorthand and the order of the field init shorthand in the constructor is inconsistent with the order in the struct definition.
What is the reason for requiring that all fields be shorthand? On the face of it, I could see value in additionally flagging fields with initializers.