Skip to content

Commit

Permalink
ci: fix nightly ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jul 27, 2022
1 parent 96427ee commit 86740f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tests/ui/not_send_auto_trait.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ error[E0277]: the trait bound `pyo3::Python<'_>: Ungil` is not satisfied in `[cl
| within `[closure@$DIR/tests/ui/not_send_auto_trait.rs:4:22: 4:38]`, the trait `Ungil` is not implemented for `pyo3::Python<'_>`
|
= note: required because it appears within the type `&pyo3::Python<'_>`
= note: required because it appears within the type `[closure@$DIR/tests/ui/not_send_auto_trait.rs:4:22: 4:38]`
note: required because it's used within this closure
--> tests/ui/not_send_auto_trait.rs:4:22
|
4 | py.allow_threads(|| { drop(py); });
| ^^^^^^^^^^^^^^^^
note: required by a bound in `pyo3::Python::<'py>::allow_threads`
--> src/marker.rs
|
Expand Down
9 changes: 8 additions & 1 deletion tests/ui/not_send_auto_trait2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ error[E0277]: the trait bound `PyAny: Ungil` is not satisfied in `[closure@$DIR/
= note: required because it appears within the type `PyString`
= note: required because it appears within the type `&PyString`
= note: required because it appears within the type `&&PyString`
= note: required because it appears within the type `[closure@$DIR/tests/ui/not_send_auto_trait2.rs:8:26: 10:10]`
note: required because it's used within this closure
--> tests/ui/not_send_auto_trait2.rs:8:26
|
8 | py.allow_threads(|| {
| __________________________^
9 | | println!("{:?}", string);
10 | | });
| |_________^
note: required by a bound in `pyo3::Python::<'py>::allow_threads`
--> src/marker.rs
|
Expand Down
10 changes: 9 additions & 1 deletion tests/ui/send_wrapper.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ error[E0277]: the trait bound `PyAny: Ungil` is not satisfied in `[closure@$DIR/
= note: required because it appears within the type `*mut &PyString`
= note: required because it appears within the type `SendWrapper<&PyString>`
= note: required because it appears within the type `&SendWrapper<&PyString>`
= note: required because it appears within the type `[closure@$DIR/tests/ui/send_wrapper.rs:11:26: 14:10]`
note: required because it's used within this closure
--> tests/ui/send_wrapper.rs:11:26
|
11 | py.allow_threads(|| {
| __________________________^
12 | | let smuggled: &PyString = *wrapped;
13 | | println!("{:?}", smuggled);
14 | | });
| |_________^
note: required by a bound in `pyo3::Python::<'py>::allow_threads`
--> src/marker.rs
|
Expand Down

0 comments on commit 86740f9

Please sign in to comment.