Skip to content

Tracking bug for RFC 18 - undefined struct layout #14309

@brson

Description

@brson
Contributor

rust-lang/rfcs#79

Nominating.

Activity

changed the title [-]Tracking buf for RFC 18 - undefined struct layout[/-] [+]Tracking bug for RFC 18 - undefined struct layout[/+] on May 21, 2014
pcwalton

pcwalton commented on May 22, 2014

@pcwalton
Contributor

What exactly is the action needed here? Add the lint, or something else?

pnkfelix

pnkfelix commented on May 22, 2014

@pnkfelix
Member

Action items:

  • add a lint,
    change any docs that say struct layout is defined by default,
    ensure we have support for repr(c) attribute on structs
pnkfelix

pnkfelix commented on May 22, 2014

@pnkfelix
Member

P-backcompat-lang, 1.0.

added this to the 1.0 milestone on May 22, 2014
emberian

emberian commented on May 22, 2014

@emberian
Member

Taking this. I'll add a lint for using non-#[repr(C)] structs in FFI, transitively, as well as adding a separate codepath through trans that makes sure such structs have a C-compatible ABI.

self-assigned this
on May 22, 2014
lilyball

lilyball commented on Jun 23, 2014

@lilyball
Contributor

Due to the dead_code lint now changing behavior in the presence of #[repr(C)], I'd really like to see the FFI lint done sooner rather than later, even if nothing else is done yet.

emberian

emberian commented on Jul 24, 2014

@emberian
Member

In progress patch: https://github.com/cmr/rust/tree/struct-undef-repr
Basically done, not sure if bug in my code or in the libunwind bindings but #12201 is needed to make errors caused by this not eye-bleeding-awful to debug.

added a commit that references this issue on Aug 14, 2014
5501f79
added a commit that references this issue on Feb 1, 2021
added a commit that references this issue on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @lilyball@brson@pcwalton@pnkfelix@emberian

    Issue actions

      Tracking bug for RFC 18 - undefined struct layout · Issue #14309 · rust-lang/rust