Skip to content

Commit b379f8d

Browse files
committed
docs(unstable): remove tracking for -Zdoctest-in-workspace
1 parent fa08d67 commit b379f8d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/doc/src/reference/unstable.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,24 +1185,6 @@ cargo +nightly -Zunstable-options config get build.rustflags
11851185
If no config value is included, it will display all config values. See the
11861186
`--help` output for more options available.
11871187

1188-
### `doctest-in-workspace`
1189-
1190-
* Tracking Issue: [#9427](https://github.com/rust-lang/cargo/issues/9427)
1191-
1192-
The `-Z doctest-in-workspace` flag changes the behavior of the current working
1193-
directory used when running doctests. Historically, Cargo has run `rustdoc
1194-
--test` relative to the root of the package, with paths relative from that
1195-
root. However, this is inconsistent with how `rustc` and `rustdoc` are
1196-
normally run in a workspace, where they are run relative to the workspace
1197-
root. This inconsistency causes problems in various ways, such as when passing
1198-
RUSTDOCFLAGS with relative paths, or dealing with diagnostic output.
1199-
1200-
The `-Z doctest-in-workspace` flag causes cargo to switch to running `rustdoc`
1201-
from the root of the workspace. It also passes the `--test-run-directory` to
1202-
`rustdoc` so that when *running* the tests, they are run from the root of the
1203-
package. This preserves backwards compatibility and is consistent with how
1204-
normal unittests are run.
1205-
12061188
### rustc `--print`
12071189

12081190
* Tracking Issue: [#9357](https://github.com/rust-lang/cargo/issues/9357)
@@ -1799,4 +1781,4 @@ The [`cargo logout`] command has been stabilized in the 1.70 release.
17991781
The `-Z doctest-in-workspace` option for `cargo test` has been stabilized and
18001782
enabled by default in the 1.72 release. See the
18011783
[`cargo test` documentation](../commands/cargo-test.md#working-directory-of-tests)
1802-
for more information about the working directory for compiling and running tests.
1784+
for more information about the working directory for compiling and running tests.

0 commit comments

Comments
 (0)