-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Unable to parse unsafe async fn
#3025
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
Comments
If I recall, this is expected, no? The correct syntax is |
|
bors bot
added a commit
that referenced
this issue
Feb 7, 2020
3047: Update async unsafe fn ordering in parser r=matklad a=kiljacken As of rust-lang/rust#61319 the correct order for functions that are both unsafe and async is: `async unsafe fn` and not `unsafe async fn`. This commit updates the parser tests to reflect this, and corrects parsing behavior to accept the correct ordering. Fixes #3025 Co-authored-by: Emil Lauridsen <mine809@gmail.com>
Thanks for the quick fix! |
cjhopman
pushed a commit
to cjhopman/rust-analyzer
that referenced
this issue
Apr 10, 2020
As of rust-lang/rust#61319 the correct order for functions that are both unsafe and async is: `async unsafe fn` and not `unsafe async fn`. This commit updates the parser tests to reflect this, and corrects parsing behavior to accept the correct ordering. Fixes rust-lang#3025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running into a reproducible bug with ra that says
Syntax Error: expected existential, fn, trait or impl
right in between theasync
andunsafe
. Running the check manually viacargo
seems to report no errors.should reproduce it.
Reference sha
d92a15c1637860a669970142abe37d1daf5f2c73
The text was updated successfully, but these errors were encountered: