Rollup merge of #145556 - JonathanBrouwer:extern-crate-stable, r=jdonszelmann

Allow stability attributes on extern crates

Fixes https://github.com/rust-lang/rust/issues/145497

r? ``@jdonszelmann``
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-08-19 19:50:03 +08:00 committed by GitHub
commit 95615916b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,7 @@ const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[
Allow(Target::Static),
Allow(Target::ForeignFn),
Allow(Target::ForeignStatic),
Allow(Target::ExternCrate),
]);
#[derive(Default)]