[fidl] Only allow new syntax FIDL files in this repository
There is currently only one tests file built in-repo,
src/syscall/zx/fidl/internal/bindingstest/test.test.fidl, which has
already been converted to the new syntax.
Change-Id: I00039f14a21cd4bac4693284906736196077ffa3
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/go/+/562901
Reviewed-by: Felix Zhu <fcz@google.com>
Commit-Queue: Alex Zaslavsky <azaslavsky@google.com>
diff --git a/regen-fidl b/regen-fidl
index 050b92c..a2b36f3 100755
--- a/regen-fidl
+++ b/regen-fidl
@@ -42,7 +42,7 @@
copyright_line=$(grep -E "^// Copyright [0-9]+" "${out_file}" || \
echo "// Copyright $(date +%Y) The Fuchsia Authors. All rights reserved.")
"${FUCHSIA_BUILD_DIR}"/$FIDLC \
- --experimental allow_new_syntax \
+ --experimental new_syntax_only \
--json "${ir_file}" \
"$@" \
--files "${source_dir}"/*.fidl