-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle
ReVar
in note_and_explain_region
.
PR #124918 made this path abort. The added test, from fuzzing, identified that it is reachable.
- Loading branch information
1 parent
9cdfe28
commit 5f4424b
Showing
3 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//@ edition:2018 | ||
|
||
#![feature(c_variadic)] | ||
|
||
async unsafe extern "C" fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {} | ||
//~^ ERROR hidden type for `impl Future<Output = ()>` captures lifetime that does not appear in bounds | ||
|
||
fn main() {} |
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,13 @@ | ||
error[E0700]: hidden type for `impl Future<Output = ()>` captures lifetime that does not appear in bounds | ||
--> $DIR/note-and-explain-ReVar-124973.rs:5:73 | ||
| | ||
LL | async unsafe extern "C" fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {} | ||
| ----------------------------------------------------------------------- ^^ | ||
| | | ||
| opaque type defined here | ||
| | ||
= note: hidden type `{async fn body of multiple_named_lifetimes<'a, 'b>()}` captures lifetime `'_` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0700`. |