File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
std_detect/src/detect/os/linux Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4719,7 +4719,7 @@ pub mod tests {
47194719 let v2_v128: v128 = mem:: transmute( v2) ;
47204720 let v3_v128 = super :: $f( v1_v128, v2_v128) ;
47214721 let mut v3 = [ $( $vec1) * ] ;
4722- drop ( v3 ) ;
4722+ let _ignore = v3 ;
47234723 v3 = mem:: transmute( v3_v128) ;
47244724
47254725 for ( i, actual) in v3. iter( ) . enumerate( ) {
@@ -4746,7 +4746,7 @@ pub mod tests {
47464746 let v1_v128: v128 = mem:: transmute( v1) ;
47474747 let v2_v128 = super :: $f( v1_v128) ;
47484748 let mut v2 = [ $( $vec1) * ] ;
4749- drop ( v2 ) ;
4749+ let _ignore = v2 ;
47504750 v2 = mem:: transmute( v2_v128) ;
47514751
47524752 for ( i, actual) in v2. iter( ) . enumerate( ) {
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ pub(crate) fn auxv() -> Result<AuxVec, ()> {
109109 }
110110 }
111111 }
112- drop ( hwcap) ;
112+
113+ // Intentionnaly not used
114+ let _ = hwcap;
113115 }
114116 }
115117
@@ -251,7 +253,8 @@ fn auxv_from_buf(buf: &[usize]) -> Result<AuxVec, ()> {
251253 return Ok ( AuxVec { hwcap, hwcap2 } ) ;
252254 }
253255 }
254- drop ( buf) ;
256+ // Suppress unused variable
257+ let _ = buf;
255258 Err ( ( ) )
256259}
257260
You can’t perform that action at this time.
0 commit comments