-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add match arm scopes and other scope fixes #60174
Merged
Merged
Commits on May 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 615c23f - Browse repository at this point
Copy the full SHA 615c23fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bfb045 - Browse repository at this point
Copy the full SHA 4bfb045View commit details -
Configuration menu - View commit details
-
Copy full SHA for e784595 - Browse repository at this point
Copy the full SHA e784595View commit details -
Handle the visibility/lint scope distinction better
* Don't generate an extra lint scope for each `let` statement. * Place match guards inside the visiblility scope of the bindings for their arm.
Configuration menu - View commit details
-
Copy full SHA for af6a9a2 - Browse repository at this point
Copy the full SHA af6a9a2View commit details -
Give match arms a drop/region scope
Also give arms the correct lint scope in MIR.
Configuration menu - View commit details
-
Copy full SHA for f506aea - Browse repository at this point
Copy the full SHA f506aeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f50724 - Browse repository at this point
Copy the full SHA 0f50724View commit details -
Emit fake borrows for all tests
I was incorrectly under the impression that this would only lead to duplicates. See `mir-opt/match-arm-scope.rs` (upcomming commit) for a case where we didn't emit a fake borrow of `items.1`.
Configuration menu - View commit details
-
Copy full SHA for b5643f1 - Browse repository at this point
Copy the full SHA b5643f1View commit details -
Schedule storage-dead of temporaries sooner
This ensures that we will correctly generate a storage-dead if the initializing expression diverges.
Configuration menu - View commit details
-
Copy full SHA for abab9ef - Browse repository at this point
Copy the full SHA abab9efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2420d82 - Browse repository at this point
Copy the full SHA 2420d82View commit details -
Co-Authored-By: matthewjasper <mjjasper1@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 015a451 - Browse repository at this point
Copy the full SHA 015a451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0835048 - Browse repository at this point
Copy the full SHA 0835048View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.