Skip to content

Commit c296c9c

Browse files
committed
Allow the drop_copy lint in some library examples
1 parent 72cc56d commit c296c9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/mem/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
968968
/// Integers and other types implementing [`Copy`] are unaffected by `drop`.
969969
///
970970
/// ```
971+
/// # #![cfg_attr(not(bootstrap), allow(drop_copy))]
971972
/// #[derive(Copy, Clone)]
972973
/// struct Foo(u8);
973974
///

0 commit comments

Comments
 (0)