diff options
author | Rubén Rincón Blanco <ruben@rinconblanco.es> | 2021-07-06 05:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 05:21:31 +0200 |
commit | 27012bb0ec4b368b0052d6c260cf18dff78f4934 (patch) | |
tree | f005da99a67338b4682d644e07efef91cf39b78a /lib/compilers/rust.js | |
parent | dcbb8c863f9c55f672d397993177519a71ff14ec (diff) | |
download | compiler-explorer-27012bb0ec4b368b0052d6c260cf18dff78f4934.tar.gz compiler-explorer-27012bb0ec4b368b0052d6c260cf18dff78f4934.zip |
Initial sketch for how we could parse Rust output (#2761)
* Initial sketch for how we could parse Rust output
It has many issues, which I need to ask about, but ey, it works!
* Fix spacing
* Add tests for the new Rust output parsing
Diffstat (limited to 'lib/compilers/rust.js')
-rw-r--r-- | lib/compilers/rust.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compilers/rust.js b/lib/compilers/rust.js index d392975b1..a27fbbff6 100644 --- a/lib/compilers/rust.js +++ b/lib/compilers/rust.js @@ -27,6 +27,7 @@ import path from 'path'; import _ from 'underscore'; import { BaseCompiler } from '../base-compiler'; +import { parseRustOutput } from '../utils'; import { RustParser } from './argument-parsers'; @@ -77,4 +78,9 @@ export class RustCompiler extends BaseCompiler { isCfgCompiler(/*compilerVersion*/) { return true; } + + parseCompilationOutput(result, inputFilename) { + result.stdout = parseRustOutput(result.stdout, inputFilename); + result.stderr = parseRustOutput(result.stderr, inputFilename); + } } |