1
Fork 0

New #[rustc_pub_transparent] attribute

This commit is contained in:
Pavel Grigorenko 2024-08-24 19:44:12 +03:00
parent f167efad2f
commit b9033bdd92
11 changed files with 86 additions and 0 deletions

View file

@ -641,6 +641,11 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
ErrorFollowing, EncodeCrossCrate::Yes,
"rustc_deprecated_safe_2024 is supposed to be used in libstd only",
),
rustc_attr!(
rustc_pub_transparent, Normal, template!(Word),
WarnFollowing, EncodeCrossCrate::Yes,
"used internally to mark types with a `transparent` representation when it is guaranteed by the documentation",
),
// ==========================================================================