Skip to content

Commit f3a589a

Browse files
committed
Make built-in derives opaque macros
1 parent c22ba27 commit f3a589a

File tree

7 files changed

+0
-11
lines changed

7 files changed

+0
-11
lines changed

src/libcore/clone.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ pub trait Clone : Sized {
136136
/// Derive macro generating an impl of the trait `Clone`.
137137
#[cfg(not(bootstrap))]
138138
#[rustc_builtin_macro]
139-
#[rustc_macro_transparency = "semitransparent"]
140139
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
141140
#[allow_internal_unstable(core_intrinsics, derive_clone_copy)]
142141
pub macro Clone($item:item) { /* compiler built-in */ }

src/libcore/cmp.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ pub trait PartialEq<Rhs: ?Sized = Self> {
203203
/// Derive macro generating an impl of the trait `PartialEq`.
204204
#[cfg(not(bootstrap))]
205205
#[rustc_builtin_macro]
206-
#[rustc_macro_transparency = "semitransparent"]
207206
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
208207
#[allow_internal_unstable(core_intrinsics)]
209208
pub macro PartialEq($item:item) { /* compiler built-in */ }
@@ -267,7 +266,6 @@ pub trait Eq: PartialEq<Self> {
267266
/// Derive macro generating an impl of the trait `Eq`.
268267
#[cfg(not(bootstrap))]
269268
#[rustc_builtin_macro]
270-
#[rustc_macro_transparency = "semitransparent"]
271269
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
272270
#[allow_internal_unstable(core_intrinsics, derive_eq)]
273271
pub macro Eq($item:item) { /* compiler built-in */ }
@@ -619,7 +617,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
619617
/// Derive macro generating an impl of the trait `Ord`.
620618
#[cfg(not(bootstrap))]
621619
#[rustc_builtin_macro]
622-
#[rustc_macro_transparency = "semitransparent"]
623620
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
624621
#[allow_internal_unstable(core_intrinsics)]
625622
pub macro Ord($item:item) { /* compiler built-in */ }
@@ -869,7 +866,6 @@ pub trait PartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> {
869866
/// Derive macro generating an impl of the trait `PartialOrd`.
870867
#[cfg(not(bootstrap))]
871868
#[rustc_builtin_macro]
872-
#[rustc_macro_transparency = "semitransparent"]
873869
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
874870
#[allow_internal_unstable(core_intrinsics)]
875871
pub macro PartialOrd($item:item) { /* compiler built-in */ }

src/libcore/default.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ pub trait Default: Sized {
118118
/// Derive macro generating an impl of the trait `Default`.
119119
#[cfg(not(bootstrap))]
120120
#[rustc_builtin_macro]
121-
#[rustc_macro_transparency = "semitransparent"]
122121
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
123122
#[allow_internal_unstable(core_intrinsics)]
124123
pub macro Default($item:item) { /* compiler built-in */ }

src/libcore/fmt/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,6 @@ pub trait Debug {
550550
pub(crate) mod macros {
551551
/// Derive macro generating an impl of the trait `Debug`.
552552
#[rustc_builtin_macro]
553-
#[rustc_macro_transparency = "semitransparent"]
554553
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
555554
#[allow_internal_unstable(core_intrinsics)]
556555
pub macro Debug($item:item) { /* compiler built-in */ }

src/libcore/hash/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ pub trait Hash {
203203
pub(crate) mod macros {
204204
/// Derive macro generating an impl of the trait `Hash`.
205205
#[rustc_builtin_macro]
206-
#[rustc_macro_transparency = "semitransparent"]
207206
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
208207
#[allow_internal_unstable(core_intrinsics)]
209208
pub macro Hash($item:item) { /* compiler built-in */ }

src/libcore/macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,14 +1305,12 @@ pub(crate) mod builtin {
13051305

13061306
/// Unstable implementation detail of the `rustc` compiler, do not use.
13071307
#[rustc_builtin_macro]
1308-
#[rustc_macro_transparency = "semitransparent"]
13091308
#[stable(feature = "rust1", since = "1.0.0")]
13101309
#[allow_internal_unstable(core_intrinsics, libstd_sys_internals)]
13111310
pub macro RustcDecodable($item:item) { /* compiler built-in */ }
13121311

13131312
/// Unstable implementation detail of the `rustc` compiler, do not use.
13141313
#[rustc_builtin_macro]
1315-
#[rustc_macro_transparency = "semitransparent"]
13161314
#[stable(feature = "rust1", since = "1.0.0")]
13171315
#[allow_internal_unstable(core_intrinsics)]
13181316
pub macro RustcEncodable($item:item) { /* compiler built-in */ }

src/libcore/marker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ pub trait Copy : Clone {
291291
/// Derive macro generating an impl of the trait `Copy`.
292292
#[cfg(not(bootstrap))]
293293
#[rustc_builtin_macro]
294-
#[rustc_macro_transparency = "semitransparent"]
295294
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
296295
#[allow_internal_unstable(core_intrinsics, derive_clone_copy)]
297296
pub macro Copy($item:item) { /* compiler built-in */ }

0 commit comments

Comments
 (0)