We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7623e7 commit d04f756Copy full SHA for d04f756
src/librustc_lint/builtin.rs
@@ -229,8 +229,9 @@ impl UnsafeCode {
229
impl EarlyLintPass for UnsafeCode {
230
fn check_attribute(&mut self, cx: &EarlyContext, attr: &ast::Attribute) {
231
if attr.check_name("allow_internal_unsafe") {
232
- self.report_unsafe(cx, attr.span, "cannot use `allow_internal_unsafe` \
233
- with `forbid(unsafe_code)`");
+ self.report_unsafe(cx, attr.span, "`allow_internal_unsafe` allows defining \
+ macros using unsafe without triggering \
234
+ the `unsafe_code` lint at their call site");
235
}
236
237
0 commit comments