Skip to content

Commit 06fa940

Browse files
committed
Add missing tracking issues and unstable docs.
1 parent e9e0907 commit 06fa940

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

src/doc/src/reference/unstable.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ to any Rust tools that cargo ends up calling (like `rustc` or
8585
Cargo _or_ Rust features can be used.
8686

8787
### extra-link-arg
88+
* Tracking Issue: [#9426](https://github.com/rust-lang/cargo/issues/9426)
8889
* Original Pull Request: [#7811](https://github.com/rust-lang/cargo/pull/7811)
8990

9091
The `-Z extra-link-arg` flag makes the following two instructions available
@@ -138,7 +139,7 @@ invocations of nightly cargo. (the config flag is ignored by stable)
138139

139140
### avoid-dev-deps
140141
* Original Issue: [#4988](https://github.com/rust-lang/cargo/issues/4988)
141-
* Stabilization Issue: [#5133](https://github.com/rust-lang/cargo/issues/5133)
142+
* Tracking Issue: [#5133](https://github.com/rust-lang/cargo/issues/5133)
142143

143144
When running commands such as `cargo install` or `cargo build`, Cargo
144145
currently requires dev-dependencies to be downloaded, even if they are not
@@ -569,6 +570,8 @@ itself, which has implicit dependencies on the standard library that would
569570
otherwise be untracked for change-detection.
570571

571572
### panic-abort-tests
573+
* Tracking Issue: [#67650](https://github.com/rust-lang/rust/issues/67650)
574+
* Original Pull Request: [#7460](https://github.com/rust-lang/cargo/pull/7460)
572575

573576
The `-Z panic-abort-tests` flag will enable nightly support to compile test
574577
harness crates with `-Cpanic=abort`. Without this flag Cargo will compile tests,
@@ -839,6 +842,9 @@ The default value is `"remote"`.
839842
The value may also take a URL for a custom location.
840843

841844
### terminal-width
845+
846+
* Tracking Issue: [#84673](https://github.com/rust-lang/rust/issues/84673)
847+
842848
This feature provides a new flag, `-Z terminal-width`, which is used to pass
843849
a terminal width to `rustc` so that error messages containing long lines
844850
can be intelligently truncated.
@@ -896,6 +902,9 @@ dependency. However, unlike the normal `serde/std` syntax, it will not enable
896902
the optional dependency `serde` unless something else has included it.
897903

898904
### per-package-target
905+
* Tracking Issue: [#9406](https://github.com/rust-lang/cargo/pull/9406)
906+
* Original Pull Request: [#9030](https://github.com/rust-lang/cargo/pull/9030)
907+
* Original Issue: [#7004](https://github.com/rust-lang/cargo/pull/7004)
899908

900909
The `per-package-target` feature adds two keys to the manifest:
901910
`package.default-target` and `package.forced-target`. The first makes
@@ -1212,6 +1221,23 @@ cargo +nightly -Zunstable-options config get build.rustflags
12121221
If no config value is included, it will display all config values. See the
12131222
`--help` output for more options available.
12141223

1224+
### `doctest-in-workspace`
1225+
1226+
* Tracking Issue: [#9427](https://github.com/rust-lang/cargo/issues/9427)
1227+
1228+
The `-Z doctest-in-workspace` flag changes the behavior of the current working
1229+
directory used when running doctests. Historically, Cargo has run `rustdoc
1230+
--test` relative to the root of the package, with paths relative from that
1231+
root. However, this is inconsistent with how `rustc` and `rustdoc` are
1232+
normally run in a workspace, where they are run relative to the workspace
1233+
root. This inconsistency causes problems in various ways, such as when passing
1234+
RUSTDOCFLAGS with relative paths, or dealing with diagnostic output.
1235+
1236+
The `-Z doctest-in-workspace` flag causes cargo to switch to running `rustdoc`
1237+
from the root of the workspace. It also passes the `--test-run-directory` to
1238+
`rustdoc` so that when *running* the tests, they are run from the root of the
1239+
package. This preserves backwards compatibility and is consistent with how
1240+
normal unittests are run.
12151241

12161242
<script>
12171243
(function() {

0 commit comments

Comments
 (0)