Skip to content

Commit e9bc2b2

Browse files
authored
Rollup merge of #41306 - nateozem:support/docs-mir, r=frewsxcv
add 'mir' to rustc help menu and man doc add 'mir' to '--emit' flag list for 'rustc'. This is added because 'rustc' can now generate MIR (referencing to "Teach rustc --emit=mir #39891").
2 parents c67cf5f + 63ed784 commit e9bc2b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

man/rustc.1

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)