Skip to content

[rust] Figure out how to bow to nightly panic=immediate-abort changes #5584

@behdad

Description

@behdad

Our rust build is broken again with latest nightly:

   Compiling libm v0.2.15
error: panic_immediate_abort is now a real panic strategy! Enable it with the compiler flags `-Zunstable-options -Cpanic=immediate-abort`
  --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:36:1
   |
36 | / compile_error!(
37 | |     "panic_immediate_abort is now a real panic strategy! \
38 | |     Enable it with the compiler flags `-Zunstable-options -Cpanic=immediate-abort`"
39 | | );
   | |_^

I haven't been able to get it to build. Trying the compiler flags that it suggests, I then get:

   Compiling libm v0.2.15
error: the crate `core` was compiled with a panic strategy which is incompatible with `immediate-abort`

Adding core to -Zbuild-std doesn't seem to make a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions