-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Some let chains
clean-up
#144469
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
Some let chains
clean-up
#144469
Conversation
Some changes occurred to constck cc @fee1-dead Some changes occurred in match checking cc @Nadrieril Some changes occurred in compiler/rustc_codegen_ssa Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri Some changes occurred to the CTFE machinery HIR ty lowering was modified cc @fmease Some changes occurred in compiler/rustc_codegen_ssa/src/codegen_attrs.rs |
This comment has been minimized.
This comment has been minimized.
Thanks for your work! Could you split the change to a few commits to make it easier for review(and for merging)? |
Well, I've found some time, did you mean to split commits like this (I'll reword them later if needed)? Or like... different PRs? |
One PR is enough. But TBH I don't see some real benefit from doing these clean-ups, since they don't significantly reduce the number of lines of code. And it may change the logic of the original design. For example, developers may add some |
OK. From this point of view, instead of thinking "why do this", maybe it is better to answer "why not do this" :) |
@SparrowLii I'm pretty sure I've splitted this PR already into separate commits, this one is 3 commits instead of 1. If you meant something different by splitting PR please could you explain then |
Please make the commits' description more meaningful (like use let-chains in AST/HIR/MIR...) then we can merge it |
Should I also squash them? |
Without squashing. These commit descriptions are what we will display in the git log. |
Hope this ones are fine, it's pretty hard to come up with something very descriptive, so I just used your idea |
@bors r+ rollup=never |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 733dab5 (parent) -> d242a8b (this PR) Test differencesShow 23 test diffs23 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard d242a8bd5a73f633ba1ec5aacf19acf35a3c747d --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (d242a8b): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 1.6%, secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 466.742s -> 465.115s (-0.35%) |
Not sure if this kind of clean-up is welcoming because of size, but I decided to try out one
r? compiler