Skip to content

Commit d59d6c0

Browse files
committed
address review feedback.
1 parent a023fdc commit d59d6c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc_lint/builtin.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,11 +2182,12 @@ impl LintPass for DropWithReprExtern {
21822182
codemap::DUMMY_SP);
21832183
ctx.span_lint(DROP_WITH_REPR_EXTERN,
21842184
drop_impl_span,
2185-
"Structs with `#[repr(C)]` attribute that \
2186-
implement Drop have extra hidden state");
2185+
"implementing Drop adds hidden state to \
2186+
types, possibly conflicting with \
2187+
the `#[repr(C)]` attribute");
21872188
ctx.span_lint(DROP_WITH_REPR_EXTERN,
21882189
self_defn_span,
2189-
"The `#[repr(C)]` attribute is attached here");
2190+
"the `#[repr(C)]` attribute is attached here");
21902191
}
21912192
}
21922193
_ => {}

0 commit comments

Comments
 (0)