Skip to content

Commit 372186d

Browse files
committed
don't encode_cross_crate rustc_objc_{class,selector}
1 parent 9dc30e4 commit 372186d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,11 +1050,11 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
10501050
),
10511051
rustc_attr!(
10521052
rustc_objc_class, Normal, template!(NameValueStr: "ClassName"), ErrorPreceding,
1053-
EncodeCrossCrate::Yes,
1053+
EncodeCrossCrate::No,
10541054
),
10551055
rustc_attr!(
10561056
rustc_objc_selector, Normal, template!(NameValueStr: "methodName"), ErrorPreceding,
1057-
EncodeCrossCrate::Yes,
1057+
EncodeCrossCrate::No,
10581058
),
10591059

10601060
// ==========================================================================

compiler/rustc_hir/src/attrs/encode_cross_crate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ impl AttributeKind {
5959
NoImplicitPrelude(..) => No,
6060
NoMangle(..) => Yes, // Needed for rustdoc
6161
NonExhaustive(..) => Yes, // Needed for rustdoc
62-
ObjcClass { .. } => Yes,
63-
ObjcSelector { .. } => Yes,
62+
ObjcClass { .. } => No,
63+
ObjcSelector { .. } => No,
6464
Optimize(..) => No,
6565
ParenSugar(..) => No,
6666
PassByValue(..) => Yes,

0 commit comments

Comments
 (0)