Skip to content

Elaborate all box dereferences in ElaborateBoxDerefs#100034

Merged
bors merged 4 commits into
rust-lang:masterfrom
tmiasko:elaborate-box-derefs
Aug 26, 2022
Merged

Elaborate all box dereferences in ElaborateBoxDerefs#100034
bors merged 4 commits into
rust-lang:masterfrom
tmiasko:elaborate-box-derefs

Conversation

@tmiasko

@tmiasko tmiasko commented Aug 1, 2022

Copy link
Copy Markdown
Contributor

so that it is the only pass responsible for elaboration, instead of
splitting this responsibility between the StateTransform and
ElaborateBoxDerefs.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 1, 2022
@rustbot

rustbot commented Aug 1, 2022

Copy link
Copy Markdown
Collaborator

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2022
@nagisa

nagisa commented Aug 7, 2022

Copy link
Copy Markdown
Member

r? @oli-obk to go with the other PR.

@rust-highfive rust-highfive assigned oli-obk and unassigned nagisa Aug 7, 2022
@bors

bors commented Aug 9, 2022

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #100089) made this pull request unmergeable. Please resolve the merge conflicts.

@tmiasko tmiasko force-pushed the elaborate-box-derefs branch from 9612eb9 to 14d79f2 Compare August 24, 2022 20:46
A resume place is evaluated and assigned to only after a yield
terminator resumes. Ensure that locals used when evaluating the
resume place are live across the yield.
@tmiasko tmiasko force-pushed the elaborate-box-derefs branch from 14d79f2 to 31fae68 Compare August 25, 2022 05:12
Comment on lines 140 to 144

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's now 3 duplications of this logic, maybe give it a helper function?

@oli-obk oli-obk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice work!

r=me with nit addressed

so that it is the only pass responsible for elaboration, instead of
splitting this responsibility between the `StateTransform` and
`ElaborateBoxDerefs`.
@tmiasko tmiasko force-pushed the elaborate-box-derefs branch from 31fae68 to 4394ea8 Compare August 25, 2022 08:46
@oli-obk

oli-obk commented Aug 25, 2022

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 25, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 4394ea8 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 25, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Aug 25, 2022
…i-obk

 Elaborate all box dereferences in `ElaborateBoxDerefs`

so that it is the only pass responsible for elaboration, instead of
splitting this responsibility between the `StateTransform` and
`ElaborateBoxDerefs`.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Aug 25, 2022
…i-obk

 Elaborate all box dereferences in `ElaborateBoxDerefs`

so that it is the only pass responsible for elaboration, instead of
splitting this responsibility between the `StateTransform` and
`ElaborateBoxDerefs`.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 26, 2022
Rollup of 8 pull requests

Successful merges:

 - rust-lang#99064 (distinguish the method and associated function diagnostic information)
 - rust-lang#99920 (Custom allocator support in `rustc_serialize`)
 - rust-lang#100034 ( Elaborate all box dereferences in `ElaborateBoxDerefs`)
 - rust-lang#100076 (make slice::{split_at,split_at_unchecked} const functions)
 - rust-lang#100604 (Remove unstable Result::into_ok_or_err)
 - rust-lang#100933 (Reduce code size of `assert_matches_failed`)
 - rust-lang#100978 (Handle `Err` in `ast::LitKind::to_token_lit`.)
 - rust-lang#101010 (rustdoc: remove unused CSS for `.multi-column`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 55562c7 into rust-lang:master Aug 26, 2022
@rustbot rustbot added this to the 1.65.0 milestone Aug 26, 2022
@tmiasko tmiasko deleted the elaborate-box-derefs branch August 26, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants