Skip to content

Commit 9561591

Browse files
authored
Rollup merge of #145556 - JonathanBrouwer:extern-crate-stable, r=jdonszelmann
Allow stability attributes on extern crates Fixes #145497 r? ``@jdonszelmann``
2 parents e462a7d + d417503 commit 9561591

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_attr_parsing/src/attributes/stability.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[
5454
Allow(Target::Static),
5555
Allow(Target::ForeignFn),
5656
Allow(Target::ForeignStatic),
57+
Allow(Target::ExternCrate),
5758
]);
5859

5960
#[derive(Default)]

0 commit comments

Comments
 (0)