@@ -267,6 +267,7 @@ impl<T> [T] {
267
267
/// assert!(v == [-5, -3, 1, 2, 4]);
268
268
/// ```
269
269
#[ cfg( not( no_global_oom_handling) ) ]
270
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
270
271
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
271
272
#[ inline]
272
273
pub fn sort ( & mut self )
@@ -322,6 +323,7 @@ impl<T> [T] {
322
323
/// assert!(v == [5, 4, 3, 2, 1]);
323
324
/// ```
324
325
#[ cfg( not( no_global_oom_handling) ) ]
326
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
325
327
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
326
328
#[ inline]
327
329
pub fn sort_by < F > ( & mut self , mut compare : F )
@@ -363,6 +365,7 @@ impl<T> [T] {
363
365
/// assert!(v == [1, 2, -3, 4, -5]);
364
366
/// ```
365
367
#[ cfg( not( no_global_oom_handling) ) ]
368
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
366
369
#[ stable( feature = "slice_sort_by_key" , since = "1.7.0" ) ]
367
370
#[ inline]
368
371
pub fn sort_by_key < K , F > ( & mut self , mut f : F )
@@ -409,6 +412,7 @@ impl<T> [T] {
409
412
///
410
413
/// [pdqsort]: https://github.com/orlp/pdqsort
411
414
#[ cfg( not( no_global_oom_handling) ) ]
415
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
412
416
#[ stable( feature = "slice_sort_by_cached_key" , since = "1.34.0" ) ]
413
417
#[ inline]
414
418
pub fn sort_by_cached_key < K , F > ( & mut self , f : F )
@@ -467,6 +471,7 @@ impl<T> [T] {
467
471
/// // Here, `s` and `x` can be modified independently.
468
472
/// ```
469
473
#[ cfg( not( no_global_oom_handling) ) ]
474
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
470
475
#[ rustc_conversion_suggestion]
471
476
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
472
477
#[ inline]
@@ -491,6 +496,7 @@ impl<T> [T] {
491
496
/// // Here, `s` and `x` can be modified independently.
492
497
/// ```
493
498
#[ cfg( not( no_global_oom_handling) ) ]
499
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
494
500
#[ inline]
495
501
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
496
502
pub fn to_vec_in < A : Allocator > ( & self , alloc : A ) -> Vec < T , A >
@@ -515,6 +521,7 @@ impl<T> [T] {
515
521
///
516
522
/// assert_eq!(x, vec![10, 40, 30]);
517
523
/// ```
524
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
518
525
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
519
526
#[ inline]
520
527
pub fn into_vec < A : Allocator > ( self : Box < Self , A > ) -> Vec < T , A > {
@@ -542,6 +549,7 @@ impl<T> [T] {
542
549
/// // this will panic at runtime
543
550
/// b"0123456789abcdef".repeat(usize::MAX);
544
551
/// ```
552
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
545
553
#[ cfg( not( no_global_oom_handling) ) ]
546
554
#[ stable( feature = "repeat_generic_slice" , since = "1.40.0" ) ]
547
555
pub fn repeat ( & self , n : usize ) -> Vec < T >
@@ -610,6 +618,7 @@ impl<T> [T] {
610
618
/// assert_eq!(["hello", "world"].concat(), "helloworld");
611
619
/// assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
612
620
/// ```
621
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
613
622
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
614
623
pub fn concat < Item : ?Sized > ( & self ) -> <Self as Concat < Item > >:: Output
615
624
where
@@ -628,6 +637,7 @@ impl<T> [T] {
628
637
/// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
629
638
/// assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
630
639
/// ```
640
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
631
641
#[ stable( feature = "rename_connect_to_join" , since = "1.3.0" ) ]
632
642
pub fn join < Separator > ( & self , sep : Separator ) -> <Self as Join < Separator > >:: Output
633
643
where
@@ -646,6 +656,7 @@ impl<T> [T] {
646
656
/// assert_eq!(["hello", "world"].connect(" "), "hello world");
647
657
/// assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
648
658
/// ```
659
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
649
660
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
650
661
#[ rustc_deprecated( since = "1.3.0" , reason = "renamed to join" ) ]
651
662
pub fn connect < Separator > ( & self , sep : Separator ) -> <Self as Join < Separator > >:: Output
@@ -669,6 +680,7 @@ impl [u8] {
669
680
///
670
681
/// [`make_ascii_uppercase`]: slice::make_ascii_uppercase
671
682
#[ cfg( not( no_global_oom_handling) ) ]
683
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
672
684
#[ must_use = "this returns the uppercase bytes as a new Vec, \
673
685
without modifying the original"]
674
686
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
@@ -689,6 +701,7 @@ impl [u8] {
689
701
///
690
702
/// [`make_ascii_lowercase`]: slice::make_ascii_lowercase
691
703
#[ cfg( not( no_global_oom_handling) ) ]
704
+ #[ cfg_attr( not( bootstrap) , rustc_allow_incoherent_impl) ]
692
705
#[ must_use = "this returns the lowercase bytes as a new Vec, \
693
706
without modifying the original"]
694
707
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
0 commit comments