Skip to content

Commit 63ed784

Browse files
committed
add 'mir' as part of the --emit flag list in rustc --help menu and man doc.
This is added because 'rustc' can now generate MIR (referencing to "Teach rustc --emit=mir #39891").
1 parent 5637ed7 commit 63ed784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

man/rustc.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Comma separated list of types of crates for the compiler to emit.
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][=\fIPATH\fR]
53+
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|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.

src/librustc/session/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
12461246
"NAME"),
12471247
opt::multi_s("", "emit", "Comma separated list of types of output for \
12481248
the compiler to emit",
1249-
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info]"),
1249+
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir]"),
12501250
opt::multi_s("", "print", "Comma separated list of compiler information to \
12511251
print on stdout", &format!("[{}]",
12521252
&print_opts.join("|"))),

0 commit comments

Comments
 (0)