Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couple RA tests fail if built with cranelift #1479

Open
matthiaskrgr opened this issue Apr 6, 2024 · 1 comment
Open

couple RA tests fail if built with cranelift #1479

matthiaskrgr opened this issue Apr 6, 2024 · 1 comment
Labels
A-unwind Area: Unwinding

Comments

@matthiaskrgr
Copy link
Member

´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
@bjorn3
Copy link
Member

bjorn3 commented Apr 6, 2024

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.

@bjorn3 bjorn3 added the A-unwind Area: Unwinding label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-unwind Area: Unwinding
Projects
None yet
Development

No branches or pull requests

2 participants