Skip to content

Commit 5f8b711

Browse files
committed
Be more precice about the toolchain version
1 parent 286283a commit 5f8b711

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

test_cases/rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nightly-2022-07-02

test_cases/tests/diesel/bad_insertable_field.stderr

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ error[E0277]: the trait bound `i32: diesel::Expression` is not satisfied
44
10 | #[derive(Insertable)]
55
| ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `i32`
66
|
7+
= help: the following other types implement trait `diesel::Expression`:
8+
&'a T
9+
(T0, T1)
10+
(T0, T1, T2)
11+
(T0, T1, T2, T3)
12+
(T0, T1, T2, T3, T4)
13+
(T0, T1, T2, T3, T4, T5)
14+
(T0, T1, T2, T3, T4, T5, T6)
15+
(T0, T1, T2, T3, T4, T5, T6, T7)
16+
and 117 others
717
= note: required because of the requirements on the impl of `AsExpression<diesel::sql_types::Text>` for `i32`
818
= note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)
919

@@ -13,6 +23,16 @@ error[E0277]: the trait bound `i32: diesel::Expression` is not satisfied
1323
10 | #[derive(Insertable)]
1424
| ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `i32`
1525
|
26+
= help: the following other types implement trait `diesel::Expression`:
27+
&'a T
28+
(T0, T1)
29+
(T0, T1, T2)
30+
(T0, T1, T2, T3)
31+
(T0, T1, T2, T3, T4)
32+
(T0, T1, T2, T3, T4, T5)
33+
(T0, T1, T2, T3, T4, T5, T6)
34+
(T0, T1, T2, T3, T4, T5, T6, T7)
35+
and 117 others
1636
= note: required because of the requirements on the impl of `diesel::Expression` for `&'insert i32`
1737
= note: required because of the requirements on the impl of `AsExpression<diesel::sql_types::Text>` for `&'insert i32`
1838
= note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -23,6 +43,16 @@ error[E0277]: the trait bound `i32: diesel::Expression` is not satisfied
2343
10 | #[derive(Insertable)]
2444
| ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `i32`
2545
|
46+
= help: the following other types implement trait `diesel::Expression`:
47+
&'a T
48+
(T0, T1)
49+
(T0, T1, T2)
50+
(T0, T1, T2, T3)
51+
(T0, T1, T2, T3, T4)
52+
(T0, T1, T2, T3, T4, T5)
53+
(T0, T1, T2, T3, T4, T5, T6)
54+
(T0, T1, T2, T3, T4, T5, T6, T7)
55+
and 117 others
2656
= note: required because of the requirements on the impl of `diesel::Expression` for `&i32`
2757
= note: required because of the requirements on the impl of `AsExpression<diesel::sql_types::Text>` for `&i32`
2858
= note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)

test_cases/tests/diesel/bad_sql_query.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ error[E0277]: the trait bound `std::string::String: FromSqlRow<Untyped, Pg>` is
44
4 | diesel::sql_query("…").load(conn)
55
| ^^^^ the trait `FromSqlRow<Untyped, Pg>` is not implemented for `std::string::String`
66
|
7+
= help: the following other types implement trait `FromSqlRow<ST, DB>`:
8+
<(T1, T0) as FromSqlRow<(ST1, Untyped), __DB>>
9+
<(T1, T2, T0) as FromSqlRow<(ST1, ST2, Untyped), __DB>>
10+
<(T1, T2, T3, T0) as FromSqlRow<(ST1, ST2, ST3, Untyped), __DB>>
11+
<(T1, T2, T3, T4, T0) as FromSqlRow<(ST1, ST2, ST3, ST4, Untyped), __DB>>
12+
<(T1, T2, T3, T4, T5, T0) as FromSqlRow<(ST1, ST2, ST3, ST4, ST5, Untyped), __DB>>
13+
<(T1, T2, T3, T4, T5, T6, T0) as FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, Untyped), __DB>>
14+
<(T1, T2, T3, T4, T5, T6, T7, T0) as FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST7, Untyped), __DB>>
15+
<(T1, T2, T3, T4, T5, T6, T7, T8, T0) as FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, Untyped), __DB>>
16+
and 7 others
717
= note: required because of the requirements on the impl of `load_dsl::private::CompatibleType<std::string::String, Pg>` for `Untyped`
818
= note: required because of the requirements on the impl of `LoadQuery<'_, diesel::PgConnection, std::string::String>` for `SqlQuery`
919
note: required by a bound in `diesel::RunQueryDsl::load`

test_cases/tests/diesel/queryable_order_missmatch.stderr

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ error[E0277]: the trait bound `(std::string::String, i32): FromStaticSqlRow<(die
44
17 | users::table.first(conn)
55
| ^^^^^ the trait `FromStaticSqlRow<(diesel::sql_types::Integer, diesel::sql_types::Text), Pg>` is not implemented for `(std::string::String, i32)`
66
|
7-
= help: the following implementations were found:
7+
= help: the following other types implement trait `FromStaticSqlRow<ST, DB>`:
88
<(T0,) as FromStaticSqlRow<(ST0,), __DB>>
99
<(T1, T0) as FromStaticSqlRow<(ST1, ST0), __DB>>
1010
<(T1, T2, T0) as FromStaticSqlRow<(ST1, ST2, ST0), __DB>>
1111
<(T1, T2, T3, T0) as FromStaticSqlRow<(ST1, ST2, ST3, ST0), __DB>>
12-
and 12 others
12+
<(T1, T2, T3, T4, T0) as FromStaticSqlRow<(ST1, ST2, ST3, ST4, ST0), __DB>>
13+
<(T1, T2, T3, T4, T5, T0) as FromStaticSqlRow<(ST1, ST2, ST3, ST4, ST5, ST0), __DB>>
14+
<(T1, T2, T3, T4, T5, T6, T0) as FromStaticSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST0), __DB>>
15+
<(T1, T2, T3, T4, T5, T6, T7, T0) as FromStaticSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST0), __DB>>
16+
and 8 others
1317
note: required because of the requirements on the impl of `diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text), Pg>` for `User`
1418
--> tests/diesel/queryable_order_missmatch.rs:10:10
1519
|

0 commit comments

Comments
 (0)