File tree 3 files changed +13
-2
lines changed 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -61,3 +61,7 @@ name = "chars"
61
61
62
62
[[example ]]
63
63
name = " 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};
8
8
fn run_rustc_version ( ) {
9
9
let version = version ( ) . unwrap ( ) ;
10
10
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
+
11
16
if version >= Version :: parse ( "1.26.0" ) . unwrap ( ) {
12
17
println ! ( "cargo:rustc-cfg=stable_fused_iterator" ) ;
13
18
}
14
19
15
20
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 `
17
22
// in stable anyway because both require a type parameter bounded by `ops::Try` which is
18
23
// not going to stabilize yet.
19
24
//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;
10
10
///
11
11
/// [`unapply_iter`]: fn.unapply_iter.html
12
12
#[ 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 ) ]
14
16
pub struct UnapplyIter < I > {
15
17
pub ( crate ) inner : iter:: Filter < I , fn ( & char ) -> bool > ,
16
18
}
You can’t perform that action at this time.
0 commit comments