@@ -1383,6 +1383,26 @@ pub mod stream {
1383
1383
assert_impl ! ( Next <' _, ( ) >: Unpin ) ;
1384
1384
assert_not_impl ! ( Next <' _, PhantomPinned >: Unpin ) ;
1385
1385
1386
+ assert_impl ! ( NextIf <' _, SendStream <( ) >, ( ) >: Send ) ;
1387
+ assert_not_impl ! ( NextIf <' _, SendStream <( ) >, * const ( ) >: Send ) ;
1388
+ assert_not_impl ! ( NextIf <' _, SendStream , ( ) >: Send ) ;
1389
+ assert_not_impl ! ( NextIf <' _, LocalStream <( ) >, ( ) >: Send ) ;
1390
+ assert_impl ! ( NextIf <' _, SyncStream <( ) >, ( ) >: Sync ) ;
1391
+ assert_not_impl ! ( NextIf <' _, SyncStream <( ) >, * const ( ) >: Sync ) ;
1392
+ assert_not_impl ! ( NextIf <' _, SyncStream , ( ) >: Sync ) ;
1393
+ assert_not_impl ! ( NextIf <' _, LocalStream <( ) >, ( ) >: Send ) ;
1394
+ assert_impl ! ( NextIf <' _, PinnedStream , PhantomPinned >: Unpin ) ;
1395
+
1396
+ assert_impl ! ( NextIfEq <' _, SendStream <( ) >, ( ) >: Send ) ;
1397
+ assert_not_impl ! ( NextIfEq <' _, SendStream <( ) >, * const ( ) >: Send ) ;
1398
+ assert_not_impl ! ( NextIfEq <' _, SendStream , ( ) >: Send ) ;
1399
+ assert_not_impl ! ( NextIfEq <' _, LocalStream <( ) >, ( ) >: Send ) ;
1400
+ assert_impl ! ( NextIfEq <' _, SyncStream <( ) >, ( ) >: Sync ) ;
1401
+ assert_not_impl ! ( NextIfEq <' _, SyncStream <( ) >, * const ( ) >: Sync ) ;
1402
+ assert_not_impl ! ( NextIfEq <' _, SyncStream , ( ) >: Sync ) ;
1403
+ assert_not_impl ! ( NextIfEq <' _, LocalStream <( ) >, ( ) >: Send ) ;
1404
+ assert_impl ! ( NextIfEq <' _, PinnedStream , PhantomPinned >: Unpin ) ;
1405
+
1386
1406
assert_impl ! ( Once <( ) >: Send ) ;
1387
1407
assert_not_impl ! ( Once <* const ( ) >: Send ) ;
1388
1408
assert_impl ! ( Once <( ) >: Sync ) ;
@@ -1781,23 +1801,31 @@ pub mod stream {
1781
1801
assert_not_impl ! ( Zip <PinnedStream , UnpinStream >: Unpin ) ;
1782
1802
1783
1803
assert_impl ! ( futures_unordered:: Iter <( ) >: Send ) ;
1804
+ assert_not_impl ! ( futures_unordered:: Iter <* const ( ) >: Send ) ;
1784
1805
assert_impl ! ( futures_unordered:: Iter <( ) >: Sync ) ;
1806
+ assert_not_impl ! ( futures_unordered:: Iter <* const ( ) >: Sync ) ;
1785
1807
assert_impl ! ( futures_unordered:: Iter <( ) >: Unpin ) ;
1786
- // futures_unordered::Iter requires `Fut: Unpin`
1808
+ // The definition of futures_unordered::Iter has `Fut: Unpin` bounds.
1787
1809
// assert_not_impl!(futures_unordered::Iter<PhantomPinned>: Unpin);
1788
1810
1789
1811
assert_impl ! ( futures_unordered:: IterMut <( ) >: Send ) ;
1812
+ assert_not_impl ! ( futures_unordered:: IterMut <* const ( ) >: Send ) ;
1790
1813
assert_impl ! ( futures_unordered:: IterMut <( ) >: Sync ) ;
1814
+ assert_not_impl ! ( futures_unordered:: IterMut <* const ( ) >: Sync ) ;
1791
1815
assert_impl ! ( futures_unordered:: IterMut <( ) >: Unpin ) ;
1792
- // futures_unordered::IterMut requires `Fut: Unpin`
1816
+ // The definition of futures_unordered::IterMut has `Fut: Unpin` bounds.
1793
1817
// assert_not_impl!(futures_unordered::IterMut<PhantomPinned>: Unpin);
1794
1818
1795
1819
assert_impl ! ( futures_unordered:: IterPinMut <( ) >: Send ) ;
1820
+ assert_not_impl ! ( futures_unordered:: IterPinMut <* const ( ) >: Send ) ;
1796
1821
assert_impl ! ( futures_unordered:: IterPinMut <( ) >: Sync ) ;
1822
+ assert_not_impl ! ( futures_unordered:: IterPinMut <* const ( ) >: Sync ) ;
1797
1823
assert_impl ! ( futures_unordered:: IterPinMut <PhantomPinned >: Unpin ) ;
1798
1824
1799
1825
assert_impl ! ( futures_unordered:: IterPinRef <( ) >: Send ) ;
1826
+ assert_not_impl ! ( futures_unordered:: IterPinRef <* const ( ) >: Send ) ;
1800
1827
assert_impl ! ( futures_unordered:: IterPinRef <( ) >: Sync ) ;
1828
+ assert_not_impl ! ( futures_unordered:: IterPinRef <* const ( ) >: Sync ) ;
1801
1829
assert_impl ! ( futures_unordered:: IterPinRef <PhantomPinned >: Unpin ) ;
1802
1830
}
1803
1831
0 commit comments