Remove hackc support for (unset) cast
commit0f2acd219a82a72254f20a3b7f349097cbd8b23a
authorThomas Jiang <thomasjiang@fb.com>
Tue, 5 Nov 2019 21:25:19 +0000 (5 13:25 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 5 Nov 2019 21:31:32 +0000 (5 13:31 -0800)
treea3c4056fd7f5acca8534f2b394741b1f330de0cf
parent83c8f520a635896b9bee41d737eae214fc01a3a0
Remove hackc support for (unset) cast

Summary:
Apparently `(unset)` casts to void.

Hack typechecker doesn't support `unset` as a castable typehint.

Remove hackc support for it as well.

Reviewed By: kmeht

Differential Revision: D18256743

fbshipit-source-id: 08d7afadb9b23804a9f785b33f6b115fe04a4549
12 files changed:
hphp/hack/src/errors/errors.ml
hphp/hack/src/errors/errors.mli
hphp/hack/src/hhbc/emit_expression.ml
hphp/hack/src/naming/naming.ml
hphp/hack/src/naming/naming_special_names.ml
hphp/hack/src/naming/naming_special_names.rs
hphp/hack/src/parser/expression_parser.rs
hphp/hack/test/typecheck/unset_cast.php.exp
hphp/test/slow/compilation/1317.php
hphp/test/slow/compilation/1317.php.expect
hphp/test/slow/unset/1117.php [deleted file]
hphp/test/slow/unset/1117.php.expect [deleted file]