File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1040,6 +1040,7 @@ impl<T: Element> PyArray<T, Ix1> {
1040
1040
/// });
1041
1041
/// ```
1042
1042
#[ deprecated(
1043
+ since = "0.17.0" ,
1043
1044
note = "`from_exact_iter` is deprecated as it does not provide any benefit over `from_iter`."
1044
1045
) ]
1045
1046
#[ inline( always) ]
Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ fn gcd_strides(strides: &[isize]) -> isize {
739
739
reduce ( strides. iter ( ) . copied ( ) , gcd) . unwrap_or ( 1 )
740
740
}
741
741
742
- // FIXME(adamreichold): Use `usize::abs_diff` from std when that becomes stable .
742
+ // FIXME(adamreichold): Use `usize::abs_diff` from std when our MSRV reaches 1.60 .
743
743
fn abs_diff ( lhs : usize , rhs : usize ) -> usize {
744
744
if lhs >= rhs {
745
745
lhs - rhs
Original file line number Diff line number Diff line change @@ -146,7 +146,10 @@ impl PyArrayDescr {
146
146
}
147
147
148
148
#[ doc( hidden) ]
149
- #[ deprecated( note = "`get_type()` is deprecated, please use `typeobj()` instead" ) ]
149
+ #[ deprecated(
150
+ since = "0.16.0" ,
151
+ note = "`get_type()` is deprecated, please use `typeobj()` instead"
152
+ ) ]
150
153
pub fn get_type ( & self ) -> & PyType {
151
154
self . typeobj ( )
152
155
}
Original file line number Diff line number Diff line change 14
14
//!
15
15
//! [iterator]: https://numpy.org/doc/stable/reference/c-api/iterator.html
16
16
#![ deprecated(
17
+ since = "0.16.0" ,
17
18
note = "The wrappers of the array iterator API are deprecated, please use ndarray's iterators like `Lanes` and `Zip` instead."
18
19
) ]
19
20
#![ allow( missing_debug_implementations) ]
You can’t perform that action at this time.
0 commit comments