fix: ui test stderr
This commit is contained in:
parent
1d6ab21781
commit
158410fc77
|
@ -2,7 +2,7 @@ error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False`
|
|||
--> tests/ui/invalid_frozen_pyclass_borrow.rs:10:33
|
||||
|
|
||||
10 | let borrow = foo.as_ref(py).borrow_mut();
|
||||
| ^^^^^^^^^^ expected struct `False`, found struct `True`
|
||||
| ^^^^^^^^^^ expected `False`, found `True`
|
||||
|
|
||||
note: required by a bound in `PyCell::<T>::borrow_mut`
|
||||
--> src/pycell.rs
|
||||
|
@ -14,10 +14,10 @@ error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::Frozen == Fa
|
|||
--> tests/ui/invalid_frozen_pyclass_borrow.rs:20:35
|
||||
|
|
||||
20 | let borrow = child.as_ref(py).borrow_mut();
|
||||
| ^^^^^^^^^^ expected struct `False`, found struct `True`
|
||||
| ^^^^^^^^^^ expected `False`, found `True`
|
||||
|
|
||||
note: required by a bound in `PyCell::<T>::borrow_mut`
|
||||
--> src/pycell.rs
|
||||
|
|
||||
| T: PyClass<Frozen = False>,
|
||||
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|
||||
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|
|
@ -1,6 +1,9 @@
|
|||
error[E0505]: cannot move out of `gil` because it is borrowed
|
||||
--> tests/ui/wrong_aspyref_lifetimes.rs:8:10
|
||||
|
|
||||
5 | let gil = Python::acquire_gil();
|
||||
| --- binding `gil` declared here
|
||||
6 | let dict: Py<PyDict> = PyDict::new(gil.python()).into();
|
||||
7 | let dict: &PyDict = dict.as_ref(gil.python());
|
||||
| ------------ borrow of `gil` occurs here
|
||||
8 | drop(gil);
|
||||
|
|
Loading…
Reference in a new issue