@@ -1185,24 +1185,6 @@ cargo +nightly -Zunstable-options config get build.rustflags
1185
1185
If no config value is included, it will display all config values. See the
1186
1186
` --help ` output for more options available.
1187
1187
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
-
1206
1188
### rustc ` --print `
1207
1189
1208
1190
* 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.
1799
1781
The ` -Z doctest-in-workspace ` option for ` cargo test ` has been stabilized and
1800
1782
enabled by default in the 1.72 release. See the
1801
1783
[ ` 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