-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)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 rustcP-mediumMedium priorityMedium priorityS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.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 code hits the lint that warns about trying to put #[repr(C)]
on an empty struct.
rust/src/test/run-pass/extern-pass-empty.rs
Lines 33 to 34 in c2afca3
#[repr(C)] | |
struct Empty; |
(This seems like a bogus test that was caught by working on fixing #53764.)
Metadata
Metadata
Assignees
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)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 rustcP-mediumMedium priorityMedium priorityS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.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.