@@ -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 ;
@@ -204,6 +207,7 @@ impl Default for ByteString {
204
207
}
205
208
}
206
209
210
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
207
211
#[ unstable( feature = "bstr" , issue = "134915" ) ]
208
212
impl < ' a , const N : usize > From < & ' a [ u8 ; N ] > for ByteString {
209
213
#[ inline]
@@ -212,6 +216,7 @@ impl<'a, const N: usize> From<&'a [u8; N]> for ByteString {
212
216
}
213
217
}
214
218
219
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
215
220
#[ unstable( feature = "bstr" , issue = "134915" ) ]
216
221
impl < const N : usize > From < [ u8 ; N ] > for ByteString {
217
222
#[ inline]
@@ -220,6 +225,7 @@ impl<const N: usize> From<[u8; N]> for ByteString {
220
225
}
221
226
}
222
227
228
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
223
229
#[ unstable( feature = "bstr" , issue = "134915" ) ]
224
230
impl < ' a > From < & ' a [ u8 ] > for ByteString {
225
231
#[ inline]
@@ -244,6 +250,7 @@ impl From<ByteString> for Vec<u8> {
244
250
}
245
251
}
246
252
253
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
247
254
#[ unstable( feature = "bstr" , issue = "134915" ) ]
248
255
impl < ' a > From < & ' a str > for ByteString {
249
256
#[ inline]
@@ -260,6 +267,7 @@ impl From<String> for ByteString {
260
267
}
261
268
}
262
269
270
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
263
271
#[ unstable( feature = "bstr" , issue = "134915" ) ]
264
272
impl < ' a > From < & ' a ByteStr > for ByteString {
265
273
#[ inline]
@@ -268,6 +276,7 @@ impl<'a> From<&'a ByteStr> for ByteString {
268
276
}
269
277
}
270
278
279
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
271
280
#[ unstable( feature = "bstr" , issue = "134915" ) ]
272
281
impl < ' a > From < ByteString > for Cow < ' a , ByteStr > {
273
282
#[ inline]
@@ -276,6 +285,7 @@ impl<'a> From<ByteString> for Cow<'a, ByteStr> {
276
285
}
277
286
}
278
287
288
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
279
289
#[ unstable( feature = "bstr" , issue = "134915" ) ]
280
290
impl < ' a > From < & ' a ByteString > for Cow < ' a , ByteStr > {
281
291
#[ inline]
@@ -344,6 +354,7 @@ impl FromIterator<ByteString> for ByteString {
344
354
}
345
355
}
346
356
357
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
347
358
#[ unstable( feature = "bstr" , issue = "134915" ) ]
348
359
impl FromStr for ByteString {
349
360
type Err = core:: convert:: Infallible ;
@@ -501,6 +512,7 @@ impl PartialEq for ByteString {
501
512
502
513
macro_rules! impl_partial_eq_ord_cow {
503
514
( $lhs: ty, $rhs: ty) => {
515
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
504
516
#[ allow( unused_lifetimes) ]
505
517
#[ unstable( feature = "bstr" , issue = "134915" ) ]
506
518
impl <' a> PartialEq <$rhs> for $lhs {
@@ -511,6 +523,7 @@ macro_rules! impl_partial_eq_ord_cow {
511
523
}
512
524
}
513
525
526
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
514
527
#[ allow( unused_lifetimes) ]
515
528
#[ unstable( feature = "bstr" , issue = "134915" ) ]
516
529
impl <' a> PartialEq <$lhs> for $rhs {
@@ -521,6 +534,7 @@ macro_rules! impl_partial_eq_ord_cow {
521
534
}
522
535
}
523
536
537
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
524
538
#[ allow( unused_lifetimes) ]
525
539
#[ unstable( feature = "bstr" , issue = "134915" ) ]
526
540
impl <' a> PartialOrd <$rhs> for $lhs {
@@ -531,6 +545,7 @@ macro_rules! impl_partial_eq_ord_cow {
531
545
}
532
546
}
533
547
548
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
534
549
#[ allow( unused_lifetimes) ]
535
550
#[ unstable( feature = "bstr" , issue = "134915" ) ]
536
551
impl <' a> PartialOrd <$lhs> for $rhs {
@@ -577,6 +592,7 @@ impl PartialOrd for ByteString {
577
592
}
578
593
}
579
594
595
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
580
596
#[ unstable( feature = "bstr" , issue = "134915" ) ]
581
597
impl ToOwned for ByteStr {
582
598
type Owned = ByteString ;
@@ -609,6 +625,7 @@ impl<'a> TryFrom<&'a ByteString> for &'a str {
609
625
610
626
// Additional impls for `ByteStr` that require types from `alloc`:
611
627
628
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
612
629
#[ unstable( feature = "bstr" , issue = "134915" ) ]
613
630
impl Clone for Box < ByteStr > {
614
631
#[ inline]
@@ -617,6 +634,7 @@ impl Clone for Box<ByteStr> {
617
634
}
618
635
}
619
636
637
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
620
638
#[ unstable( feature = "bstr" , issue = "134915" ) ]
621
639
impl < ' a > From < & ' a ByteStr > for Cow < ' a , ByteStr > {
622
640
#[ inline]
@@ -625,6 +643,7 @@ impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr> {
625
643
}
626
644
}
627
645
646
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
628
647
#[ unstable( feature = "bstr" , issue = "134915" ) ]
629
648
impl From < Box < [ u8 ] > > for Box < ByteStr > {
630
649
#[ inline]
@@ -634,6 +653,7 @@ impl From<Box<[u8]>> for Box<ByteStr> {
634
653
}
635
654
}
636
655
656
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
637
657
#[ unstable( feature = "bstr" , issue = "134915" ) ]
638
658
impl From < Box < ByteStr > > for Box < [ u8 ] > {
639
659
#[ inline]
0 commit comments