Parsing errors: remove unnecessary generics
commit4fb40c374efc6e0eaa08fea8e232e497c6acbc94
authorWilfred Hughes <wilfred@fb.com>
Tue, 22 Feb 2022 20:30:33 +0000 (22 12:30 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 22 Feb 2022 21:23:22 +0000 (22 13:23 -0800)
treec4c045d7cf543ab846baa204b0cb6e0c7a5de9db
parentaf3852b30e939d816d1dacfa46aa04ffd6415aa6
Parsing errors: remove unnecessary generics

Summary:
We always use the same token type when lexing, so use that type rather than generics with constraints.

We did the same cleanup to the lowerer in D33661604 (https://github.com/facebook/hhvm/commit/f57eabf3db5d737770df5103a53b36eae1a41d16).

Reviewed By: hgoldstein

Differential Revision: D34162880

fbshipit-source-id: 6b23c2c0c39ccd85cb6244356825890773e43c3b
hphp/hack/src/parser/rust_parser_errors.rs