Skip to content

Commit f774dbf

Browse files
committed
Fix abi3 ui test
1 parent 48aba84 commit f774dbf

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed
Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
2-
--> tests/ui/abi3_nativetype_inheritance.rs:5:1
3-
|
4-
5 | #[pyclass(extends=PyDict)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `PyClass` is not implemented for `PyDict`
6-
|
7-
= note: required because of the requirements on the impl of `PyClassBaseType` for `PyDict`
8-
note: required by a bound in `PyClassBaseType`
9-
--> src/class/impl_.rs:766:1
10-
|
11-
766 | / pub trait PyClassBaseType: Sized {
12-
767 | | type Dict;
13-
768 | | type WeakRef;
14-
769 | | type LayoutAsBase: PyCellLayout<Self>;
15-
... |
16-
772 | | type Initializer: PyObjectInit<Self>;
17-
773 | | }
18-
| |_^ required by this bound in `PyClassBaseType`
19-
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
2+
--> tests/ui/abi3_nativetype_inheritance.rs:5:1
3+
|
4+
5 | #[pyclass(extends=PyDict)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `PyClass` is not implemented for `PyDict`
6+
|
7+
= note: required because of the requirements on the impl of `PyClassBaseType` for `PyDict`
8+
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
209

2110
error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
2211
--> tests/ui/abi3_nativetype_inheritance.rs:5:1
@@ -26,8 +15,8 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
2615
|
2716
= note: required because of the requirements on the impl of `PyClassBaseType` for `PyDict`
2817
note: required by a bound in `ThreadCheckerInherited`
29-
--> src/class/impl_.rs:753:47
18+
--> src/class/impl_.rs
3019
|
31-
753 | pub struct ThreadCheckerInherited<T: Send, U: PyClassBaseType>(PhantomData<T>, U::ThreadChecker);
20+
| pub struct ThreadCheckerInherited<T: Send, U: PyClassBaseType>(PhantomData<T>, U::ThreadChecker);
3221
| ^^^^^^^^^^^^^^^ required by this bound in `ThreadCheckerInherited`
3322
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)