Skip to content

Commit 6f1c6af

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent acf4842 commit 6f1c6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
21112111

21122112
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
21132113
match target {
2114-
Target::Fn | Target::Static => {}
2114+
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
21152115
_ => {
21162116
self.tcx
21172117
.dcx()

0 commit comments

Comments
 (0)