Skip to content
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 build with latest nightly version. #1754

Closed
brizental opened this issue Jun 6, 2018 · 4 comments
Closed

Unable to build with latest nightly version. #1754

brizental opened this issue Jun 6, 2018 · 4 comments

Comments

@brizental
Copy link

brizental commented Jun 6, 2018

Setup

Versions

  • Rust: nightly-2018-06-05
  • Diesel: 1.3.0
  • Database: mysql
  • Operating System macos

Feature Flags

  • diesel: mysql, r2d2

Problem Description

Can't build with latest nightly version.

What are you trying to accomplish?

Build.

What is the expected output?

No errors.

What is the actual output?

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Add` is not satisfied
  --> /Users/brizental/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Add` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Add` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Sub` is not satisfied
  --> /Users/brizental/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Sub` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Sub` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Mul` is not satisfied
  --> /Users/brizental/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Mul` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Mul` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Div` is not satisfied
  --> /Users/brizental/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Div` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Div` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

Steps to reproduce

Try to build something with the latest nightly version.

@gwihlidal
Copy link

I'm having this same problem now too

@weiznich
Copy link
Member

weiznich commented Jun 6, 2018

It's a rustc bug, see #1700 #1701 #1705 #1711 #1729 , #1730 , #1731, #1737 , rust-lang/rust#50825 and rust-lang/rust#51042

@weiznich weiznich closed this as completed Jun 6, 2018
@mathroc
Copy link
Contributor

mathroc commented Jun 22, 2018

@weiznich it might be interesting to keep one of these issue open until this is resolved. it would avoid people opening the same issue again and again . and give them an issue to subscribe to to be notified when this is resolved

I guess this is not something that can be solved on diesel side but it's still a in issue to its usage worth tracking imho (eg: I'm waiting for this to upgrade some dependencies that require a newer rustc because there is no rustc version that works with the newer version of those libs and diesel)

@weiznich
Copy link
Member

@mathroc The issue is fixed since the 8 of June.

it might be interesting to keep one of these issue open until this is resolved. it would avoid people opening the same issue again and again .and give them an issue to subscribe to to be notified when this is resolved

The issue was closed because of several reasons:

  • It is nothing that is actionable for the diesel team. Our policy is than only actionable issues should be open. All other issues are closed. (This does not mean we do not response to questions ask in closed issues, it just means that we categorize issues in a certain way)
  • It is a bug in rustc so the bugreport does not belong to the diesel repo, but to the rustc repo. To have a issue to subscribe to people should go there because the issue will be fixed there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants