-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
I was attempting to integrate this library with diesel while using the nightly compiler.
Do you know off the top of your head problem changes in nightly that would cause build failures? It is fine if you don't know. I can debug it myself but I wanted to check for any possible leads from the people who know the most about this library first. Please tell me if you don't know so I can begin working on the problem.
All of the errors look like the blanket trait implementations not being found by the compiler. If you know the name of the problem or the rust issue the this comes from that would be a huge help.
error[E0277]: the trait bound `usize: types::MultiPolygon<'a>` is not satisfied
--> src/postgis.rs:138:13
|
138 | / fn to_sql(&self, _: &Type, out: &mut Vec<u8>) -> Result<IsNull, Box<Error + Sync + Send>> {
139 | | self.write_ewkb(out)?;
140 | | Ok(IsNull::No)
141 | | }
| |_____________^ the trait `types::MultiPolygon<'a>` is not implemented for `usize`
...
150 | impl_sql_for_ewkb_type!(multipoly EwkbMultiPolygon contains Polygon);
| --------------------------------------------------------------------- in this macro invocation
error[E0277]: the trait bound `usize: types::MultiPolygon<'a>` is not satisfied
--> src/postgis.rs:150:1
|
150 | impl_sql_for_ewkb_type!(multipoly EwkbMultiPolygon contains Polygon);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the trait `types::MultiPolygon<'a>` is not implemented for `usize`
| in this macro invocation
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to 128 previous errors
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `postgis`
Metadata
Metadata
Assignees
Labels
No labels