From: Yuki Okushi Date: Tue, 15 Jan 2019 09:01:38 +0000 (+0900) Subject: Restore error message X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d04f7560275ab61ff4b5049ea64599d79a052509;p=rust.git Restore error message --- diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 6cd632321cc..50631a74fe6 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -229,8 +229,9 @@ fn report_unsafe(&self, cx: &EarlyContext, span: Span, desc: &'static str) { impl EarlyLintPass for UnsafeCode { fn check_attribute(&mut self, cx: &EarlyContext, attr: &ast::Attribute) { if attr.check_name("allow_internal_unsafe") { - self.report_unsafe(cx, attr.span, "cannot use `allow_internal_unsafe` \ - with `forbid(unsafe_code)`"); + self.report_unsafe(cx, attr.span, "`allow_internal_unsafe` allows defining \ + macros using unsafe without triggering \ + the `unsafe_code` lint at their call site"); } }