File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,3 +61,7 @@ name = "chars"
6161
6262[[example ]]
6363name = " is_zalgo"
64+
65+
66+ [package .metadata .docs .rs ]
67+ features = [" nightly" ]
Original file line number Diff line number Diff line change @@ -8,12 +8,17 @@ use rustc_version::{Version, version};
88fn run_rustc_version ( ) {
99 let version = version ( ) . unwrap ( ) ;
1010
11+ if version >= Version :: parse ( "1.21.0" ) . unwrap ( ) {
12+ // This should be the relevant issue: https://github.com/rust-lang/rust/pull/43690
13+ println ! ( "cargo:rustc-cfg=fn_clone" ) ;
14+ }
15+
1116 if version >= Version :: parse ( "1.26.0" ) . unwrap ( ) {
1217 println ! ( "cargo:rustc-cfg=stable_fused_iterator" ) ;
1318 }
1419
1520 if version >= Version :: parse ( "1.27.0" ) . unwrap ( ) {
16- // We won't be able to define `Iterator::try_fold` and `DoubleEndedIterator::try_fold `
21+ // We won't be able to define `Iterator::try_fold` and `DoubleEndedIterator::try_rfold `
1722 // in stable anyway because both require a type parameter bounded by `ops::Try` which is
1823 // not going to stabilize yet.
1924 //println!("cargo:rustc-cfg=stable_iterator_try_fold");
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ use core::ops;
1010///
1111/// [`unapply_iter`]: fn.unapply_iter.html
1212#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
13- #[ derive( Clone , Debug ) ]
13+ // This should be the relevant issue: https://github.com/rust-lang/rust/pull/43690
14+ #[ cfg_attr( fn_clone, derive( Clone ) ) ]
15+ #[ derive( Debug ) ]
1416pub struct UnapplyIter < I > {
1517 pub ( crate ) inner : iter:: Filter < I , fn ( & char ) -> bool > ,
1618}
You can’t perform that action at this time.
0 commit comments