Skip to content

Commit 9c778f2

Browse files
committed
Declare #[rustc_pub_transparent] attribute
1 parent 0f422eb commit 9c778f2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,11 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
641641
ErrorFollowing, EncodeCrossCrate::Yes,
642642
"rustc_deprecated_safe_2024 is supposed to be used in libstd only",
643643
),
644+
rustc_attr!(
645+
rustc_pub_transparent, Normal, template!(Word),
646+
WarnFollowing, EncodeCrossCrate::Yes,
647+
"rustc_pub_transparent is supposed to be used in libstd only",
648+
),
644649

645650

646651
// ==========================================================================

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ symbols! {
16721672
rustc_private,
16731673
rustc_proc_macro_decls,
16741674
rustc_promotable,
1675+
rustc_pub_transparent,
16751676
rustc_reallocator,
16761677
rustc_regions,
16771678
rustc_reservation_impl,

0 commit comments

Comments
 (0)