We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67abf6e commit bb74d13Copy full SHA for bb74d13
lib/grammars/index.js
@@ -520,7 +520,8 @@ const OtherGrammars = {
520
if (windows) {
521
return [`/c rustc ${filepath} && ${filename.slice(0, Number(-4) + 1 || undefined)}.exe`]
522
} else {
523
- return ["-c", `rustc '${filepath}' -o /tmp/rs.out && /tmp/rs.out`]
+ const tempOutFile = GrammarUtils.createTempPath("rs-", ".out")
524
+ return ["-c", `rustc '${filepath}' -o ${tempOutFile} && ${tempOutFile}`]
525
}
526
},
527
0 commit comments