Skip to content

Commit 6ea2e71

Browse files
authored
fix: rename incorrectly documented target-spec-json to json-target-sp… (rust-lang#16905)
Close rust-lang#16896.
2 parents 3bf1388 + 1ba5fc5 commit 6ea2e71

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/doc/src/reference/unstable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Each new feature described below should explain how to use it.
100100
* [panic-immediate-abort](#panic-immediate-abort) --- Passes `-Cpanic=immediate-abort` to the compiler.
101101
* [compile-time-deps](#compile-time-deps) --- Perma-unstable feature for rust-analyzer
102102
* [fine-grain-locking](#fine-grain-locking) --- Use fine grain locking instead of locking the entire build cache
103-
* [target-spec-json](#target-spec-json) --- Allows the use of `.json` custom target specs.
103+
* [json-target-spec](#json-target-spec) --- Allows the use of `.json` custom target specs.
104104
* rustdoc
105105
* [rustdoc-map](#rustdoc-map) --- Provides mappings for documentation to link to external sites like [docs.rs](https://docs.rs/).
106106
* [scrape-examples](#scrape-examples) --- Shows examples within documentation.
@@ -2018,13 +2018,13 @@ so that `cargo doc` can merge cross-crate information
20182018
from separate output directories,
20192019
and run `rustdoc` in parallel.
20202020

2021-
## target-spec-json
2021+
## json-target-spec
20222022
* Tracking Issue: [rust-lang/rust#151528](https://github.com/rust-lang/rust/issues/151528)
20232023

2024-
The `-Z target-spec-json` CLI flag enables the ability to use [custom target spec JSON files](https://doc.rust-lang.org/nightly/rustc/targets/custom.html) as a target.
2024+
The `-Z json-target-spec` CLI flag enables the ability to use [custom target spec JSON files](https://doc.rust-lang.org/nightly/rustc/targets/custom.html) as a target.
20252025

20262026
```console
2027-
cargo +nightly build --target my-target.json -Z target-spec-json
2027+
cargo +nightly build --target my-target.json -Z json-target-spec
20282028
```
20292029

20302030
This usually must be combined with [build-std](#build-std).

0 commit comments

Comments
 (0)