• bors's avatar
    Auto merge of #59744 - cuviper:output-errors, r=sanxiyn · 2982dbf8
    bors authored
    Show better errors for LLVM IR output
    
    I was trying to output LLVM IR directly to the console:
    
        $ rustc hello.rs --emit=llvm-ir -o /dev/stdout
        LLVM ERROR: IO failure on output stream: Bad file descriptor
    
    Now `LLVMRustPrintModule` returns an error, and we print:
    
        error: failed to write LLVM IR to /dev/stdout.hello.7rcbfp3g-cgu.0.rcgu.ll: Permission denied
    
    ... which is more informative.
    2982dbf8
Name
Last commit
Last update
src Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYRIGHT Loading commit data...
Cargo.lock Loading commit data...
Cargo.toml Loading commit data...
LICENSE-APACHE Loading commit data...
LICENSE-MIT Loading commit data...
README.md Loading commit data...
RELEASES.md Loading commit data...
appveyor.yml Loading commit data...
config.toml.example Loading commit data...
configure Loading commit data...
x.py Loading commit data...