Skip to content

Commit 933c761

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent 3378a5e commit 933c761

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
@@ -2113,7 +2113,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
21132113

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

0 commit comments

Comments
 (0)