Skip to content

Commit 703ee5c

Browse files
authored
Rollup merge of #100037 - fw-immunant:patch-1, r=jyn514
Update rustc man page to match `rustc --help` This brings the `--crate-type`, `--emit`, and `--print` options' allowed arguments into sync with that printed by `rustc --help`. c.f. the `opt::multi_s` calls for `"crate-type"`, `"emit"`, and `"print"` here: https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config.rs
2 parents 042bba7 + 9864db6 commit 703ee5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/man/rustc.1

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ The optional \fIKIND\fR can be one of \fIstatic\fR, \fIdylib\fR, or
4444
\fIframework\fR.
4545
If omitted, \fIdylib\fR is assumed.
4646
.TP
47-
\fB\-\-crate\-type\fR [bin|lib|rlib|dylib|cdylib|staticlib]
47+
\fB\-\-crate\-type\fR [bin|lib|rlib|dylib|cdylib|staticlib|proc\-macro]
4848
Comma separated list of types of crates for the compiler to emit.
4949
.TP
5050
\fB\-\-crate\-name\fR \fINAME\fR
5151
Specify the name of the crate being built.
5252
.TP
53-
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info|mir][=\fIPATH\fR]
53+
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|metadata|link|dep\-info|mir][=\fIPATH\fR]
5454
Configure the output that \fBrustc\fR will produce. Each emission may also have
5555
an optional explicit output \fIPATH\fR specified for that particular emission
5656
kind. This path takes precedence over the \fB-o\fR option.
5757
.TP
58-
\fB\-\-print\fR [crate\-name|\:file\-names|\:sysroot|\:cfg|\:target\-list|\:target\-cpus|\:target\-features|\:relocation\-models|\:code\-models|\:tls\-models|\:target\-spec\-json|\:native\-static\-libs]
58+
\fB\-\-print\fR [crate\-name|\:file\-names|\:sysroot|\:target\-libdir|\:cfg|\:target\-list|\:target\-cpus|\:target\-features|\:relocation\-models|\:code\-models|\:tls\-models|\:target\-spec\-json|\:native\-static\-libs|\:stack\-protector\-strategies|\:link\-args]
5959
Comma separated list of compiler information to print on stdout.
6060
.TP
6161
\fB\-g\fR

0 commit comments

Comments
 (0)