@@ -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 ;
@@ -202,6 +205,7 @@ impl Default for ByteString {
202
205
}
203
206
}
204
207
208
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
205
209
#[ unstable( feature = "bstr" , issue = "134915" ) ]
206
210
impl < ' a , const N : usize > From < & ' a [ u8 ; N ] > for ByteString {
207
211
#[ inline]
@@ -210,6 +214,7 @@ impl<'a, const N: usize> From<&'a [u8; N]> for ByteString {
210
214
}
211
215
}
212
216
217
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
213
218
#[ unstable( feature = "bstr" , issue = "134915" ) ]
214
219
impl < const N : usize > From < [ u8 ; N ] > for ByteString {
215
220
#[ inline]
@@ -218,6 +223,7 @@ impl<const N: usize> From<[u8; N]> for ByteString {
218
223
}
219
224
}
220
225
226
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
221
227
#[ unstable( feature = "bstr" , issue = "134915" ) ]
222
228
impl < ' a > From < & ' a [ u8 ] > for ByteString {
223
229
#[ inline]
@@ -242,6 +248,7 @@ impl From<ByteString> for Vec<u8> {
242
248
}
243
249
}
244
250
251
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
245
252
#[ unstable( feature = "bstr" , issue = "134915" ) ]
246
253
impl < ' a > From < & ' a str > for ByteString {
247
254
#[ inline]
@@ -258,6 +265,7 @@ impl From<String> for ByteString {
258
265
}
259
266
}
260
267
268
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
261
269
#[ unstable( feature = "bstr" , issue = "134915" ) ]
262
270
impl < ' a > From < & ' a ByteStr > for ByteString {
263
271
#[ inline]
@@ -266,6 +274,7 @@ impl<'a> From<&'a ByteStr> for ByteString {
266
274
}
267
275
}
268
276
277
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
269
278
#[ unstable( feature = "bstr" , issue = "134915" ) ]
270
279
impl < ' a > From < ByteString > for Cow < ' a , ByteStr > {
271
280
#[ inline]
@@ -274,6 +283,7 @@ impl<'a> From<ByteString> for Cow<'a, ByteStr> {
274
283
}
275
284
}
276
285
286
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
277
287
#[ unstable( feature = "bstr" , issue = "134915" ) ]
278
288
impl < ' a > From < & ' a ByteString > for Cow < ' a , ByteStr > {
279
289
#[ inline]
@@ -342,6 +352,7 @@ impl FromIterator<ByteString> for ByteString {
342
352
}
343
353
}
344
354
355
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
345
356
#[ unstable( feature = "bstr" , issue = "134915" ) ]
346
357
impl FromStr for ByteString {
347
358
type Err = core:: convert:: Infallible ;
@@ -499,6 +510,7 @@ impl PartialEq for ByteString {
499
510
500
511
macro_rules! impl_partial_eq_ord_cow {
501
512
( $lhs: ty, $rhs: ty) => {
513
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
502
514
#[ allow( unused_lifetimes) ]
503
515
#[ unstable( feature = "bstr" , issue = "134915" ) ]
504
516
impl <' a> PartialEq <$rhs> for $lhs {
@@ -509,6 +521,7 @@ macro_rules! impl_partial_eq_ord_cow {
509
521
}
510
522
}
511
523
524
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
512
525
#[ allow( unused_lifetimes) ]
513
526
#[ unstable( feature = "bstr" , issue = "134915" ) ]
514
527
impl <' a> PartialEq <$lhs> for $rhs {
@@ -519,6 +532,7 @@ macro_rules! impl_partial_eq_ord_cow {
519
532
}
520
533
}
521
534
535
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
522
536
#[ allow( unused_lifetimes) ]
523
537
#[ unstable( feature = "bstr" , issue = "134915" ) ]
524
538
impl <' a> PartialOrd <$rhs> for $lhs {
@@ -529,6 +543,7 @@ macro_rules! impl_partial_eq_ord_cow {
529
543
}
530
544
}
531
545
546
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
532
547
#[ allow( unused_lifetimes) ]
533
548
#[ unstable( feature = "bstr" , issue = "134915" ) ]
534
549
impl <' a> PartialOrd <$lhs> for $rhs {
@@ -571,6 +586,7 @@ impl PartialOrd for ByteString {
571
586
}
572
587
}
573
588
589
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
574
590
#[ unstable( feature = "bstr" , issue = "134915" ) ]
575
591
impl ToOwned for ByteStr {
576
592
type Owned = ByteString ;
@@ -603,6 +619,7 @@ impl<'a> TryFrom<&'a ByteString> for &'a str {
603
619
604
620
// Additional impls for `ByteStr` that require types from `alloc`:
605
621
622
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
606
623
#[ unstable( feature = "bstr" , issue = "134915" ) ]
607
624
impl Clone for Box < ByteStr > {
608
625
#[ inline]
@@ -611,6 +628,7 @@ impl Clone for Box<ByteStr> {
611
628
}
612
629
}
613
630
631
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
614
632
#[ unstable( feature = "bstr" , issue = "134915" ) ]
615
633
impl < ' a > From < & ' a ByteStr > for Cow < ' a , ByteStr > {
616
634
#[ inline]
@@ -619,6 +637,7 @@ impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr> {
619
637
}
620
638
}
621
639
640
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
622
641
#[ unstable( feature = "bstr" , issue = "134915" ) ]
623
642
impl From < Box < [ u8 ] > > for Box < ByteStr > {
624
643
#[ inline]
@@ -628,6 +647,7 @@ impl From<Box<[u8]>> for Box<ByteStr> {
628
647
}
629
648
}
630
649
650
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
631
651
#[ unstable( feature = "bstr" , issue = "134915" ) ]
632
652
impl From < Box < ByteStr > > for Box < [ u8 ] > {
633
653
#[ inline]
0 commit comments