Draft: Attempt at backporting 1.100
This is how far I managed to get:
error[E0277]: the trait bound `NonZeroI64: pyo3::IntoPy<Py<pyo3::PyAny>>` is not satisfied
--> rust/src/events/internal_metadata.rs:192:1
|
192 | #[pyclass]
| ^^^^^^^^^^ the trait `pyo3::IntoPy<Py<pyo3::PyAny>>` is not implemented for `NonZeroI64`
|
= help: the following other types implement trait `pyo3::IntoPy<T>`:
<&'a OsString as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a Path as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a PathBuf as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a PyErr as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a [u8] as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a std::string::String as pyo3::IntoPy<Py<pyo3::PyAny>>>
<&'a str as pyo3::IntoPy<Py<PyString>>>
<&'a str as pyo3::IntoPy<Py<pyo3::PyAny>>>
and 158 others
= note: required because of the requirements on the impl of `pyo3::IntoPy<Py<pyo3::PyAny>>` for `std::option::Option<NonZeroI64>`
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `std::option::Option<NonZeroI64>: pyo3::FromPyObject<'_>` is not satisfied
--> rust/src/events/internal_metadata.rs:192:1
|
192 | #[pyclass]
| ^^^^^^^^^^ the trait `pyo3::FromPyObject<'_>` is not implemented for `std::option::Option<NonZeroI64>`
|
= help: the trait `pyo3::FromPyObject<'a>` is implemented for `std::option::Option<T>`
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `synapse` due to 2 previous errors