1
Fork 0

Fix build

This commit is contained in:
carbotaniuman 2024-05-21 08:37:05 -05:00
parent b82c524996
commit 87be1bae73
11 changed files with 32 additions and 32 deletions

View file

@ -317,7 +317,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
fn check_unsafe_attr(&self, attr: &Attribute) {
if !attr.is_doc_comment() {
let attr_item = attr.get_normal_item();
if let ast::Unsafe::Yes(unsafe_span) = attr_item.unsafety {
if let ast::Safety::Unsafe(unsafe_span) = attr_item.unsafety {
if !is_unsafe_attr(attr.name_or_empty()) {
self.dcx().emit_err(errors::InvalidAttrUnsafe {
span: unsafe_span,