-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #64989 - sinkuu:fix_ice_64964, r=davidtwco
- Loading branch information
Showing
3 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// check-pass | ||
// compile-flags: -Z query-dep-graph | ||
// edition:2018 | ||
|
||
// Regression test for ICE related to `await`ing in a method + incr. comp. (#64964) | ||
|
||
struct Body; | ||
impl Body { | ||
async fn next(&mut self) { | ||
async {}.await | ||
} | ||
} | ||
|
||
// Another reproduction: `await`ing with a variable from for-loop. | ||
|
||
async fn bar() { | ||
for x in 0..10 { | ||
async { Some(x) }.await.unwrap(); | ||
} | ||
} | ||
|
||
fn main() {} |