Skip to content

Commit 77773ad

Browse files
committed
Allow the drop_copy lint in some library examples
1 parent 61ff271 commit 77773ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/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)