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

Unable to compile diesel v1.1.1 #1508

Closed
am0d opened this Issue Jan 24, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@am0d

am0d commented Jan 24, 2018

Setup

Versions

  • Rust: Nightly-2018-01-20
  • Diesel: v1.1.1
  • Database: Postgres
  • Operating System Linux

Feature Flags

  • diesel: postgres, chrono, r2d2

Problem Description

Unable to compile - output when compiling is:

   Compiling diesel v1.1.1
error[E0603]: trait `Error` is private
  --> /home/am0d/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.1.1/src/r2d2.rs:11:22
   |
11 | pub type PoolError = self::r2d2::Error;
   |                      ^^^^^^^^^^^^^^^^^

error: aborting due to previous error

What are you trying to accomplish?

Compile app.

What is the expected output?

No errors.

What is the actual output?

See above.

Are you seeing any additional errors?

No.

Steps to reproduce

Attempt to compile an application with a dependency on diesel v1.1.1 with the r2d2 feature enabled.

Checklist

  • I have already looked over the issue tracker for similar issues.
@weiznich

This comment has been minimized.

Contributor

weiznich commented Jan 24, 2018

I've failed to reproduce this. Which could you post a complete minimal reproducing example(including the Cargo.lock file) somewhere?

@weiznich

This comment has been minimized.

Contributor

weiznich commented Jan 25, 2018

I was able to reproduce this.This is caused by a incompatible r2d2 version in your dependency tree. cargo update -p r2d2 fixed this for me.

@am0d

This comment has been minimized.

am0d commented Jan 26, 2018

Thank you, that did fix it for me. I was still on r2d2 0.7.4, upgrading to 0.8.2 fixed the build for me.

@am0d am0d closed this Jan 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment