Files
rust/tests/ui/pattern
Jonathan Brouwer b17df9b99a Rollup merge of #149952 - Delta17920:fix/149777-range-destructuring, r=fmease
Suggest struct pattern when destructuring Range with .. syntax

implemented a new diagnostic in rustc_resolve to detect invalid range destructuring attempts (e.g., let start..end = range). The fix identifies when resolution fails for identifiers acting as range bounds specifically handling cases where bounds are parsed as expressions and suggests the correct struct pattern syntax (std::ops::Range { start, end }). This replaces confusing "cannot find value" errors with actionable help, verified by a new UI test covering various identifier names.

Fixes rust-lang/rust#149777
2025-12-18 18:37:16 +01:00
..
2025-05-03 17:22:52 +02:00
2025-11-27 14:13:58 -05:00
2025-12-02 18:25:13 +00:00
2025-08-05 19:34:46 +05:00
2025-08-05 19:34:46 +05:00
2025-08-09 16:27:20 +05:00
2025-11-27 14:13:58 -05:00
2024-02-09 15:43:08 -03:00
2024-02-09 15:43:08 -03:00
2024-04-29 14:53:38 +02:00
2024-03-27 11:20:28 -04:00
2025-11-27 11:19:00 -05:00
2025-08-09 16:27:20 +05:00
2024-01-13 12:46:58 -05:00
2024-11-21 18:40:36 +08:00
2024-11-21 18:40:36 +08:00
2025-06-11 15:30:15 +01:00
2025-08-09 16:27:20 +05:00
2025-08-09 16:27:20 +05:00
2025-08-09 16:27:20 +05:00
2025-08-05 19:34:46 +05:00
2025-08-05 19:34:46 +05:00
2025-08-09 16:27:20 +05:00