Files
rust/tests/ui
León Orell Valerian Liehr 4e5b1aa055 Rollup merge of #140746 - dianne:guard-pat-res, r=oli-obk
name resolution for guard patterns

This PR provides an initial implementation of name resolution for guard patterns [(RFC 3637)](https://github.com/rust-lang/rfcs/blob/master/text/3637-guard-patterns.md). This does not change the requirement that the bindings on either side of an or-pattern must be the same [(proposal here)](https://github.com/rust-lang/rfcs/blob/master/text/3637-guard-patterns.md#allowing-mismatching-bindings-when-possible); the code that handles that is separate from what this PR touches, so I'm saving it for a follow-up.

On a technical level, this separates "collecting the bindings in a pattern" (which was already done for or-patterns) from "introducing those bindings into scope". I believe the approach used here can be extended straightforwardly in the future to work with `if let` guard patterns, but I haven't tried it myself since we don't allow those yet.

Tracking issue for guard patterns: #129967

cc ``@Nadrieril``
2025-05-18 18:44:11 +02:00
..
2025-05-12 16:35:09 +02:00
2025-05-03 17:22:52 +02:00
2025-05-06 23:28:28 +05:30
2025-03-03 08:52:07 +01:00
2025-05-12 16:35:09 +02:00
2025-05-07 16:29:59 +00:00
2024-12-12 23:36:27 +00:00
2025-04-29 03:07:24 +00:00
2025-03-11 20:26:10 -07:00
2025-05-09 12:09:15 +02:00
2025-05-12 16:35:09 +02:00
2025-02-24 18:48:40 +00:00
2025-05-07 16:29:59 +00:00
2025-04-03 21:41:58 +00:00
2024-12-12 23:36:27 +00:00
2025-04-25 20:50:57 +09:00
2025-05-02 18:45:28 +00:00
2025-05-14 13:32:59 +01:00
2025-05-03 17:22:52 +02:00
2025-04-21 16:16:38 +09:00
2025-05-12 16:35:09 +02:00
2025-04-29 18:19:26 +02:00
2025-03-30 01:32:21 +03:00
2025-05-03 17:22:52 +02:00
2025-04-04 09:44:19 +02:00
2025-03-11 20:26:10 -07:00
2025-01-29 15:45:13 +00:00
2025-03-27 14:11:11 +01:00
2025-04-25 20:50:57 +09:00
2025-05-09 15:05:11 +00:00
2025-05-05 21:09:31 +02:00
2025-02-27 10:26:33 +00:00
2025-04-03 21:41:58 +00:00
2025-02-04 21:42:43 +05:30
2025-04-03 21:41:58 +00:00
2025-04-04 16:32:18 +02:00
2025-05-09 22:21:35 +05:00