Skip to content

Comments

Fix async drop glue MIR bug#152888

Open
ValorZard wants to merge 1 commit intorust-lang:mainfrom
ValorZard:async-drop-fix
Open

Fix async drop glue MIR bug#152888
ValorZard wants to merge 1 commit intorust-lang:mainfrom
ValorZard:async-drop-fix

Conversation

@ValorZard
Copy link

@ValorZard ValorZard commented Feb 20, 2026

Attempted to fix #142560
Relevant Zulip (where I talk a lot more about what I did): #wg-async > is there a way I can help with Async Drop?

@rustbot
Copy link
Collaborator

rustbot commented Feb 20, 2026

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 20, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 20, 2026

r? @nnethercote

rustbot has assigned @nnethercote.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 68 candidates
  • Random selection from 15 candidates

@ValorZard
Copy link
Author

(Note, I accidentally added two copies of the same file I was using to test this issue. Please let me know where I'm supposed to put it)

@rust-log-analyzer

This comment has been minimized.

@nnethercote
Copy link
Contributor

(Note, I accidentally added two copies of the same file I was using to test this issue. Please let me know where I'm supposed to put it)

Either seems fine, but one of them is missing a trailing newline which is causing the tidy failure.

Beyond that I'm not a MIR expert, let's try: r? @oli-obk

@rustbot rustbot assigned oli-obk and unassigned nnethercote Feb 20, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 20, 2026

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@ValorZard
Copy link
Author

@oli-obk could you check again? I think I put the test in the right place (note that I should probably squash the commits)

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@oli-obk
Copy link
Contributor

oli-obk commented Feb 24, 2026

Yep, this lgtm now. Please squash the commits

@ValorZard
Copy link
Author

@oli-obk commits squashed, ready for merge

@oli-obk
Copy link
Contributor

oli-obk commented Feb 24, 2026

Thanks!

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 24, 2026

📌 Commit ce93a53 has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Feb 24, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 24, 2026
Fix async drop glue MIR bug

Attempted to fix rust-lang#142560
Relevant Zulip (where I talk a lot more about what I did): [#wg-async > is there a way I can help with Async Drop?](https://rust-lang.zulipchat.com/#narrow/channel/187312-wg-async/topic/is.20there.20a.20way.20I.20can.20help.20with.20Async.20Drop.3F/with/572847292)
rust-bors bot pushed a commit that referenced this pull request Feb 24, 2026
…uwer

Rollup of 15 pull requests

Successful merges:

 - #152176 (Neon fast path for str::contains)
 - #152657 (std: move `exit` out of PAL)
 - #152841 (Streamline `QueryVTableUnerased` into `GetQueryVTable`)
 - #152845 (Skip `tidy` in PR CI jobs not dedicated to running `tidy`)
 - #152897 (Add optional json logging)
 - #153009 (Remove `rustc_feedable_queries` and `define_feedable` macros.)
 - #151558 (Port diagnostic attributes)
 - #152492 (mGCA: Enforce WF element types for array valtrees)
 - #152888 (Fix async drop glue MIR bug)
 - #152988 (Port `#[register_tool]` to the new attribute system)
 - #153018 (`unused_must_use` lint improvements)
 - #153023 (Update books)
 - #153033 (Clarify how "ensure" queries check whether they can skip execution)
 - #153043 (fix error on missing value for -C flags)
 - #153045 (rustc-dev-guide subtree update)

Failed merges:

 - #153032 (Fix attribute parser and kind names.)
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.

ICE: broken MIR in AsyncDropGlue(

5 participants