-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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 TwoU16s { |
pub struct TwoU32s { |
pub struct TwoU64s { |
pub struct TwoU8s { |
pub struct S { |
rust/src/test/run-pass/issue-3656.rs
Line 23 in c2afca3
pub struct KEYGEN { |
rust/src/test/run-pass/issue-5754.rs
Line 13 in c2afca3
struct TwoDoubles { |
rust/src/test/run-pass/issue-6470.rs
Line 14 in c2afca3
pub struct Foo { |
(I'm just filing this ticket so I have something to point at from a PR for #53764.)
Metadata
Metadata
Assignees
Labels
A-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.