870a4bb20d
* deprecate GIL Refs in function arguments * fix deprecated gil refs in function arguments * add notes on deprecations limitations to migration guide * Apply suggestions from code review Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com> * review: Icxolu * fix proto method extract failure for option * fix gil refs in examples --------- Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False`
|
|
--> tests/ui/invalid_pymethod_enum.rs:11:24
|
|
|
|
|
11 | fn mutate_in_place(&mut self) {
|
|
| ^ expected `False`, found `True`
|
|
|
|
|
note: required by a bound in `extract_pyclass_ref_mut`
|
|
--> src/impl_/extract_argument.rs
|
|
|
|
|
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>(
|
|
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut`
|
|
|
|
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False`
|
|
--> tests/ui/invalid_pymethod_enum.rs:9:1
|
|
|
|
|
9 | #[pymethods]
|
|
| ^^^^^^^^^^^^ expected `False`, found `True`
|
|
|
|
|
note: required by a bound in `PyRefMut`
|
|
--> src/pycell.rs
|
|
|
|
|
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> {
|
|
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut`
|
|
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
|