diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-01-15 18:01:38 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-01-15 18:01:38 +0900 |
| commit | d04f7560275ab61ff4b5049ea64599d79a052509 (patch) | |
| tree | 851c5b4bc4efcb84b92d557e7eb065ad11c11275 /src | |
| parent | a7623e70d5d3f27293483b0d609d7c446f3499f7 (diff) | |
| download | rust-d04f7560275ab61ff4b5049ea64599d79a052509.tar.gz rust-d04f7560275ab61ff4b5049ea64599d79a052509.zip | |
Restore error message
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_lint/builtin.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ impl UnsafeCode { 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"); } } |
