Skip to content

Commit 0c48729

Browse files
committed
Allow #[rustc_std_internal_symbol] on foreign items
1 parent 2975a21 commit 0c48729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
20912091
target: Target,
20922092
) -> bool {
20932093
match target {
2094-
Target::Fn | Target::Static => true,
2094+
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => true,
20952095
_ => {
20962096
self.tcx
20972097
.dcx()

0 commit comments

Comments
 (0)