The latest version of the syn
crate exports a new Result
type alias, which collides with std::result::Result
and makes diesel_derives
fail to compile.
Use diesel_derives
.
diesel_derives
compiles successfully.
error[E0107]: wrong number of type arguments: expected 1, found 2
--> diesel_derives/src/util.rs:48:84
|
48 | pub fn ty_for_foreign_derive(item: &DeriveInput, flags: &MetaItem) -> Result<Type, Diagnostic> {
No
Compile diesel_derives from master.
cc @dtolnay because potential breaking change in syn.
Thanks for the ping. This is why you should only glob import from modules that are documented for glob importing, like preludes. Neither the standard library nor I am going to consider something like this a breaking change for affecting glob imports.
@dtolnay See this comment on the corresponding PR. I do not consider that as major breaking change that requires some action from your side. The ping was to just let you know that this issue exists :wink:
Fixed on master
Most helpful comment
Thanks for the ping. This is why you should only glob import from modules that are documented for glob importing, like preludes. Neither the standard library nor I am going to consider something like this a breaking change for affecting glob imports.