From 0f80faf2a8988bfdef0675f0e3cf208b4f4774e3 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 31 Oct 2024 22:13:22 +0100 Subject: [PATCH] add unstable feature docs --- src/doc/src/reference/unstable.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index 82da1cc78ba..c049d94f984 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -78,6 +78,7 @@ Each new feature described below should explain how to use it. * Output behavior * [artifact-dir](#artifact-dir) --- Adds a directory where artifacts are copied to. * [Different binary name](#different-binary-name) --- Assign a name to the built binary that is separate from the crate name. + * [root-dir](#root-dir) --- Controls the root directory relative to which paths are printed * Compile behavior * [mtime-on-use](#mtime-on-use) --- Updates the last-modified timestamp on every dependency every time it is used, to provide a mechanism to delete unused artifacts. * [doctest-xcompile](#doctest-xcompile) --- Supports running doctests with the `--target` flag. @@ -236,6 +237,13 @@ This can also be specified in `.cargo/config.toml` files. artifact-dir = "out" ``` +## root-dir +* Original Issue: [#9887](https://github.com/rust-lang/cargo/issues/9887) +* Tracking Issue: None (not currently slated for stabilization) + +The `-Zroot-dir` flag sets the root directory relative to which paths are printed. +This affects both diagnostics and paths emitted by the `file!()` macro. + ## doctest-xcompile * Tracking Issue: [#7040](https://github.com/rust-lang/cargo/issues/7040) * Tracking Rustc Issue: [#64245](https://github.com/rust-lang/rust/issues/64245)