Closed
Description
(imported from improperly closed bug #18380)
As suggested by @huonw:
the
improper_ctypes
lint should check forrepr(C)
on the RHS of aDrop
impl."warning: implementing Drop changes the representation of the type, conflicting with
repr(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