mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
4dc48db310
Greatly improve the error messages when `run-make/translation` fails Before: ``` LD_LIBRARY_PATH="/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/lib:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/deps:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0/lib" '/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/bin/rustc' --out-dir /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation -L /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation test.rs --sysroot /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot -Ztranslate-lang=zh-CN 2>&1 | grep "this is a test message" ------------------------------------------ --- stderr ------------------------------- make: *** [Makefile:51: sysroot] Error 1 ------------------------------------------ failures: [run-make] tests/run-make/translation ``` After: ``` LD_LIBRARY_PATH="/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/lib:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/deps:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0/lib" '/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/bin/rustc' --out-dir /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation -L /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation test.rs --sysroot /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot -Ztranslate-lang=zh-CN 2>&1 | grep "this is a test message" [[[ begin stdout ]]] error: failed to load fluent bundle: failed to add resource: Attempt to override an existing message: "parse_struct_literal_body_without_path". [[[ end stdout ]]] Error: cannot match: this is a test message ------------------------------------------ --- stderr ------------------------------- make: *** [Makefile:51: sysroot] Error 1 ------------------------------------------ failures: [run-make] tests/run-make/translation ``` |
||
---|---|---|
.. | ||
const_fn_mir | ||
coverage | ||
coverage-llvmir | ||
coverage-reports | ||
dep-graph | ||
dump-mono-stats | ||
emit-named-files | ||
emit-path-unhashed | ||
emit-shared-files | ||
env-dep-info | ||
export-executable-symbols | ||
fmt-write-bloat | ||
incr-foreign-head-span | ||
incr-prev-body-beyond-eof | ||
incremental-session-fail | ||
invalid-so | ||
issue-10971-temps-dir | ||
issue-36710 | ||
issue-47384 | ||
issue-71519 | ||
issue-83112-incr-test-moved-file | ||
issue-85019-moved-src-dir | ||
issue-85401-static-mir | ||
issue-85441 | ||
issue-88756-default-output | ||
issue-96498 | ||
libtest-thread-limit | ||
llvm-outputs | ||
macos-deployment-target | ||
macos-fat-archive | ||
native-link-modifier-bundle | ||
native-link-modifier-verbatim-linker | ||
native-link-modifier-verbatim-rustc | ||
native-link-modifier-whole-archive | ||
no-input-file | ||
overwrite-input | ||
pass-linker-flags | ||
pass-linker-flags-from-dep | ||
raw-dylib-alt-calling-convention | ||
raw-dylib-c | ||
raw-dylib-import-name-type | ||
raw-dylib-inline-cross-dylib | ||
raw-dylib-link-ordinal | ||
raw-dylib-stdcall-ordinal | ||
remap-path-prefix-dwarf | ||
repr128-dwarf | ||
rlib-format-packed-bundled-libs | ||
rlib-format-packed-bundled-libs-2 | ||
rlib-format-packed-bundled-libs-3 | ||
rustc-macro-dep-files | ||
rustdoc-scrape-examples-invalid-expr | ||
rustdoc-scrape-examples-multiple | ||
rustdoc-scrape-examples-ordering | ||
rustdoc-scrape-examples-remap | ||
rustdoc-scrape-examples-test | ||
rustdoc-scrape-examples-whitespace | ||
rustdoc-verify-output-files | ||
rustdoc-with-out-dir-option | ||
rustdoc-with-output-option | ||
rustdoc-with-short-out-dir-option | ||
static-pie | ||
test-benches | ||
thumb-none-cortex-m | ||
thumb-none-qemu | ||
track-path-dep-info | ||
track-pgo-dep-info | ||
translation | ||
unstable-flag-required | ||
valid-print-requests | ||
wasm-abi | ||
wasm-custom-section | ||
wasm-custom-sections-opt | ||
wasm-export-all-symbols | ||
wasm-import-module | ||
wasm-panic-small | ||
wasm-spurious-import | ||
wasm-stringify-ints-small | ||
wasm-symbols-different-module | ||
wasm-symbols-not-exported | ||
wasm-symbols-not-imported | ||
x86_64-fortanix-unknown-sgx-lvi | ||
git_clone_sha1.sh |