@@ -98,7 +98,7 @@ fn test_aio_cancel_all() {
98
98
#[ test]
99
99
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
100
100
fn test_fsync ( ) {
101
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
101
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
102
102
let mut f = tempfile ( ) . unwrap ( ) ;
103
103
f. write_all ( INITIAL ) . unwrap ( ) ;
104
104
let mut aiocb = AioCb :: from_fd ( f. as_raw_fd ( ) ,
@@ -119,7 +119,7 @@ fn test_fsync() {
119
119
fn test_fsync_error ( ) {
120
120
use std:: mem;
121
121
122
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
122
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
123
123
// Create an invalid AioFsyncMode
124
124
let mode = unsafe { mem:: transmute ( 666 ) } ;
125
125
let mut f = tempfile ( ) . unwrap ( ) ;
@@ -134,8 +134,8 @@ fn test_fsync_error() {
134
134
#[ test]
135
135
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
136
136
fn test_aio_suspend ( ) {
137
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
138
- const WBUF : & ' static [ u8 ] = b"CDEF" ;
137
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
138
+ const WBUF : & [ u8 ] = b"CDEF" ;
139
139
let timeout = TimeSpec :: seconds ( 10 ) ;
140
140
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
141
141
let mut f = tempfile ( ) . unwrap ( ) ;
@@ -176,9 +176,9 @@ fn test_aio_suspend() {
176
176
#[ test]
177
177
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
178
178
fn test_read ( ) {
179
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
179
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
180
180
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
181
- const EXPECT : & ' static [ u8 ] = b"cdef" ;
181
+ const EXPECT : & [ u8 ] = b"cdef" ;
182
182
let mut f = tempfile ( ) . unwrap ( ) ;
183
183
f. write_all ( INITIAL ) . unwrap ( ) ;
184
184
{
@@ -205,7 +205,7 @@ fn test_read() {
205
205
#[ test]
206
206
#[ cfg( any( target_os = "freebsd" , target_os = "macos" ) ) ]
207
207
fn test_read_error ( ) {
208
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
208
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
209
209
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
210
210
let mut f = tempfile ( ) . unwrap ( ) ;
211
211
f. write_all ( INITIAL ) . unwrap ( ) ;
@@ -222,9 +222,9 @@ fn test_read_error() {
222
222
#[ test]
223
223
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
224
224
fn test_read_into_mut_slice ( ) {
225
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
225
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
226
226
let mut rbuf = vec ! [ 0 ; 4 ] ;
227
- const EXPECT : & ' static [ u8 ] = b"cdef" ;
227
+ const EXPECT : & [ u8 ] = b"cdef" ;
228
228
let mut f = tempfile ( ) . unwrap ( ) ;
229
229
f. write_all ( INITIAL ) . unwrap ( ) ;
230
230
{
@@ -267,10 +267,10 @@ fn test_read_immutable_buffer() {
267
267
#[ test]
268
268
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
269
269
fn test_write ( ) {
270
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
270
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
271
271
let wbuf = "CDEF" . to_string ( ) . into_bytes ( ) ;
272
272
let mut rbuf = Vec :: new ( ) ;
273
- const EXPECT : & ' static [ u8 ] = b"abCDEF123456" ;
273
+ const EXPECT : & [ u8 ] = b"abCDEF123456" ;
274
274
275
275
let mut f = tempfile ( ) . unwrap ( ) ;
276
276
f. write_all ( INITIAL ) . unwrap ( ) ;
@@ -330,10 +330,10 @@ fn test_write_sigev_signal() {
330
330
SIGNALED . store ( false , Ordering :: Relaxed ) ;
331
331
unsafe { sigaction ( Signal :: SIGUSR2 , & sa) } . unwrap ( ) ;
332
332
333
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
334
- const WBUF : & ' static [ u8 ] = b"CDEF" ;
333
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
334
+ const WBUF : & [ u8 ] = b"CDEF" ;
335
335
let mut rbuf = Vec :: new ( ) ;
336
- const EXPECT : & ' static [ u8 ] = b"abCDEF123456" ;
336
+ const EXPECT : & [ u8 ] = b"abCDEF123456" ;
337
337
338
338
let mut f = tempfile ( ) . unwrap ( ) ;
339
339
f. write_all ( INITIAL ) . unwrap ( ) ;
@@ -364,11 +364,11 @@ fn test_write_sigev_signal() {
364
364
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
365
365
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
366
366
fn test_lio_listio_wait ( ) {
367
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
368
- const WBUF : & ' static [ u8 ] = b"CDEF" ;
367
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
368
+ const WBUF : & [ u8 ] = b"CDEF" ;
369
369
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
370
370
let mut rbuf2 = Vec :: new ( ) ;
371
- const EXPECT : & ' static [ u8 ] = b"abCDEF123456" ;
371
+ const EXPECT : & [ u8 ] = b"abCDEF123456" ;
372
372
let mut f = tempfile ( ) . unwrap ( ) ;
373
373
374
374
f. write_all ( INITIAL ) . unwrap ( ) ;
@@ -407,11 +407,11 @@ fn test_lio_listio_wait() {
407
407
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
408
408
#[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
409
409
fn test_lio_listio_nowait ( ) {
410
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
411
- const WBUF : & ' static [ u8 ] = b"CDEF" ;
410
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
411
+ const WBUF : & [ u8 ] = b"CDEF" ;
412
412
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
413
413
let mut rbuf2 = Vec :: new ( ) ;
414
- const EXPECT : & ' static [ u8 ] = b"abCDEF123456" ;
414
+ const EXPECT : & [ u8 ] = b"abCDEF123456" ;
415
415
let mut f = tempfile ( ) . unwrap ( ) ;
416
416
417
417
f. write_all ( INITIAL ) . unwrap ( ) ;
@@ -455,11 +455,11 @@ fn test_lio_listio_nowait() {
455
455
fn test_lio_listio_signal ( ) {
456
456
#[ allow( unused_variables) ]
457
457
let m = :: SIGNAL_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
458
- const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
459
- const WBUF : & ' static [ u8 ] = b"CDEF" ;
458
+ const INITIAL : & [ u8 ] = b"abcdef123456" ;
459
+ const WBUF : & [ u8 ] = b"CDEF" ;
460
460
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
461
461
let mut rbuf2 = Vec :: new ( ) ;
462
- const EXPECT : & ' static [ u8 ] = b"abCDEF123456" ;
462
+ const EXPECT : & [ u8 ] = b"abCDEF123456" ;
463
463
let mut f = tempfile ( ) . unwrap ( ) ;
464
464
let sa = SigAction :: new ( SigHandler :: Handler ( sigfunc) ,
465
465
SaFlags :: SA_RESETHAND ,
0 commit comments