summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-23 07:06:30 +0100
committerGitHub <noreply@github.com>2023-11-23 07:06:30 +0100
commit82538b72c056d8f06f757f1f9bcd25be985f0a50 (patch)
tree94a64cccbe6bfae8648ea0cbdb3e9b51678e4a19 /tests/rustdoc-js-std/parser-errors.js
parent360bafad68cfea2682cf016070e533c45a00150f (diff)
parentf697a00f760c17547ef4282fd6af5b9f3c433dcf (diff)
downloadrust-82538b72c056d8f06f757f1f9bcd25be985f0a50.tar.gz
rust-82538b72c056d8f06f757f1f9bcd25be985f0a50.zip
Rollup merge of #118131 - lukas-code:multi-default, r=wesleywiser
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
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions