Add quickfix for removing `async` on interfaces (#9020)
commita9a4d3c9c3d58c6789d6b89e75d292862ebd21a3
authorWilfred Hughes <wilfred@fb.com>
Wed, 9 Mar 2022 22:10:27 +0000 (9 14:10 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Mar 2022 22:10:27 +0000 (9 14:10 -0800)
tree0de0fdd1f125ad30838a076172d4d99f7d8a7825
parentb36558d81e57114df381b6625d2623110d4e7ceb
Add quickfix for removing `async` on interfaces (#9020)

Summary:
Pull Request resolved: https://github.com/facebook/hhvm/pull/9020

Methods on interfaces do not use `async`, they only have an `Awaitable<...>` return type. Provide a quickfix for this syntax error.

Ignore unrelated pivv build failures that are also broken on trunk.

Reviewed By: shayne-fletcher

Differential Revision: D34664676

fbshipit-source-id: c0f84dbab7cd3a786e78ce4a9b09bca6c6fe9fcf
hphp/hack/src/parser/rust_parser_errors.rs
hphp/hack/test/quickfixes/bad_async.php [new file with mode: 0644]
hphp/hack/test/quickfixes/bad_async.php.exp [new file with mode: 0644]