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

Diesel 1.3.0 fails to build with the recent nightly #1729

Closed
syssecfsu opened this Issue May 24, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@syssecfsu

syssecfsu commented May 24, 2018

Setup

Versions

  • Rust: rustc 1.28.0-nightly (71e87be38 2018-05-22)
  • Diesel: 1.3.0 from crate.io
  • Database: Sqlite
  • Operating System Mac OS X 10.13.4

Feature Flags

  • diesel: "sqlite", "32-column-tables"

Problem Description

Diesel 1.3.0 cannot be built on the recent nightly. The error message is shown as:

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Add` is not satisfied
  --> /.../.cargo/registry/src/github.com-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
@Deedasmi

This comment has been minimized.

Contributor

Deedasmi commented May 24, 2018

Duplicate of #1700 , #1701, #1705, #1711, #1722. It's a regression in rustc that will likely be fixed on the next nightly from rust-lang/rust#50876

EDIT: Still broken on 05-23. Due to proc-macro2 this time.

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