Skip to content

Commit 4a03ae0

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent 5986ff0 commit 4a03ae0

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

22032203
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
22042204
match target {
2205-
Target::Fn | Target::Static => {}
2205+
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
22062206
_ => {
22072207
self.tcx
22082208
.dcx()

0 commit comments

Comments
 (0)