Restore error message
This commit is contained in:
parent
a7623e70d5
commit
d04f756027
@ -229,8 +229,9 @@ impl UnsafeCode {
|
|||||||
impl EarlyLintPass for UnsafeCode {
|
impl EarlyLintPass for UnsafeCode {
|
||||||
fn check_attribute(&mut self, cx: &EarlyContext, attr: &ast::Attribute) {
|
fn check_attribute(&mut self, cx: &EarlyContext, attr: &ast::Attribute) {
|
||||||
if attr.check_name("allow_internal_unsafe") {
|
if attr.check_name("allow_internal_unsafe") {
|
||||||
self.report_unsafe(cx, attr.span, "cannot use `allow_internal_unsafe` \
|
self.report_unsafe(cx, attr.span, "`allow_internal_unsafe` allows defining \
|
||||||
with `forbid(unsafe_code)`");
|
macros using unsafe without triggering \
|
||||||
|
the `unsafe_code` lint at their call site");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user