mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
82538b72c0
improve tool-only help for multiple `#[default]` variants When defining an enum with multiple `#[default]` variants, we emit a tool-only suggestion for every `#[default]`ed variant to remove all other `#[default]`s. This PR improves the suggestion to correctly handle the cases where one variant has multiple `#[default]`s and where different `#[default]`s have the same span due to macro expansions. fixes https://github.com/rust-lang/rust/issues/118119 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |