diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-05-09 23:13:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 23:13:50 -0500 |
commit | f2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch) | |
tree | c726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/rust.js | |
parent | 141fa735217859d5ebc2985c5eabd2a780246485 (diff) | |
download | compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.tar.gz compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.zip |
The Grand Reformat (#3643)gh-2830
* The Grand Reformat
- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
Diffstat (limited to 'lib/compilers/rust.js')
-rw-r--r-- | lib/compilers/rust.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/compilers/rust.js b/lib/compilers/rust.js index 84d0b156c..232e6fe1e 100644 --- a/lib/compilers/rust.js +++ b/lib/compilers/rust.js @@ -26,13 +26,15 @@ import path from 'path'; import _ from 'underscore'; -import { BaseCompiler } from '../base-compiler'; -import { parseRustOutput } from '../utils'; +import {BaseCompiler} from '../base-compiler'; +import {parseRustOutput} from '../utils'; -import { RustParser } from './argument-parsers'; +import {RustParser} from './argument-parsers'; export class RustCompiler extends BaseCompiler { - static get key() { return 'rust'; } + static get key() { + return 'rust'; + } constructor(info, env) { super(info, env); @@ -57,7 +59,7 @@ export class RustCompiler extends BaseCompiler { optionsForBackend(backendOptions, outputFilename) { // The super class handles the GCC dump files that may be needed by // rustc-cg-gcc subclass. - const opts = super.optionsForBackend (backendOptions, outputFilename); + const opts = super.optionsForBackend(backendOptions, outputFilename); if (backendOptions.produceRustMir && this.compiler.supportsRustMirView) { const of = this.getRustMirOutputFilename(outputFilename); @@ -87,8 +89,7 @@ export class RustCompiler extends BaseCompiler { // Override the IR file name method for rustc because the output file is different from clang. getIrOutputFilename(inputFilename) { - return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase) - .replace('.s', '.ll'); + return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase).replace('.s', '.ll'); } getArgumentParser() { |