Skip to content

Conversation

michaelwoerister
Copy link
Member

Fixes #11600

bors added a commit that referenced this pull request Jan 27, 2014
@bors bors closed this Jan 28, 2014
@bors bors merged commit 0a03bc0 into rust-lang:master Jan 28, 2014
@michaelwoerister michaelwoerister deleted the cu_name branch February 7, 2022 09:28
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 9, 2025
…uirement configurable (rust-lang#13737)

Fixes rust-lang#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](rust-lang/rust-clippy#13737 (comment))).
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suspect bug in emitting debug information
3 participants