You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new flag can be used to disallow unstable features by default, with
the possibility to opt back in to using them by explicitly adding
`-Zallow-features=...` to `rustc_flags`.
Copy file name to clipboardExpand all lines: rust/private/rustc.bzl
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -835,6 +835,7 @@ def construct_arguments(
835
835
build_metadata=False,
836
836
force_depend_on_objects=False,
837
837
skip_expanding_rustc_env=False,
838
+
require_explicit_unstable_features=False,
838
839
error_format=None):
839
840
"""Builds an Args object containing common rustc flags
840
841
@@ -867,6 +868,7 @@ def construct_arguments(
867
868
build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output.
868
869
force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available.
869
870
skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr
871
+
require_explicit_unstable_features (bool): Whether to require all unstable features to be explicitly opted in to using `-Zallow-features=...`.
870
872
error_format (str, optional): Error format to pass to the `--error-format` command line argument. If set to None, uses the "_error_format" entry in `attr`.
0 commit comments