Skip to content

Commit e8d61a6

Browse files
authored
Add docs for error_format (#924)
1 parent 52e3ba4 commit e8d61a6

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

docs/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ PAGES = dict([
5959
"rust_benchmark",
6060
"rust_test",
6161
"rust_test_suite",
62+
"error_format",
6263
"extra_rustc_flags",
6364
],
6465
),

docs/defs.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,27 @@
99
* [rust_benchmark](#rust_benchmark)
1010
* [rust_test](#rust_test)
1111
* [rust_test_suite](#rust_test_suite)
12+
* [error_format](#error_format)
1213
* [extra_rustc_flags](#extra_rustc_flags)
1314

15+
<a id="#error_format"></a>
16+
17+
## error_format
18+
19+
<pre>
20+
error_format(<a href="#error_format-name">name</a>)
21+
</pre>
22+
23+
Change the [--error-format](https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error-format) flag from the command line with `--@rules_rust//:error_format`. See rustc documentation for valid values.
24+
25+
**ATTRIBUTES**
26+
27+
28+
| Name | Description | Type | Mandatory | Default |
29+
| :------------- | :------------- | :------------- | :------------- | :------------- |
30+
| <a id="error_format-name"></a>name | A unique name for this target. | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required | |
31+
32+
1433
<a id="#extra_rustc_flags"></a>
1534

1635
## extra_rustc_flags

docs/flatten.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [cargo_build_script](#cargo_build_script)
88
* [crate](#crate)
99
* [crate_universe](#crate_universe)
10+
* [error_format](#error_format)
1011
* [extra_rustc_flags](#extra_rustc_flags)
1112
* [fail_when_enabled](#fail_when_enabled)
1213
* [incompatible_flag](#incompatible_flag)
@@ -118,6 +119,24 @@ Environment Variables:
118119
| <a id="crate_universe-version"></a>version | The version of cargo the resolver should use | String | optional | "1.54.0" |
119120

120121

122+
<a id="#error_format"></a>
123+
124+
## error_format
125+
126+
<pre>
127+
error_format(<a href="#error_format-name">name</a>)
128+
</pre>
129+
130+
Change the [--error-format](https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error-format) flag from the command line with `--@rules_rust//:error_format`. See rustc documentation for valid values.
131+
132+
**ATTRIBUTES**
133+
134+
135+
| Name | Description | Type | Mandatory | Default |
136+
| :------------- | :------------- | :------------- | :------------- | :------------- |
137+
| <a id="error_format-name"></a>name | A unique name for this target. | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required | |
138+
139+
121140
<a id="#extra_rustc_flags"></a>
122141

123142
## extra_rustc_flags

docs/symbols.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ load(
4141
)
4242
load(
4343
"@rules_rust//rust:defs.bzl",
44+
_error_format = "error_format",
4445
_extra_rustc_flags = "extra_rustc_flags",
4546
_rust_analyzer = "rust_analyzer",
4647
_rust_analyzer_aspect = "rust_analyzer_aspect",
@@ -142,6 +143,7 @@ crate = _crate
142143
rustfmt_aspect = _rustfmt_aspect
143144
rustfmt_test = _rustfmt_test
144145

146+
error_format = _error_format
145147
extra_rustc_flags = _extra_rustc_flags
146148
incompatible_flag = _incompatible_flag
147149
fail_when_enabled = _fail_when_enabled

0 commit comments

Comments
 (0)