diff options
author | vladmos <vladmos@google.com> | 2018-03-22 06:05:45 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-22 06:07:11 -0700 |
commit | bc4a0a2393768457f95ac0a54bfc641fede6032a (patch) | |
tree | 1f98c2b89f5a86bc56c360cf72c73aedc498150e /site/docs/skylark | |
parent | 4aa3e06e2226dce83ee6430e80dc7c7d0d67e93e (diff) |
Remove the --incompatible_disallow_uncalled_set_constructor flag
RELNOTES[INC]: The --incompatible_disallow_uncalled_set_constructor flag is no
longer available, the `set` constructor` is completely removed from Skylark.
Use `depset` instead.
PiperOrigin-RevId: 190053331
Diffstat (limited to 'site/docs/skylark')
-rw-r--r-- | site/docs/skylark/backward-compatibility.md | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md index 8cffaeafd4..e5d8c75b62 100644 --- a/site/docs/skylark/backward-compatibility.md +++ b/site/docs/skylark/backward-compatibility.md @@ -30,7 +30,6 @@ To check if your code will be compatible with future releases you can: The following are the backward incompatible changes that are implemented and guarded behind flags in the current release: -* [Set constructor](#set-constructor) * [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) @@ -41,22 +40,6 @@ guarded behind flags in the current release: * [Glob tracking](#glob-tracking) -### Set constructor - -To maintain a clear distinction between the specialized [`depset`](depsets.md) -data structure and Python's native `set` datatype (which does not currently -exist in Skylark), the `set` constructor has been superseded by `depset`. It is -no longer allowed to run code that calls the old `set` constructor. - -However, for a limited time, it will not be an error to reference the `set` -constructor from code that is not executed (e.g. a function that is never -called). Enable this flag to confirm that your code does not still refer to the -old `set` constructor from unexecuted code. - -* Flag: `--incompatible_disallow_uncalled_set_constructor` -* Default: `true` - - ### Dictionary concatenation We are removing the `+` operator on dictionaries. This includes the `+=` form |