Avoid Ocaml crash during ast_to_aast in test
commit207b5526c93b9aad10991b7650248ffa97820393
authorSteve Cao <shiqicao@fb.com>
Tue, 24 Sep 2019 19:30:44 +0000 (24 12:30 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 24 Sep 2019 19:35:03 +0000 (24 12:35 -0700)
treec70f192dc3ea4f0301c7f140f972a348d0e8ff50
parent1585e6b76c996b1b695c9eeb0856bf8386d3e420
Avoid Ocaml crash during ast_to_aast in test

Summary: Use `Error.do_` to avoid ocaml crash, also fixed a bug.

Reviewed By: dabek

Differential Revision: D17505165

fbshipit-source-id: d1fc07cedf41a7b20372d944afffc1fb0f8b8b4c
hphp/hack/src/parser/lowerer.rs
hphp/hack/src/parser/lowerer_modifier.rs
hphp/hack/test/rust/rust_ocaml_test.ml