File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,14 @@ macro_rules! lazy_static {
104104 lazy_static!( $( $t) * ) ;
105105 } ;
106106 ( MAKE TY PUB $N: ident) => {
107+ #[ allow( missing_copy_implementations) ]
107108 #[ allow( non_camel_case_types) ]
108109 #[ allow( dead_code) ]
109110 pub struct $N { __private_field: ( ) }
110111 pub static $N: $N = $N { __private_field: ( ) } ;
111112 } ;
112113 ( MAKE TY PRIV $N: ident) => {
114+ #[ allow( missing_copy_implementations) ]
113115 #[ allow( non_camel_case_types) ]
114116 #[ allow( dead_code) ]
115117 struct $N { __private_field: ( ) }
Original file line number Diff line number Diff line change @@ -49,3 +49,8 @@ mod visibility {
4949fn test_visibility ( ) {
5050 assert_eq ! ( * visibility:: FOO , Box :: new( 0 ) ) ;
5151}
52+
53+ // This should not cause a warning about a missing Copy implementation
54+ lazy_static ! {
55+ pub static ref VAR : i32 = { 0 } ;
56+ }
You can’t perform that action at this time.
0 commit comments