@@ -9,10 +9,13 @@ use core::ops::{
9
9
Deref , DerefMut , DerefPure , Index , IndexMut , Range , RangeFrom , RangeFull , RangeInclusive ,
10
10
RangeTo , RangeToInclusive ,
11
11
} ;
12
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
12
13
use core:: str:: FromStr ;
13
14
use core:: { fmt, hash} ;
14
15
16
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
15
17
use crate :: borrow:: { Cow , ToOwned } ;
18
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
16
19
use crate :: boxed:: Box ;
17
20
use crate :: rc:: Rc ;
18
21
use crate :: string:: String ;
@@ -185,6 +188,7 @@ impl Default for ByteString {
185
188
}
186
189
}
187
190
191
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
188
192
#[ unstable( feature = "bstr" , issue = "134915" ) ]
189
193
impl < ' a , const N : usize > From < & ' a [ u8 ; N ] > for ByteString {
190
194
#[ inline]
@@ -193,6 +197,7 @@ impl<'a, const N: usize> From<&'a [u8; N]> for ByteString {
193
197
}
194
198
}
195
199
200
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
196
201
#[ unstable( feature = "bstr" , issue = "134915" ) ]
197
202
impl < const N : usize > From < [ u8 ; N ] > for ByteString {
198
203
#[ inline]
@@ -201,6 +206,7 @@ impl<const N: usize> From<[u8; N]> for ByteString {
201
206
}
202
207
}
203
208
209
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
204
210
#[ unstable( feature = "bstr" , issue = "134915" ) ]
205
211
impl < ' a > From < & ' a [ u8 ] > for ByteString {
206
212
#[ inline]
@@ -225,6 +231,7 @@ impl From<ByteString> for Vec<u8> {
225
231
}
226
232
}
227
233
234
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
228
235
#[ unstable( feature = "bstr" , issue = "134915" ) ]
229
236
impl < ' a > From < & ' a str > for ByteString {
230
237
#[ inline]
@@ -241,6 +248,7 @@ impl From<String> for ByteString {
241
248
}
242
249
}
243
250
251
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
244
252
#[ unstable( feature = "bstr" , issue = "134915" ) ]
245
253
impl < ' a > From < & ' a ByteStr > for ByteString {
246
254
#[ inline]
@@ -249,6 +257,7 @@ impl<'a> From<&'a ByteStr> for ByteString {
249
257
}
250
258
}
251
259
260
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
252
261
#[ unstable( feature = "bstr" , issue = "134915" ) ]
253
262
impl < ' a > From < ByteString > for Cow < ' a , ByteStr > {
254
263
#[ inline]
@@ -257,6 +266,7 @@ impl<'a> From<ByteString> for Cow<'a, ByteStr> {
257
266
}
258
267
}
259
268
269
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
260
270
#[ unstable( feature = "bstr" , issue = "134915" ) ]
261
271
impl < ' a > From < & ' a ByteString > for Cow < ' a , ByteStr > {
262
272
#[ inline]
@@ -325,6 +335,7 @@ impl FromIterator<ByteString> for ByteString {
325
335
}
326
336
}
327
337
338
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
328
339
#[ unstable( feature = "bstr" , issue = "134915" ) ]
329
340
impl FromStr for ByteString {
330
341
type Err = core:: convert:: Infallible ;
@@ -482,6 +493,7 @@ impl PartialEq for ByteString {
482
493
483
494
macro_rules! impl_partial_eq_ord_cow {
484
495
( $lhs: ty, $rhs: ty) => {
496
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
485
497
#[ allow( unused_lifetimes) ]
486
498
#[ unstable( feature = "bstr" , issue = "134915" ) ]
487
499
impl <' a> PartialEq <$rhs> for $lhs {
@@ -492,6 +504,7 @@ macro_rules! impl_partial_eq_ord_cow {
492
504
}
493
505
}
494
506
507
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
495
508
#[ allow( unused_lifetimes) ]
496
509
#[ unstable( feature = "bstr" , issue = "134915" ) ]
497
510
impl <' a> PartialEq <$lhs> for $rhs {
@@ -502,6 +515,7 @@ macro_rules! impl_partial_eq_ord_cow {
502
515
}
503
516
}
504
517
518
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
505
519
#[ allow( unused_lifetimes) ]
506
520
#[ unstable( feature = "bstr" , issue = "134915" ) ]
507
521
impl <' a> PartialOrd <$rhs> for $lhs {
@@ -512,6 +526,7 @@ macro_rules! impl_partial_eq_ord_cow {
512
526
}
513
527
}
514
528
529
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
515
530
#[ allow( unused_lifetimes) ]
516
531
#[ unstable( feature = "bstr" , issue = "134915" ) ]
517
532
impl <' a> PartialOrd <$lhs> for $rhs {
@@ -562,6 +577,7 @@ impl PartialOrd for ByteString {
562
577
}
563
578
}
564
579
580
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
565
581
#[ unstable( feature = "bstr" , issue = "134915" ) ]
566
582
impl ToOwned for ByteStr {
567
583
type Owned = ByteString ;
@@ -594,6 +610,7 @@ impl<'a> TryFrom<&'a ByteString> for &'a str {
594
610
595
611
// Additional impls for `ByteStr` that require types from `alloc`:
596
612
613
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
597
614
#[ unstable( feature = "bstr" , issue = "134915" ) ]
598
615
impl Clone for Box < ByteStr > {
599
616
#[ inline]
@@ -602,6 +619,7 @@ impl Clone for Box<ByteStr> {
602
619
}
603
620
}
604
621
622
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
605
623
#[ unstable( feature = "bstr" , issue = "134915" ) ]
606
624
impl < ' a > From < & ' a ByteStr > for Cow < ' a , ByteStr > {
607
625
#[ inline]
@@ -610,6 +628,7 @@ impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr> {
610
628
}
611
629
}
612
630
631
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
613
632
#[ unstable( feature = "bstr" , issue = "134915" ) ]
614
633
impl From < Box < [ u8 ] > > for Box < ByteStr > {
615
634
#[ inline]
@@ -619,6 +638,7 @@ impl From<Box<[u8]>> for Box<ByteStr> {
619
638
}
620
639
}
621
640
641
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
622
642
#[ unstable( feature = "bstr" , issue = "134915" ) ]
623
643
impl From < Box < ByteStr > > for Box < [ u8 ] > {
624
644
#[ inline]
0 commit comments