diff options
author | Mats Larsen <me@supergrecko.com> | 2021-09-26 23:33:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 00:33:09 +0200 |
commit | 278d28b313005effbc39519a833ddb8d92fea66d (patch) | |
tree | 507ff8cd30f331685519130a701742e6a75aeb2b /lib/compilers/rust.js | |
parent | e7b9cbda9174b45121fdf625d806809de45525f4 (diff) | |
download | compiler-explorer-278d28b313005effbc39519a833ddb8d92fea66d.tar.gz compiler-explorer-278d28b313005effbc39519a833ddb8d92fea66d.zip |
Add rustc Macro Expansion view (#2932)
Adds a new pane for producing the macro expansion of Rust code compiled with rustc.
Diffstat (limited to 'lib/compilers/rust.js')
-rw-r--r-- | lib/compilers/rust.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compilers/rust.js b/lib/compilers/rust.js index d6be3b5c7..3072e8db4 100644 --- a/lib/compilers/rust.js +++ b/lib/compilers/rust.js @@ -39,6 +39,8 @@ export class RustCompiler extends BaseCompiler { this.compiler.supportsIntel = true; this.compiler.supportsIrView = true; this.compiler.supportsRustMirView = true; + // Macro expansion through -Zunpretty=expanded is only available for Nightly + this.compiler.supportsRustMacroExpView = info.name === 'nightly' || info.semver === 'nightly'; this.compiler.irArg = ['--emit', 'llvm-ir']; this.linker = this.compilerProps('linker'); } |