Files
rust/tests/ui/pattern
Jonathan Brouwer 07d9787382 Rollup merge of #161180 - GTimothy:detect_missing_binding_available-suggestion, r=mu001999
Detect missing binding available: add a MaybeIncorrect suggestion

When suggesting that a missing binding is available in a pattern but not used, if it is behind a `..` suggest a MaybeIncorrect fix replacing `..` with `{binding}, ..`

This suggestion could be a `tool_only_suggestion`, or a `span_suggestion_hidden`. Other types of suggestions seem a bit too verbose for this simple case.
The `tool_only_suggestion` (first commit) does not add any suggestion in stderr, the `span_suggestion_hidden` (second commit) shows a minimal help line.

This work was extracted from PR https://github.com/rust-lang/rust/pull/156239.
2026-08-25 18:00:07 +02:00
..
2026-06-18 05:28:05 +02:00
2026-07-17 23:47:37 +02:00
2026-07-23 19:57:43 +02:00