Change return types of emit_* functions in emit_expression to Result
commita9ad4ee18659398986384ccb0f0a3ff3ecd7feb5
authorMillie Chen <milliechen@fb.com>
Tue, 7 Jan 2020 19:12:59 +0000 (7 11:12 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 7 Jan 2020 19:15:33 +0000 (7 11:15 -0800)
tree7997b6d9512b70c7c15e3aa5eebad89f187a76d4
parentc49ccdef949bdebc9ee3e4efd4964246d6c8ae6b
Change return types of emit_* functions in emit_expression to Result

Summary: Change return types of `emit_*` functions in `emit_expression` from `InstrSeq` to `Result<InstrSeq, emit_fatal::Error>` to capture errors raised in `emit_fatal`

Reviewed By: losvald

Differential Revision: D19221108

fbshipit-source-id: 600bcae2655a6ec86a61966043876aab6854fa07
hphp/hack/src/hhbc/emit_expression.rs
hphp/hack/src/hhbc/instruction_sequence.rs