Skip to content

Commit 98b9d02

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent 9c67cec commit 98b9d02

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

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

0 commit comments

Comments
 (0)