Skip to content

Commit d044234

Browse files
committed
Auto merge of #111425 - Bryanskiy:privacy_ef, r=petrochenkov
Populate effective visibilities in `rustc_privacy` (take 2) Same as rust-lang/rust#110907 + regressions fixes. Fixes rust-lang/rust#111359. r? `@petrochenkov`
2 parents f86db5e + a7e1e5d commit d044234

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/iter/adapters/flatten.rs

+6
Original file line numberDiff line numberDiff line change
@@ -310,6 +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")]
313314
struct FlattenCompat<I, U> {
314315
iter: Fuse<I>,
315316
frontiter: Option<U>,
@@ -463,6 +464,7 @@ where
463464
}
464465
}
465466

467+
#[unstable(feature = "trusted_len", issue = "37572")]
466468
impl<I, U> Iterator for FlattenCompat<I, U>
467469
where
468470
I: Iterator<Item: IntoIterator<IntoIter = U, Item = U::Item>>,
@@ -577,6 +579,7 @@ where
577579
}
578580
}
579581

582+
#[unstable(feature = "trusted_len", issue = "37572")]
580583
impl<I, U> DoubleEndedIterator for FlattenCompat<I, U>
581584
where
582585
I: DoubleEndedIterator<Item: IntoIterator<IntoIter = U, Item = U::Item>>,
@@ -646,20 +649,23 @@ where
646649
}
647650
}
648651

652+
#[unstable(feature = "trusted_len", issue = "37572")]
649653
unsafe impl<const N: usize, I, T> TrustedLen
650654
for FlattenCompat<I, <[T; N] as IntoIterator>::IntoIter>
651655
where
652656
I: TrustedLen<Item = [T; N]>,
653657
{
654658
}
655659

660+
#[unstable(feature = "trusted_len", issue = "37572")]
656661
unsafe impl<'a, const N: usize, I, T> TrustedLen
657662
for FlattenCompat<I, <&'a [T; N] as IntoIterator>::IntoIter>
658663
where
659664
I: TrustedLen<Item = &'a [T; N]>,
660665
{
661666
}
662667

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

0 commit comments

Comments
 (0)