Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Created August 10, 2018 21:22
Show Gist options
  • Select an option

  • Save damienstanton/c315d395b7e027aec8407107cc8bf0c0 to your computer and use it in GitHub Desktop.

Select an option

Save damienstanton/c315d395b7e027aec8407107cc8bf0c0 to your computer and use it in GitHub Desktop.
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `(_, _)`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:246:1
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
245 |
246 | impl<K: ToPyObject, V: ToPyObject> IntoPyDictPointer for (K, V) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(_, _)`
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `(_, _)` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `()`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/noargs.rs:66:1
|
66 | impl IntoPyDictPointer for () {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
|
::: /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:231:1
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `()` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _),)`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _),)`
...
264 | dict_conversion!(1, (ref0, 0, A1, A2));
| --------------------------------------- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _),)` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _))`
...
265 | dict_conversion!(2, (ref0, 0, A1, A2), (ref1, 1, B1, B2));
| ---------------------------------------------------------- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _))`
...
266 | dict_conversion!(3, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2));
| ----------------------------------------------------------------------------- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _))`
...
267 | / dict_conversion!(4, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
268 | | (ref3, 3, D1, D2));
| |____________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _), (_, _))`
...
269 | / dict_conversion!(5, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
270 | | (ref3, 3, D1, D2), (ref4, 4, E1, E2));
| |_______________________________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`
...
271 | / dict_conversion!(6, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
272 | | (ref3, 3, D1, D2), (ref4, 4, E1, E2), (ref5, 5, F1, F2));
| |__________________________________________________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`
...
273 | / dict_conversion!(7, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
274 | | (ref3, 3, D1, D2), (ref4, 4, E1, E2), (ref5, 5, F1, F2), (ref6, 6, G1, G2));
| |_____________________________________________________________________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`
...
275 | / dict_conversion!(8, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
276 | | (ref3, 3, D1, D2), (ref4, 4, E1, E2), (ref5, 5, F1, F2), (ref6, 6, G1, G2),
277 | | (ref7, 7, H1, H2));
| |____________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))` in future versions
error[E0119]: conflicting implementations of trait `python::IntoPyDictPointer` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`:
--> /Users/damien/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.3.2/src/objects/dict.rs:255:5
|
231 | / impl <K, V, I> IntoPyDictPointer for I
232 | | where
233 | | K: ToPyObject,
234 | | V: ToPyObject,
... |
243 | | }
244 | | }
| |_- first implementation here
...
255 | impl<$($T1: ToPyObject, $T2: ToPyObject),+> IntoPyDictPointer for ($(($T1,$T2),)+) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))`
...
278 | / dict_conversion!(9, (ref0, 0, A1, A2), (ref1, 1, B1, B2), (ref2, 2, C1, C2),
279 | | (ref3, 3, D1, D2), (ref4, 4, E1, E2), (ref5, 5, F1, F2), (ref6, 6, G1, G2),
280 | | (ref7, 7, H1, H2), (ref8, 8, I1, I2));
| |_______________________________________________________- in this macro invocation
|
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `((_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _), (_, _))` in future versions
error: aborting due to 11 previous errors
For more information about this error, try `rustc --explain E0119`.
error: Could not compile `pyo3`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment