Skip to content

Commit 5e1451a

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent f2c4ccd commit 5e1451a

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

21722172
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
21732173
match target {
2174-
Target::Fn | Target::Static => {}
2174+
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
21752175
_ => {
21762176
self.tcx
21772177
.dcx()

0 commit comments

Comments
 (0)