From 63ed7843bbf7fff95779eaa192b7d38a9e0978ca Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 14 Apr 2017 13:08:07 -0700 Subject: [PATCH] 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"). --- man/rustc.1 | 2 +- src/librustc/session/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/rustc.1 b/man/rustc.1 index 16562559561..6c80f11fa72 100644 --- a/man/rustc.1 +++ b/man/rustc.1 @@ -50,7 +50,7 @@ Comma separated list of types of crates for the compiler to emit. \fB\-\-crate\-name\fR \fINAME\fR Specify the name of the crate being built. .TP -\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info][=\fIPATH\fR] +\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info|mir][=\fIPATH\fR] Configure the output that \fBrustc\fR will produce. Each emission may also have an optional explicit output \fIPATH\fR specified for that particular emission kind. This path takes precedence over the \fB-o\fR option. diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index b9a974045bc..fadb1844008 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1246,7 +1246,7 @@ pub fn rustc_short_optgroups() -> Vec { "NAME"), opt::multi_s("", "emit", "Comma separated list of types of output for \ the compiler to emit", - "[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info]"), + "[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir]"), opt::multi_s("", "print", "Comma separated list of compiler information to \ print on stdout", &format!("[{}]", &print_opts.join("|"))),