-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc_mir_transform
cleanups 3
#130175
Merged
bors
merged 8 commits into
rust-lang:master
from
nnethercote:rustc_mir_transform-cleanups-3
Sep 10, 2024
Merged
rustc_mir_transform
cleanups 3
#130175
bors
merged 8 commits into
rust-lang:master
from
nnethercote:rustc_mir_transform-cleanups-3
Sep 10, 2024
Commits on Sep 9, 2024
-
By reflowing comment lines that are too long, and a few that are very short. Plus some other very minor formatting tweaks.
Configuration menu - View commit details
-
Copy full SHA for 8235af0 - Browse repository at this point
Copy the full SHA 8235af0View commit details -
Inline and remove some functions.
These are all functions with a single callsite, where having a separate function does nothing to help with readability. These changes make the code a little shorter and easier to read.
Configuration menu - View commit details
-
Copy full SHA for 48064d4 - Browse repository at this point
Copy the full SHA 48064d4View commit details -
The "as" is equivalent to "because", but I originally read it more like "when", which was confusing.
Configuration menu - View commit details
-
Copy full SHA for baa16d2 - Browse repository at this point
Copy the full SHA baa16d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e26692d - Browse repository at this point
Copy the full SHA e26692dView commit details -
Add a useful comment about
PromoteTemps
.This was non-obvious to me.
Configuration menu - View commit details
-
Copy full SHA for 51e1c39 - Browse repository at this point
Copy the full SHA 51e1c39View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1c55a3 - Browse repository at this point
Copy the full SHA d1c55a3View commit details -
Remove references from some structs.
In all cases the struct can own the relevant thing instead of having a reference to it. This makes the code simpler, and in some cases removes a struct lifetime.
Configuration menu - View commit details
-
Copy full SHA for 7023402 - Browse repository at this point
Copy the full SHA 7023402View commit details -
Make
check_live_drops
into aMirLint
.It's a thin wrapper around `check_live_drops`, but it's enough to fix the FIXME comment.
Configuration menu - View commit details
-
Copy full SHA for 8949b44 - Browse repository at this point
Copy the full SHA 8949b44View 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.