Skip to content

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

@pnkfelix

Description

@pnkfelix
Member

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @pnkfelix@memoryruins@asquared31415@jieyouxu@workingjubilee

        Issue actions

          Various FFI run-pass tests probably should be using `repr(C)` as lint is instructing. · Issue #53858 · rust-lang/rust