Skip to content

128-bit integers marked as having an unknown stable ABI #78473

Open
@haraldh

Description

@haraldh

Introduced by 549dd10 128-bit integers used in e.g. extern "sysv64" produce the warning:

warning: `extern` fn uses type `u128`, which is not FFI-safe
   --> src/xxx.rs:126:6
    |
126 | ) -> u128 {
    |      ^^^^ not FFI-safe
    |
    = note: `#[warn(improper_ctypes_definitions)]` on by default
    = note: 128-bit integers don't currently have a known stable ABI

warning: 1 warning emitted

I dispute this statement by pointing to the now de facto source of the x86-64 System V ABI:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ABIArea: Concerning the application binary interface (ABI)A-FFIArea: Foreign function interface (FFI)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions