Skip to content

Commit d04f756

Browse files
committed
Restore error message
1 parent a7623e7 commit d04f756

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_lint/builtin.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ impl UnsafeCode {
229229
impl EarlyLintPass for UnsafeCode {
230230
fn check_attribute(&mut self, cx: &EarlyContext, attr: &ast::Attribute) {
231231
if attr.check_name("allow_internal_unsafe") {
232-
self.report_unsafe(cx, attr.span, "cannot use `allow_internal_unsafe` \
233-
with `forbid(unsafe_code)`");
232+
self.report_unsafe(cx, attr.span, "`allow_internal_unsafe` allows defining \
233+
macros using unsafe without triggering \
234+
the `unsafe_code` lint at their call site");
234235
}
235236
}
236237

0 commit comments

Comments
 (0)