Port #[rustc_object_lifetime_default] to the new attribute parsing infrastructure
This commit is contained in:
@@ -164,7 +164,9 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
||||
}
|
||||
Attribute::Parsed(AttributeKind::Repr(_)) => { /* handled below this loop and elsewhere */
|
||||
}
|
||||
|
||||
Attribute::Parsed(AttributeKind::RustcObjectLifetimeDefault) => {
|
||||
self.check_object_lifetime_default(hir_id);
|
||||
}
|
||||
&Attribute::Parsed(AttributeKind::PubTransparent(attr_span)) => {
|
||||
self.check_rustc_pub_transparent(attr_span, span, attrs)
|
||||
}
|
||||
@@ -303,7 +305,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
||||
[sym::no_implicit_prelude, ..] => {
|
||||
self.check_generic_attr(hir_id, attr, target, Target::Mod)
|
||||
}
|
||||
[sym::rustc_object_lifetime_default, ..] => self.check_object_lifetime_default(hir_id),
|
||||
[sym::proc_macro, ..] => {
|
||||
self.check_proc_macro(hir_id, target, ProcMacroKind::FunctionLike)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user