about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-02-21 10:18:56 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-03-01 09:24:08 +0300
commit81cfa98f8286ef280897e6df97e6350196b8e578 (patch)
tree3af08ebfad7c7c0d3aca2ddc4f6de1994693e85d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent3b150b7a8f77874f26c617666f5608fe4a3e58df (diff)
downloadrust-81cfa98f8286ef280897e6df97e6350196b8e578.tar.gz
rust-81cfa98f8286ef280897e6df97e6350196b8e578.zip
config.toml error reporting:
Improve error messages for musl-libdir and wasi-root keys. Previously
the parser would panic with `unwrap()`. Now it prints

      Target "wasm32-wasi" does not have a "wasi-root" key

(and similar for the `musl-libdir` field, which is used in target that
use musl)

Also update comments around wasi-root field to make it clear that the
field is only valid in wasm32-wasi target and needs to be moved to a
`[target.wasm32-wasi]` section to be valid.

Fixes #82317
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions