Skip to content

Commit d417503

Browse files
Allow stability attributes on extern crates
1 parent 425a9c0 commit d417503

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)