@@ -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 {
@@ -573,6 +588,7 @@ impl PartialOrd for ByteString {
573
588
}
574
589
}
575
590
591
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
576
592
#[ unstable( feature = "bstr" , issue = "134915" ) ]
577
593
impl ToOwned for ByteStr {
578
594
type Owned = ByteString ;
@@ -605,6 +621,7 @@ impl<'a> TryFrom<&'a ByteString> for &'a str {
605
621
606
622
// Additional impls for `ByteStr` that require types from `alloc`:
607
623
624
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
608
625
#[ unstable( feature = "bstr" , issue = "134915" ) ]
609
626
impl Clone for Box < ByteStr > {
610
627
#[ inline]
@@ -613,6 +630,7 @@ impl Clone for Box<ByteStr> {
613
630
}
614
631
}
615
632
633
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
616
634
#[ unstable( feature = "bstr" , issue = "134915" ) ]
617
635
impl < ' a > From < & ' a ByteStr > for Cow < ' a , ByteStr > {
618
636
#[ inline]
@@ -621,6 +639,7 @@ impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr> {
621
639
}
622
640
}
623
641
642
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
624
643
#[ unstable( feature = "bstr" , issue = "134915" ) ]
625
644
impl From < Box < [ u8 ] > > for Box < ByteStr > {
626
645
#[ inline]
@@ -630,6 +649,7 @@ impl From<Box<[u8]>> for Box<ByteStr> {
630
649
}
631
650
}
632
651
652
+ #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
633
653
#[ unstable( feature = "bstr" , issue = "134915" ) ]
634
654
impl From < Box < ByteStr > > for Box < [ u8 ] > {
635
655
#[ inline]
0 commit comments