-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
P-highHigh priorityHigh priority
Description
(imported from improperly closed bug #18380)
As suggested by @huonw:
the
improper_ctypeslint should check forrepr(C)on the RHS of aDropimpl."warning: implementing Drop changes the representation of the type, conflicting withrepr(C)".(It should presumably also check for
#[unsafe_no_drop_flag]and not warn if it exists.)
Until #5016 is done, we really should lint for this scenario. People have run into it
Metadata
Metadata
Assignees
Labels
P-highHigh priorityHigh priority