Skip to content

Commit a455c94

Browse files
authored
Rollup merge of #112670 - petrochenkov:typriv, r=eholk
privacy: Type privacy lints fixes and cleanups See individual commits. Follow up to rust-lang/rust#111801.
2 parents 400f736 + 3e5d326 commit a455c94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/iter/adapters/flatten.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ where
310310
/// Real logic of both `Flatten` and `FlatMap` which simply delegate to
311311
/// this type.
312312
#[derive(Clone, Debug)]
313-
#[unstable(feature = "trusted_len", issue = "37572")]
313+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
314314
struct FlattenCompat<I, U> {
315315
iter: Fuse<I>,
316316
frontiter: Option<U>,
@@ -464,7 +464,7 @@ where
464464
}
465465
}
466466

467-
#[unstable(feature = "trusted_len", issue = "37572")]
467+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
468468
impl<I, U> Iterator for FlattenCompat<I, U>
469469
where
470470
I: Iterator<Item: IntoIterator<IntoIter = U, Item = U::Item>>,
@@ -579,7 +579,7 @@ where
579579
}
580580
}
581581

582-
#[unstable(feature = "trusted_len", issue = "37572")]
582+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
583583
impl<I, U> DoubleEndedIterator for FlattenCompat<I, U>
584584
where
585585
I: DoubleEndedIterator<Item: IntoIterator<IntoIter = U, Item = U::Item>>,
@@ -649,23 +649,23 @@ where
649649
}
650650
}
651651

652-
#[unstable(feature = "trusted_len", issue = "37572")]
652+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
653653
unsafe impl<const N: usize, I, T> TrustedLen
654654
for FlattenCompat<I, <[T; N] as IntoIterator>::IntoIter>
655655
where
656656
I: TrustedLen<Item = [T; N]>,
657657
{
658658
}
659659

660-
#[unstable(feature = "trusted_len", issue = "37572")]
660+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
661661
unsafe impl<'a, const N: usize, I, T> TrustedLen
662662
for FlattenCompat<I, <&'a [T; N] as IntoIterator>::IntoIter>
663663
where
664664
I: TrustedLen<Item = &'a [T; N]>,
665665
{
666666
}
667667

668-
#[unstable(feature = "trusted_len", issue = "37572")]
668+
#[cfg_attr(bootstrap, unstable(feature = "trusted_len", issue = "37572"))]
669669
unsafe impl<'a, const N: usize, I, T> TrustedLen
670670
for FlattenCompat<I, <&'a mut [T; N] as IntoIterator>::IntoIter>
671671
where

0 commit comments

Comments
 (0)