Skip to content

Commit

Permalink
Remove check for expression_tree_nest experimental feature
Browse files Browse the repository at this point in the history
Summary: This has been released for a while now

Reviewed By: dlreeves

Differential Revision: D69458721

fbshipit-source-id: 719e45f6ff662b5226055ababc5e28c11742f180
  • Loading branch information
Scott Owens authored and facebook-github-bot committed Feb 12, 2025
1 parent 5030f2b commit bbe9d40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions hphp/hack/src/parser/rust_parser_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5819,9 +5819,6 @@ impl<'a, State: 'a + Clone> ParserErrors<'a, State> {
self.errors
.push(make_error_from_node(prefix, errors::expression_tree_name))
}
if self.context.expression_tree_depth > 0 && !self.context.active_expression_tree {
self.check_can_use_feature(node, &FeatureName::ExpressionTreeNest)
}

*prev_context = Some(self.env.context.clone());
self.context.active_expression_tree = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ERROR: File "nested_expression_tree_in_splice_in_lambda.php", line 7, characters 13-25:
Cannot use unstable feature: `expression_tree_nest` (Parsing[1002])
No errors
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ERROR: File "nested_expression_trees.php", line 6, characters 16-28:
Cannot use unstable feature: `expression_tree_nest` (Parsing[1002])
No errors

0 comments on commit bbe9d40

Please sign in to comment.