-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Internal compiler error in nightly when reversing a vector inside a async fn #61187
Labels
A-async-await
Area: Async & Await
A-borrow-checker
Area: The borrow checker
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
A-async-await
Area: Async & Await
A-borrow-checker
Area: The borrow checker
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
May 25, 2019
Caused by rust/src/librustc_mir/borrow_check/mutability_errors.rs Lines 46 to 47 in f492693
Log output:
|
Centril
added a commit
to Centril/rust
that referenced
this issue
May 29, 2019
Do not ICE on missing access place description during mutability error reporting Fix rust-lang#61187.
Centril
added a commit
to Centril/rust
that referenced
this issue
May 29, 2019
Do not ICE on missing access place description during mutability error reporting Fix rust-lang#61187.
Centril
added a commit
to Centril/rust
that referenced
this issue
May 29, 2019
Do not ICE on missing access place description during mutability error reporting Fix rust-lang#61187.
Centril
added a commit
to Centril/rust
that referenced
this issue
May 29, 2019
Do not ICE on missing access place description during mutability error reporting Fix rust-lang#61187.
Centril
added a commit
to Centril/rust
that referenced
this issue
May 29, 2019
Do not ICE on missing access place description during mutability error reporting Fix rust-lang#61187.
Another minimal example of the issue. #![feature(async_await)]
struct Session;
impl Session {
fn do_thing(&mut self) {
unimplemented!()
}
}
async fn frob(session: Session) {
session.do_thing()
}
fn main() {}
|
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 4, 2019
…-sane-way, r=eddyb Re-implement async fn drop order lowering This PR re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by @eddyb to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern. Only b7aa4ed and 71fb8fa should be reviewed, any other commits are from rust-lang#61276 (though 447e336 might end up staying in this PR). As a nice side effect, it also fixes rust-lang#61187 (cc rust-lang#61192). r? @eddyb cc @cramertj
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 4, 2019
…-sane-way, r=eddyb Re-implement async fn drop order lowering This PR re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by @eddyb to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern. Only b7aa4ed and 71fb8fa should be reviewed, any other commits are from rust-lang#61276 (though 447e336 might end up staying in this PR). As a nice side effect, it also fixes rust-lang#61187 (cc rust-lang#61192). r? @eddyb cc @cramertj
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 4, 2019
…-sane-way, r=eddyb Re-implement async fn drop order lowering This PR re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by @eddyb to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern. Only b7aa4ed and 71fb8fa should be reviewed, any other commits are from rust-lang#61276 (though 447e336 might end up staying in this PR). As a nice side effect, it also fixes rust-lang#61187 (cc rust-lang#61192). r? @eddyb cc @cramertj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-async-await
Area: Async & Await
A-borrow-checker
Area: The borrow checker
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Got an internal compiler error when reversing a vector inside a async fn
I tried this code:
(Playground)
This happened:
Meta
The text was updated successfully, but these errors were encountered: