diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-18 10:05:11 +0200 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-08-18 10:05:11 +0200 |
| commit | d4175033f0ae85fbb9e51a03469bf227763431a4 (patch) | |
| tree | 54dbe5a6ffea5a6694af55046b6ed69348f38321 /compiler/rustc_attr_parsing | |
| parent | 425a9c0a0e365c0b8c6cfd00c2ded83a73bed9a0 (diff) | |
| download | rust-d4175033f0ae85fbb9e51a03469bf227763431a4.tar.gz rust-d4175033f0ae85fbb9e51a03469bf227763431a4.zip | |
Allow stability attributes on extern crates
Diffstat (limited to 'compiler/rustc_attr_parsing')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/attributes/stability.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/stability.rs b/compiler/rustc_attr_parsing/src/attributes/stability.rs index 5a26178f84b..c7a809d7d88 100644 --- a/compiler/rustc_attr_parsing/src/attributes/stability.rs +++ b/compiler/rustc_attr_parsing/src/attributes/stability.rs @@ -54,6 +54,7 @@ const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[ Allow(Target::Static), Allow(Target::ForeignFn), Allow(Target::ForeignStatic), + Allow(Target::ExternCrate), ]); #[derive(Default)] |
