Emit warning while outputs is not exe and prints linkage info by xizheyin · Pull Request #138139 · rust-lang/rust (original) (raw)
It seems that adding warnings introduces some problem. Does it matter that once a warning is added it will cause this test to fail, does it affect the consistency of the results? @jieyouxu
error in revision `native_static_libs`: 1 unexpected errors found, 0 expected errors not found
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/home/nju/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/home/nju/rust/tests/ui/print-request/stability.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/nju/.cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/nju/rust/vendor" "--sysroot" "/home/nju/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--cfg" "native_static_libs" "--check-cfg" "cfg(test,FALSE,all_target_specs_json,crate_root_lint_levels,check_cfg,supported_crate_types,target_spec_json,calling_conventions,cfg,code_models,crate_name,deployment_target,file_names,host_tuple,link_args,native_static_libs,relocation_models,split_debuginfo,stack_protector_strategies,target_cpus,target_features,target_libdir,target_list,tls_models)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/home/nju/rust/build/x86_64-unknown-linux-gnu/test/ui/print-request/stability.native_static_libs" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/nju/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--print=native-static-libs"
--- unexpected errors (from JSON output) ---
WARNline ?: ?:?: ?:?: skipping link step due to conflict: cannot output linkage information without emitting link
---
In this test all three args are used at the same time
--print native-static-libs --crate-type staticlib --emit=metadata