Skip to content

Commit 1cc4e8c

Browse files
committed
Add unsafe to ffi_pure and ffi_const
1 parent 15f8ffe commit 1cc4e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_feature/src/builtin_attrs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
535535
),
536536

537537
gated!(
538-
ffi_pure, Normal, template!(Word), WarnFollowing,
538+
unsafe ffi_pure, Normal, template!(Word), WarnFollowing,
539539
EncodeCrossCrate::No, experimental!(ffi_pure)
540540
),
541541
gated!(
542-
ffi_const, Normal, template!(Word), WarnFollowing,
542+
unsafe ffi_const, Normal, template!(Word), WarnFollowing,
543543
EncodeCrossCrate::No, experimental!(ffi_const)
544544
),
545545
gated!(

0 commit comments

Comments
 (0)