Port #[prelude_import] to the attribute parser

This commit is contained in:
Oscar Bray 2026-02-12 17:43:04 +00:00
parent 7ad4e69ad5
commit 8526aa5361
5 changed files with 15 additions and 1 deletions

View file

@ -282,6 +282,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
| AttributeKind::PatternComplexityLimit { .. }
| AttributeKind::PinV2(..)
| AttributeKind::Pointee(..)
| AttributeKind::PreludeImport
| AttributeKind::ProfilerRuntime
| AttributeKind::RecursionLimit { .. }
| AttributeKind::ReexportTestHarnessMain(..)
@ -394,7 +395,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
// need to be fixed
| sym::deprecated_safe // FIXME(deprecated_safe)
// internal
| sym::prelude_import
| sym::panic_handler
| sym::lang
| sym::default_lib_allocator