Skip to content

Commit 8a0b538

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent 8a1f803 commit 8a0b538

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

21352135
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
21362136
match target {
2137-
Target::Fn | Target::Static => {}
2137+
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
21382138
_ => {
21392139
self.tcx
21402140
.dcx()

0 commit comments

Comments
 (0)