aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/skylark
diff options
context:
space:
mode:
authorGravatar laurentlb <laurentlb@google.com>2018-04-12 09:27:57 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-12 09:29:35 -0700
commit2213d92c8ddaed701ee4ac8b349877cece9384d0 (patch)
tree58798a8a734815c5411ca5d4869f95b7a3929d13 /site/docs/skylark
parentb30f2163f44f139403fea755877cd0d0be050060 (diff)
Remove flag `incompatible_disallow_toplevel_if_statement`.
RELNOTES: Removed flag `--incompatible_disallow_toplevel_if_statement`. PiperOrigin-RevId: 192621765
Diffstat (limited to 'site/docs/skylark')
-rw-r--r--site/docs/skylark/backward-compatibility.md12
1 files changed, 0 insertions, 12 deletions
diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md
index 801148b79d..1bc3f86281 100644
--- a/site/docs/skylark/backward-compatibility.md
+++ b/site/docs/skylark/backward-compatibility.md
@@ -32,7 +32,6 @@ guarded behind flags in the current release:
* [Dictionary concatenation](#dictionary-concatenation)
* [Load must appear at top of file](#load-must-appear-at-top-of-file)
-* [Top level `if` statements](#top-level-if-statements)
* [Depset is no longer iterable](#depset-is-no-longer-iterable)
* [Depset union](#depset-union)
* [String is no longer iterable](#string-is-no-longer-iterable)
@@ -60,17 +59,6 @@ appear at the beginning of the file, i.e. before any other non-`load` statement.
* Default: `false`
-### Top level `if` statements
-
-This change forbids `if` statements at the top level of `.bzl` files (they are
-already forbidden in `BUILD` files). This change ensures that every global
-value has a single declaration. This restriction is consistent with the idea
-that global values cannot be redefined.
-
-* Flag: `--incompatible_disallow_toplevel_if_statement`
-* Default: `true`
-
-
### Depset is no longer iterable
When the flag is set to true, `depset` objects are not treated as iterable. If