diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-07-27 13:22:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-27 13:22:07 -0700 |
| commit | b4579921307a7688c206238855dc7d00a3f7bd51 (patch) | |
| tree | 6c84c24321b7adb0bfdcb19a21ac55502d3f0af7 /src | |
| parent | b5f83a95500be04a0c3fd325a9efa08b82d21199 (diff) | |
| parent | 9268a8b060f01ace9e925f27778d2768f4850cf8 (diff) | |
Rollup merge of #114139 - Urgau:make-print-with-path-unstable, r=jackh726
Make `--print` with path unstable https://github.com/rust-lang/rust/pull/113780 should have gone through an MCP+FCP but wasn't, but instead of reverting the original PR, this PR just make that new option unstable. [Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202023-07-27/near/379199738) cc `@dtolnay`
Diffstat (limited to 'src')
| -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, 11 insertions, 4 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 4d32897cc14..2c7c05c0c4b 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -260,10 +260,6 @@ 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 new file mode 100644 index 00000000000..0f2437020dd --- /dev/null +++ b/src/doc/unstable-book/src/compiler-flags/path-options.md @@ -0,0 +1,11 @@ +# `--print` Options + +The behavior of the `--print` flag can be modified by optionally be specifiying 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` |
