Skip to content

Commit df9d8b8

Browse files
committed
add a TrivialClone implementation when deriving both Clone and Copy
1 parent 335eb90 commit df9d8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ pub const unsafe trait TrivialClone: [const] Clone {}
280280
/// Derive macro generating an impl of the trait `Clone`.
281281
#[rustc_builtin_macro]
282282
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
283-
#[allow_internal_unstable(core_intrinsics, derive_clone_copy)]
283+
#[allow_internal_unstable(core_intrinsics, derive_clone_copy, trivial_clone)]
284284
pub macro Clone($item:item) {
285285
/* compiler built-in */
286286
}

0 commit comments

Comments
 (0)