Skip to content

Various FFI run-pass tests probably should be using repr(C) as lint is instructing. #53858

Open
@pnkfelix

Description

@pnkfelix

The following run-pass tests cause the improper_ctypes lint to fire. It would probably be fine (and trivial) to add #[repr(C)] to them.

pub struct TwoU16s {

pub struct TwoU32s {

pub struct TwoU64s {

pub struct TwoU8s {






pub struct KEYGEN {

struct TwoDoubles {

pub struct Foo {

(I'm just filing this ticket so I have something to point at from a PR for #53764.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-reprArea: the `#[repr(stuff)]` attributeA-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions