Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/core/src/clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub const unsafe trait TrivialClone: [const] Clone {}
/// Derive macro generating an impl of the trait `Clone`.
#[rustc_builtin_macro]
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow_internal_unstable(core_intrinsics, derive_clone_copy, trivial_clone)]
#[allow_internal_unstable(core_intrinsics, derive_clone_copy_internals, trivial_clone)]
pub macro Clone($item:item) {
/* compiler built-in */
}
Expand Down Expand Up @@ -350,7 +350,7 @@ impl_use_cloned! {
#[doc(hidden)]
#[allow(missing_debug_implementations)]
#[unstable(
feature = "derive_clone_copy",
feature = "derive_clone_copy_internals",
reason = "deriving hack, should not be public",
issue = "none"
)]
Expand All @@ -360,7 +360,7 @@ pub struct AssertParamIsClone<T: Clone + PointeeSized> {
#[doc(hidden)]
#[allow(missing_debug_implementations)]
#[unstable(
feature = "derive_clone_copy",
feature = "derive_clone_copy_internals",
reason = "deriving hack, should not be public",
issue = "none"
)]
Expand Down
8 changes: 6 additions & 2 deletions library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ pub const trait Eq: [const] PartialEq<Self> + PointeeSized {
/// Derive macro generating an impl of the trait [`Eq`].
#[rustc_builtin_macro]
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow_internal_unstable(core_intrinsics, derive_eq, structural_match)]
#[allow_internal_unstable(core_intrinsics, derive_eq_internals, structural_match)]
#[allow_internal_unstable(coverage_attribute)]
pub macro Eq($item:item) {
/* compiler built-in */
Expand All @@ -363,7 +363,11 @@ pub macro Eq($item:item) {
// This struct should never appear in user code.
#[doc(hidden)]
#[allow(missing_debug_implementations)]
#[unstable(feature = "derive_eq", reason = "deriving hack, should not be public", issue = "none")]
#[unstable(
feature = "derive_eq_internals",
reason = "deriving hack, should not be public",
issue = "none"
)]
pub struct AssertParamIsEq<T: Eq + PointeeSized> {
_field: crate::marker::PhantomData<T>,
}
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ pub trait Copy: Clone {
/// Derive macro generating an impl of the trait `Copy`.
#[rustc_builtin_macro]
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow_internal_unstable(core_intrinsics, derive_clone_copy)]
#[allow_internal_unstable(core_intrinsics, derive_clone_copy_internals)]
pub macro Copy($item:item) {
/* compiler built-in */
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `derive_eq`
# `derive_clone_copy_internals`

This feature is internal to the Rust compiler and is not intended for general use.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `derive_clone_copy`
# `derive_eq_internals`

This feature is internal to the Rust compiler and is not intended for general use.

Expand Down
Loading