rustc_codegen_cranelift
rustc_codegen_cranelift copied to clipboard
couple RA tests fail if built with cranelift
´rustc 1.79.0-nightly (83d0a940c 2024-04-06)´
I noticed that when I run a cargo test of rust-analyzer @ d9c29afaee6cb26044b5a605e0073fcabb2e9722
, all the tests pass, but when I use cranelift, some some of the tests fail:
RUSTFLAGS="-Zcodegen-backend=cranelift" ~/.cargo/bin/cargo +master test
failures:
consteval::tests::const_loop
consteval::tests::try_block
consteval::tests::try_operator
layout::tests::recursive
tests::regression::unsize_array_with_inference_variable
tests::simple::async_fn_and_try_operator
tests::simple::block_modifiers_smoke_test
tests::simple::recursive_type_alias
tests::traits::infer_try_block
tests::traits::infer_try_trait
tests::traits::trait_impl_self_ty_cycle
tests::traits::unselected_projection_in_trait_env_cycle_2
test result: FAILED. 753 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.25s
consteval::tests::const_loop is because of a std::panic::resume_unwind thrown on cycle errors, which because cg_clif only supports panic=abort currently can't be caught again. The other tests likely have the same issue.