Closed
Description
rustc --print
with an invalid name, for example, x
, shows:
error: unknown print request: `x`
|
= help: valid print requests are: `all-target-specs-json`, `calling-conventions`, `cfg`, `check-cfg`, `code-models`, `crate-name`, `deployment-target`, `file-names`, `host-tuple`, `link-args`, `native-static-libs`, `relocation-models`, `split-debuginfo`, `stack-protector-strategies`, `sysroot`, `target-cpus`, `target-features`, `target-libdir`, `target-list`, `target-spec-json`, `tls-models`
This seems correct, but rustc --help
's description of --print
is:
--print [crate-name|file-names|sysroot|target-libdir|cfg|check-cfg|calling-conventions|target-list|target-cpus|target-features|relocation-models|code-models|tls-models|target-spec-json|all-target-specs-json|native-static-libs|stack-protector-strategies|link-args|deployment-target]
Compiler information to print on stdout
This list does not contain
host-tuple
split-debuginfo
Maybe related
- Add
--print host-tuple
to print host target tuple #125579 : This added--print host-tuple
, but it seems not applied torustc --help
at this point
Meta
rustc --version --verbose
:
rustc 1.87.0-nightly (794c12416 2025-02-21)
binary: rustc
commit-hash: 794c12416b2138064af1f2746646973fafd9419d
commit-date: 2025-02-21
host: x86_64-unknown-linux-gnu
release: 1.87.0-nightly
LLVM version: 20.1.0