Skip to content

tests fail with rustc 1.86 #75

Description

@plugwash

We are currently in the process of updating rustc in Debian to 1.86. Our CI tests discovered that the new version of rustc causes the tests for rust-freetype to panic.

 46s thread 'freetype::bindgen_test_layout_FT_Bitmap_' panicked at src/freetype.rs:403:17:
 46s null pointer dereference occurred

It appears the bindings in this crate were generated with an old version of bindgen. Unfortunately the test code generated by said version of bindgen includes null pointer dereferences. Previous versions of rustc silently tolerated these (even though they were alway strictly-speaking undefined behaviour), but the new version panics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions