You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/reference/unstable.md
+8
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Each new feature described below should explain how to use it.
78
78
* Output behavior
79
79
*[artifact-dir](#artifact-dir) --- Adds a directory where artifacts are copied to.
80
80
*[Different binary name](#different-binary-name) --- Assign a name to the built binary that is separate from the crate name.
81
+
*[root-dir](#root-dir) --- Controls the root directory relative to which paths are printed
81
82
* Compile behavior
82
83
*[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.
83
84
*[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.
236
237
artifact-dir = "out"
237
238
```
238
239
240
+
## root-dir
241
+
* Original Issue: [#9887](https://github.com/rust-lang/cargo/issues/9887)
242
+
* Tracking Issue: None (not currently slated for stabilization)
243
+
244
+
The `-Zroot-dir` flag sets the root directory relative to which paths are printed.
245
+
This affects both diagnostics and paths emitted by the `file!()` macro.
0 commit comments