Uh oh!
There was an error while loading. Please reload this page.
Lint: warn when mixing #[repr(C)] with Drop - #24935
Conversation
rust-highfive
commented
Apr 29, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
I believe we generally start compiler messages with a lower case.
There was a problem hiding this comment.
I wonder if this message could also be rephrased slightly, maybe:
implementing
Dropadds hidden state to a struct, possibly conflicting with the#[repr(C)]attribute
There was a problem hiding this comment.
I didn't like the fact that I was referring solely to "structs" anyway, when this is slightly more general than that. So, that's fixed now. :)
alexcrichton
commented
Apr 29, 2015
Just a few minor nits, otherwise r=me though. Thanks @pnkfelix! |
THis includes tests for struct and enum. (I suspect the closure case is actually unreachable, but i see no harm in including it.)
pnkfelix
commented
Apr 29, 2015
Lint: warn when mixing `#[repr(C)]` with Drop Fixrust-lang#24585
pnkfelix
commented
Apr 30, 2015
triage: beta-nominated |
pnkfelix
commented
Apr 30, 2015
accepted for backport to beta channel. (this is special case for 1.0; post 1.0 a change like this might need stronger motivation...) |
brson
commented
Apr 30, 2015
Backported. |
Lint: warn when mixing
#[repr(C)]with DropFix#24585