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 {
104
104
lazy_static!( $( $t) * ) ;
105
105
} ;
106
106
( MAKE TY PUB $N: ident) => {
107
+ #[ allow( missing_copy_implementations) ]
107
108
#[ allow( non_camel_case_types) ]
108
109
#[ allow( dead_code) ]
109
110
pub struct $N { __private_field: ( ) }
110
111
pub static $N: $N = $N { __private_field: ( ) } ;
111
112
} ;
112
113
( MAKE TY PRIV $N: ident) => {
114
+ #[ allow( missing_copy_implementations) ]
113
115
#[ allow( non_camel_case_types) ]
114
116
#[ allow( dead_code) ]
115
117
struct $N { __private_field: ( ) }
Original file line number Diff line number Diff line change @@ -49,3 +49,8 @@ mod visibility {
49
49
fn test_visibility ( ) {
50
50
assert_eq ! ( * visibility:: FOO , Box :: new( 0 ) ) ;
51
51
}
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