diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2024-12-27 22:05:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-27 22:05:03 +0000 |
| commit | a8968e5dd8ce548d56af8fba6d69862949652e6b (patch) | |
| tree | 9779ddab37f405c9d602fac895eaa7e995001a2a /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 363e61dcbf0a638747d2c096b7b1f105e2e1a459 (diff) | |
| parent | 8a38bcc39083a2c73c2b7f27870d6bef85756f52 (diff) | |
| download | rust-a8968e5dd8ce548d56af8fba6d69862949652e6b.tar.gz rust-a8968e5dd8ce548d56af8fba6d69862949652e6b.zip | |
Make `inconsistent_struct_constructor` "all fields are shorthand" requirement configurable (#13737)
Fixes #11846. This PR has three commits: - The first commit adds an `initializer-suggestions` configuration to control suggestion applicability when initializers are present. The following are the options: - "none": do not suggest - "maybe-incorrect": suggest, but do not apply suggestions with `--fix` - "machine-applicable": suggest and apply suggestions with `--fix` - The second commit fixes suggestions to handle field attributes (problem [noticed by @samueltardieu](https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1859261645)). - The third commit adds `initializer-suggestions = "machine-applicable"` to Clippy's `clippy.toml` and applies the suggestions. (Nothing seems to break.) --- changelog: make `inconsistent_struct_constructor` "all fields are shorthand" requirement configurable
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
