@@ -12,13 +12,10 @@ use core::ops::{
12
12
Deref , DerefMut , DerefPure , Index , IndexMut , Range , RangeFrom , RangeFull , RangeInclusive ,
13
13
RangeTo , RangeToInclusive ,
14
14
} ;
15
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
16
15
use core:: str:: FromStr ;
17
16
use core:: { fmt, hash} ;
18
17
19
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
20
18
use crate :: borrow:: { Cow , ToOwned } ;
21
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
22
19
use crate :: boxed:: Box ;
23
20
#[ cfg( not( no_rc) ) ]
24
21
use crate :: rc:: Rc ;
@@ -181,7 +178,6 @@ impl Default for ByteString {
181
178
182
179
// Omitted due to inference failures
183
180
//
184
- // #[cfg(not(test))] // https://github.com/rust-lang/rust/issues/135100
185
181
// #[unstable(feature = "bstr", issue = "134915")]
186
182
// impl<'a, const N: usize> From<&'a [u8; N]> for ByteString {
187
183
// #[inline]
@@ -190,7 +186,6 @@ impl Default for ByteString {
190
186
// }
191
187
// }
192
188
//
193
- // #[cfg(not(test))] // https://github.com/rust-lang/rust/issues/135100
194
189
// #[unstable(feature = "bstr", issue = "134915")]
195
190
// impl<const N: usize> From<[u8; N]> for ByteString {
196
191
// #[inline]
@@ -199,7 +194,6 @@ impl Default for ByteString {
199
194
// }
200
195
// }
201
196
//
202
- // #[cfg(not(test))] // https://github.com/rust-lang/rust/issues/135100
203
197
// #[unstable(feature = "bstr", issue = "134915")]
204
198
// impl<'a> From<&'a [u8]> for ByteString {
205
199
// #[inline]
@@ -226,7 +220,6 @@ impl From<ByteString> for Vec<u8> {
226
220
227
221
// Omitted due to inference failures
228
222
//
229
- // #[cfg(not(test))] // https://github.com/rust-lang/rust/issues/135100
230
223
// #[unstable(feature = "bstr", issue = "134915")]
231
224
// impl<'a> From<&'a str> for ByteString {
232
225
// #[inline]
@@ -243,7 +236,6 @@ impl From<ByteString> for Vec<u8> {
243
236
// }
244
237
// }
245
238
246
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
247
239
#[ unstable( feature = "bstr" , issue = "134915" ) ]
248
240
impl < ' a > From < & ' a ByteStr > for ByteString {
249
241
#[ inline]
@@ -252,7 +244,6 @@ impl<'a> From<&'a ByteStr> for ByteString {
252
244
}
253
245
}
254
246
255
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
256
247
#[ unstable( feature = "bstr" , issue = "134915" ) ]
257
248
impl < ' a > From < ByteString > for Cow < ' a , ByteStr > {
258
249
#[ inline]
@@ -261,7 +252,6 @@ impl<'a> From<ByteString> for Cow<'a, ByteStr> {
261
252
}
262
253
}
263
254
264
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
265
255
#[ unstable( feature = "bstr" , issue = "134915" ) ]
266
256
impl < ' a > From < & ' a ByteString > for Cow < ' a , ByteStr > {
267
257
#[ inline]
@@ -330,7 +320,6 @@ impl FromIterator<ByteString> for ByteString {
330
320
}
331
321
}
332
322
333
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
334
323
#[ unstable( feature = "bstr" , issue = "134915" ) ]
335
324
impl FromStr for ByteString {
336
325
type Err = core:: convert:: Infallible ;
@@ -488,7 +477,6 @@ impl PartialEq for ByteString {
488
477
489
478
macro_rules! impl_partial_eq_ord_cow {
490
479
( $lhs: ty, $rhs: ty) => {
491
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
492
480
#[ allow( unused_lifetimes) ]
493
481
#[ unstable( feature = "bstr" , issue = "134915" ) ]
494
482
impl <' a> PartialEq <$rhs> for $lhs {
@@ -499,7 +487,6 @@ macro_rules! impl_partial_eq_ord_cow {
499
487
}
500
488
}
501
489
502
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
503
490
#[ allow( unused_lifetimes) ]
504
491
#[ unstable( feature = "bstr" , issue = "134915" ) ]
505
492
impl <' a> PartialEq <$lhs> for $rhs {
@@ -510,7 +497,6 @@ macro_rules! impl_partial_eq_ord_cow {
510
497
}
511
498
}
512
499
513
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
514
500
#[ allow( unused_lifetimes) ]
515
501
#[ unstable( feature = "bstr" , issue = "134915" ) ]
516
502
impl <' a> PartialOrd <$rhs> for $lhs {
@@ -521,7 +507,6 @@ macro_rules! impl_partial_eq_ord_cow {
521
507
}
522
508
}
523
509
524
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
525
510
#[ allow( unused_lifetimes) ]
526
511
#[ unstable( feature = "bstr" , issue = "134915" ) ]
527
512
impl <' a> PartialOrd <$lhs> for $rhs {
@@ -572,7 +557,6 @@ impl PartialOrd for ByteString {
572
557
}
573
558
}
574
559
575
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
576
560
#[ unstable( feature = "bstr" , issue = "134915" ) ]
577
561
impl ToOwned for ByteStr {
578
562
type Owned = ByteString ;
@@ -605,7 +589,6 @@ impl<'a> TryFrom<&'a ByteString> for &'a str {
605
589
606
590
// Additional impls for `ByteStr` that require types from `alloc`:
607
591
608
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
609
592
#[ unstable( feature = "bstr" , issue = "134915" ) ]
610
593
impl Clone for Box < ByteStr > {
611
594
#[ inline]
@@ -614,7 +597,6 @@ impl Clone for Box<ByteStr> {
614
597
}
615
598
}
616
599
617
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
618
600
#[ unstable( feature = "bstr" , issue = "134915" ) ]
619
601
impl < ' a > From < & ' a ByteStr > for Cow < ' a , ByteStr > {
620
602
#[ inline]
@@ -623,7 +605,6 @@ impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr> {
623
605
}
624
606
}
625
607
626
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
627
608
#[ unstable( feature = "bstr" , issue = "134915" ) ]
628
609
impl From < Box < [ u8 ] > > for Box < ByteStr > {
629
610
#[ inline]
@@ -633,7 +614,6 @@ impl From<Box<[u8]>> for Box<ByteStr> {
633
614
}
634
615
}
635
616
636
- #[ cfg( not( test) ) ] // https://github.com/rust-lang/rust/issues/135100
637
617
#[ unstable( feature = "bstr" , issue = "134915" ) ]
638
618
impl From < Box < ByteStr > > for Box < [ u8 ] > {
639
619
#[ inline]
0 commit comments