const_prop_lint: Consider array length constant even if array is not#100160
const_prop_lint: Consider array length constant even if array is not#100160TheWastl wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
(rust-highfive has picked a reviewer for you, use r? to override) |
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
r? oli-obk cc @JakobDegen |
|
r? @oli-obk |
| return None; | ||
| } | ||
|
|
||
| Rvalue::Len(len_place) => { |
There was a problem hiding this comment.
I think we should make the same change in the const_prop pass as well:
but that doesn't have to be in this PR 🙂
There was a problem hiding this comment.
afaicr this is not necessary, because there are optimizations taking care of this before const prop runs
|
@bors r+ rollup |
…nt, r=oli-obk const_prop_lint: Consider array length constant even if array is not Fixes rust-lang#98444.
|
Failed in rollup: #101016 (comment) |
e4a4246 to
d5c9e76
Compare
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Ping from triage: |
|
☔ The latest upstream changes (presumably #102091) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes #98444.