Skip to content

Do not ICE when encountering yield inside async block - #69175

Merged
bors merged 1 commit into
rust-lang:masterfrom
estebank:shall-not-ice
Feb 18, 2020
Merged

Do not ICE when encountering yield inside async block#69175
bors merged 1 commit into
rust-lang:masterfrom
estebank:shall-not-ice

Conversation

@estebank

Copy link
Copy Markdown
Contributor

Fix#67158.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @petrochenkov

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 15, 2020
@estebankestebank added beta-nominated Nominated for backporting to the compiler in the beta channel. stable-nominated Nominated for backporting to the compiler in the stable channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 15, 2020
@rust-highfive

This comment has been minimized.

@petrochenkov

Copy link
Copy Markdown
Contributor

r=me with tidy fixed

@petrochenkovpetrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 15, 2020
Comment threadsrc/test/ui/issues/async-generator.rs Outdated
@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Feb 17, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit e5b2c66 has been approved by petrochenkov

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 17, 2020
Centril added a commit to Centril/rust that referenced this pull request Feb 17, 2020
Do not ICE when encountering `yield` inside `async` block
Fixrust-lang#67158.
@CentrilCentril mentioned this pull request Feb 17, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 17, 2020
Do not ICE when encountering `yield` inside `async` block
Fixrust-lang#67158.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Feb 18, 2020
Do not ICE when encountering `yield` inside `async` block
Fixrust-lang#67158.
@JohnTitorJohnTitor mentioned this pull request Feb 18, 2020
bors added a commit that referenced this pull request Feb 18, 2020
Rollup of 8 pull requests
Successful merges:
- #67272 (recursion_limit parsing handles overflows)
- #68597 (Simplify `Skip::nth` and `Skip::last` implementations)
- #68767 (macOS: avoid calling pthread_self() twice)
- #69175 (Do not ICE when encountering `yield` inside `async` block)
- #69223 (Ignore GDB versions with broken str printing.)
- #69244 (configure: set LLVM flags with a value)
- #69249 (Stabilize {f32, f64}::{LOG2_10, LOG10_2})
- #69252 (Clean out unused directories for extra disk space)
Failed merges:
r? @ghost
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Feb 18, 2020
Do not ICE when encountering `yield` inside `async` block
Fixrust-lang#67158.
@JohnTitorJohnTitor mentioned this pull request Feb 18, 2020
bors added a commit that referenced this pull request Feb 18, 2020
Rollup of 8 pull requests
Successful merges:
- #67272 (recursion_limit parsing handles overflows)
- #68597 (Simplify `Skip::nth` and `Skip::last` implementations)
- #68767 (macOS: avoid calling pthread_self() twice)
- #69175 (Do not ICE when encountering `yield` inside `async` block)
- #69223 (Ignore GDB versions with broken str printing.)
- #69244 (configure: set LLVM flags with a value)
- #69249 (Stabilize {f32, f64}::{LOG2_10, LOG10_2})
- #69252 (Clean out unused directories for extra disk space)
Failed merges:
r? @ghost
@bors
bors merged commit e5b2c66 into rust-lang:masterFeb 18, 2020
@pnkfelix

pnkfelix commented Feb 20, 2020

Copy link
Copy Markdown
Contributor

discussed in T-compiler meeting. accepted for beta backport.

@pnkfelixpnkfelix added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Feb 20, 2020
@pnkfelix

Copy link
Copy Markdown
Contributor

discussed at T-compiler meeting. accepted for stable backport

@pnkfelixpnkfelix added the stable-accepted Accepted for backporting to the compiler in the stable channel. label Feb 20, 2020
@Mark-SimulacrumMark-Simulacrum removed the stable-nominated Nominated for backporting to the compiler in the stable channel. label Feb 21, 2020
This was referenced Feb 21, 2020
@Mark-SimulacrumMark-Simulacrum removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Feb 21, 2020
bors added a commit that referenced this pull request Feb 22, 2020
[stable] 1.41.1 release
This backports the following PRs:
* Revert "Remove `checked_add` in `Layout::repeat`" #69241
* Do not ICE when encountering `yield` inside `async` block #69175
* Correct ICE caused by macros generating invalid spans. #68611
* Changelog: Demonstrate final build-override syntax #68603
* Resolve long compile times when evaluating always valid constants #67667
* Fix MIR typeck soundness holes #69145
This also includes a commit which rustfmt's files which the latter commits touched (and perhaps a bit more) to make rebasing the PRs go more smoothly (thankfully, this should be the last time we need to do so).
I have removed stable-nominated tags from PRs successfully backported.
bors added a commit that referenced this pull request Feb 24, 2020
[stable] 1.41.1 release
This backports the following PRs:
* Revert "Remove `checked_add` in `Layout::repeat`" #69241
* Do not ICE when encountering `yield` inside `async` block #69175
* Correct ICE caused by macros generating invalid spans. #68611
* Changelog: Demonstrate final build-override syntax #68603
* Resolve long compile times when evaluating always valid constants #67667
* Fix MIR typeck soundness holes #69145
This also includes a commit which rustfmt's files which the latter commits touched (and perhaps a bit more) to make rebasing the PRs go more smoothly (thankfully, this should be the last time we need to do so).
I have removed stable-nominated tags from PRs successfully backported.
bors added a commit that referenced this pull request Feb 24, 2020
[beta] beta backports
This backports the following PRs:
* Revert "Remove `checked_add` in `Layout::repeat`" #69241
* Do not ICE when encountering `yield` inside `async` block #69175
* Fix MIR typeck soundness holes #69145
* Fix extra subslice lowering #69128
* Correct ICE caused by macros generating invalid spans. #68611
* Make conflicting_repr_hints a deny-by-default c-future-compat lint #68586
@estebank
estebank deleted the shall-not-ice branch November 9, 2023 05:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.stable-acceptedAccepted for backporting to the compiler in the stable channel.T-compilerRelevant 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 on beta and nightly as result of use of yield in combination with macro call in async block

7 participants

@estebank@rust-highfive@petrochenkov@bors@pnkfelix@Centril@Mark-Simulacrum