about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJoshua Nelson <joshua@yottadb.com>2021-03-01 11:25:03 -0500
committerGitHub <noreply@github.com>2021-03-01 11:25:03 -0500
commitc8825d04008ccf60bd12f6a054d5dd903698392a (patch)
tree37a7896b2936923c5ced244253ddadd686abee8f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent57c568a9186197622bdd24aea522519ad647d5ff (diff)
parent81cfa98f8286ef280897e6df97e6350196b8e578 (diff)
downloadrust-c8825d04008ccf60bd12f6a054d5dd903698392a.tar.gz
rust-c8825d04008ccf60bd12f6a054d5dd903698392a.zip
Rollup merge of #82360 - osa1:issue82317, r=Mark-Simulacrum
config.toml parsing error improvements

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

---

r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions