add two missing feature restrictions for nightly

Found with `cargo hack --feature-powerset test`.
This commit is contained in:
Georg Brandl 2021-10-30 09:40:55 +02:00
parent 833f365aad
commit 5764355c2d
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ mod min_const_generics {
} }
} }
#[cfg(feature = "nightly")] #[cfg(all(feature = "nightly", not(Py_LIMITED_API)))]
impl<'source, T, const N: usize> FromPyObject<'source> for [T; N] impl<'source, T, const N: usize> FromPyObject<'source> for [T; N]
where where
for<'a> T: Default + FromPyObject<'a> + crate::buffer::Element, for<'a> T: Default + FromPyObject<'a> + crate::buffer::Element,

View File

@ -279,7 +279,7 @@ where
} }
} }
#[cfg(feature = "nightly")] #[cfg(all(feature = "nightly", not(Py_LIMITED_API)))]
impl<'source, T> FromPyObject<'source> for Vec<T> impl<'source, T> FromPyObject<'source> for Vec<T>
where where
for<'a> T: FromPyObject<'a> + crate::buffer::Element, for<'a> T: FromPyObject<'a> + crate::buffer::Element,