8000 Document promotion of match scrutinees by traviscross · Pull Request #1963 · rust-lang/reference · GitHub
[go: up one dir, main page]

Skip to content

Conversation

traviscross
Copy link
Contributor
@traviscross traviscross commented Aug 15, 2025

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 15, 2025
@traviscross traviscross marked this pull request as draft August 15, 2025 08:42
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 15, 2025
Borrowing part of a match scrutinee from within the guard can trigger
constant promotion even if that part of the scrutinee is later moved
into a variable.  Let's add a note about this.
@traviscross traviscross force-pushed the TC/document-promotion-of-match-scrutinee-due-to-guard branch from a350402 to 52c6561 Compare August 15, 2025 09:02
@traviscross traviscross changed the title Document promotion of match scrutinees due to guards Document promotion of match scrutinees Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0