diff options
| author | Urgau <urgau@numericable.fr> | 2023-07-28 20:44:25 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-09-07 15:07:30 +0200 |
| commit | caf6ce5ea28e7bf3ab0eeac21bfce5e3013e3347 (patch) | |
| tree | fa88d257be386686b2ab2762a66d85f3e07d2ce3 /src/doc | |
| parent | bf1e3f31f95c0f75b9bf51a58e8684f750f919f2 (diff) | |
| download | rust-caf6ce5ea28e7bf3ab0eeac21bfce5e3013e3347.tar.gz rust-caf6ce5ea28e7bf3ab0eeac21bfce5e3013e3347.zip | |
Stabilize `PATH` option for `--print KIND=PATH`
Description of the `PATH` option: > A filepath may optionally be specified for each requested information > kind, in the format `--print KIND=PATH`, just like for `--emit`. When > a path is specified, information will be written there instead of to > stdout.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 4 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/path-options.md | 11 |
2 files changed, 4 insertions, 11 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 2c7c05c0c4b..4d32897cc14 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -260,6 +260,10 @@ The valid types of print values are: This returns rustc's minimum supported deployment target if no `*_DEPLOYMENT_TARGET` variable is present in the environment, or otherwise returns the variable's parsed value. +A filepath may optionally be specified for each requested information kind, in +the format `--print KIND=PATH`, just like for `--emit`. When a path is +specified, information will be written there instead of to stdout. + [conditional compilation]: ../reference/conditional-compilation.html [deployment target]: https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html diff --git a/src/doc/unstable-book/src/compiler-flags/path-options.md b/src/doc/unstable-book/src/compiler-flags/path-options.md deleted file mode 100644 index 0786ef1f166..00000000000 --- a/src/doc/unstable-book/src/compiler-flags/path-options.md +++ /dev/null @@ -1,11 +0,0 @@ -# `--print` Options - -The behavior of the `--print` flag can be modified by optionally be specifying a filepath -for each requested information kind, in the format `--print KIND=PATH`, just like for -`--emit`. When a path is specified, information will be written there instead of to stdout. - -This is unstable feature, so you have to provide `-Zunstable-options` to enable it. - -## Examples - -`rustc main.rs -Z unstable-options --print cfg=cfgs.txt` |
