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 allows the error format for Clippy to be set independently of that
for rustc.
As this is a backwards-incompatible change, it is guarded by a feature
flag `incompatible_change_clippy_error_format`.
For the motivation for this change, see #3494.
Copy file name to clipboardExpand all lines: rust/private/rustc.bzl
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -833,7 +833,8 @@ def construct_arguments(
833
833
use_json_output=False,
834
834
build_metadata=False,
835
835
force_depend_on_objects=False,
836
-
skip_expanding_rustc_env=False):
836
+
skip_expanding_rustc_env=False,
837
+
error_format=None):
837
838
"""Builds an Args object containing common rustc flags
838
839
839
840
Args:
@@ -865,6 +866,7 @@ def construct_arguments(
865
866
build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output.
866
867
force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available.
867
868
skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr
869
+
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