New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken in latest nightly #1700

Closed
Deedasmi opened this Issue May 17, 2018 · 6 comments

Comments

Projects
None yet
7 participants
@Deedasmi
Contributor

Deedasmi commented May 17, 2018

rustc --version
rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)

OS:
WIN10

Diesel:
1.2.2

error[E0053]: method `metadata` has an incompatible type for trait
   --> C:\Users\deedasmi\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-1.2.2\src\pg\types\array.rs:14:25
    |
14  |     fn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadata {
    |                         ^^^^^^^^^^^^^^^^^ expected associated type, found struct `pg::metadata_lookup::PgMetadataLookup`
    | 
   ::: C:\Users\deedasmi\.cargo\registry\src\github.com-1ecc6299db9ec823\diesel-1.2.2\src\sql_types\mod.rs:402:25
    |
402 |     fn metadata(lookup: &Self::MetadataLookup) -> Self::TypeMetadata;
    |                         --------------------- type in trait
    |
    = note: expected type `fn(&<pg::backend::Pg as sql_types::TypeMetadata>::MetadataLookup) -> <pg::backend::Pg as sql_types::TypeMetadata>::TypeMetadata`
               found type `fn(&pg::metadata_lookup::PgMetadataLookup) -> pg::backend::PgTypeMetadata`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0053`.

@huangjj27

This comment has been minimized.

huangjj27 commented May 17, 2018

Same error in same environment.

@weiznich

This comment has been minimized.

Contributor

weiznich commented May 17, 2018

This seems to be a regression in rustc.
See rust-lang/rust#50825 for details.

@vi-n

This comment has been minimized.

vi-n commented May 17, 2018

Same error on Linux

@trsh

This comment has been minimized.

trsh commented May 18, 2018

Same here on Ubuntu

@sgrif

This comment has been minimized.

Member

sgrif commented May 18, 2018

Thanks, but this is a bug in Rust not a bug in Diesel. Please open an issue there

@jtescher

This comment has been minimized.

jtescher commented May 20, 2018

For anyone looking for a workaround, you should be able to compile with 2018-05-14 for now.

$ rustup toolchain install nightly-2018-05-14

@weiznich weiznich referenced this issue May 21, 2018

Closed

Diesel does not build #1711

1 of 1 task complete

@Eijebong Eijebong referenced this issue May 24, 2018

Closed

Compile fails on latest nightly rust 1.28.0 #1730

1 of 2 tasks complete

@Eijebong Eijebong referenced this issue May 28, 2018

Closed

Diesel v1.3.1 compilation failed #1737

2 of 2 tasks complete

clux added a commit to clux/muslrust that referenced this issue Jun 2, 2018

diesel works without forks, but only up to 1.2 on nightly
remove reliance on forks and pin version to 1.2 until
diesel-rs/diesel#1700 gets resolved either in
rust or diesel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment