check_attr: treat cfg_attr like cfg

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-08-06 04:26:37 +00:00
parent fdb64b9478
commit 97cbc2083f

View File

@ -250,6 +250,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
| sym::deny
| sym::forbid
| sym::cfg
| sym::cfg_attr
// need to be fixed
| sym::cfi_encoding // FIXME(cfi_encoding)
| sym::may_dangle // FIXME(dropck_eyepatch)