Skip to content

libc-test panic: unsafe precondition(s) violated: hint::assert_unchecked must never be called when the condition is false #120910

Closed
JohnTitor/garando
#22
@JohnTitor

Description

@JohnTitor

libc-test now panics since 1.78.0-nightly (d44e3b95c 2024-02-09).

Code

repo: https://github.com/rust-lang/libc
example GHA run: https://github.com/rust-lang/libc/actions/runs/7852817358/job/21431727248

Not minimized yet.

gh repo clone rust-lang/libc
cd libc/libc-test
cargo test

Meta

rustc --version --verbose:

rust version 1.78.0-nightly (d44e3b95c 2024-02-09)

Error output

  thread 'main' panicked at library/core/src/panicking.rs:155:5:
  unsafe precondition(s) violated: hint::assert_unchecked must never be called when the condition is false
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  thread caused non-unwinding panic. aborting.
Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-gubCategory: the reverse of a compiler bug is generally UB

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions