Open
Description
This is a tracking issue for reserving space in match ergonomics in Rust 2024 for RFC 3627 and other proposals for the future of match ergonomics.
Rules
- Rule 1C: When the DBM (default binding mode) is not
move
(whether or not behind a reference), writingmut
,ref
, orref mut
on a binding is an error. - Rule 2C: Reference patterns can only match against references in the scrutinee when the DBM is
move
.
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement in nightly Rust 2024 w/migration lints.
- Stabilize in Rust 2024.
- Add documentation to the reference.
- See the instructions.
- Add documentation to the edition guide.
- Ensure ready for Rust 2024 stabilization.
Tracking for broader RFC 3627 work:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment