Skip to content

Commit b046086

Browse files
committed
Fix compile test snapshots
1 parent 3b3a1e9 commit b046086

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

diesel_compile_tests/tests/fail/cannot_join_to_non_joinable_table.stderr

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ help: the trait `JoinTo<posts::table>` is not implemented for `users::table`
1111
|
1212
LL | / table! {
1313
LL | | users {
14-
| |_________^
14+
LL | | id -> Integer,
15+
LL | | name -> VarChar,
16+
LL | | }
17+
LL | | }
18+
| |_^
1519
= note: joining tables directly either requires a `diesel::joinable!` definition or calling `JoinOnDsl::on` to manually specify the `ON` clause of the join`
1620
= help: the following other types implement trait `JoinTo<T>`:
1721
`users::table` implements `JoinTo<Alias<S>>`
@@ -45,7 +49,11 @@ help: the trait `JoinTo<posts::table>` is not implemented for `users::table`
4549
|
4650
LL | / table! {
4751
LL | | users {
48-
| |_________^
52+
LL | | id -> Integer,
53+
LL | | name -> VarChar,
54+
LL | | }
55+
LL | | }
56+
| |_^
4957
= note: joining tables directly either requires a `diesel::joinable!` definition or calling `JoinOnDsl::on` to manually specify the `ON` clause of the join`
5058
= help: the following other types implement trait `JoinTo<T>`:
5159
`users::table` implements `JoinTo<Alias<S>>`
@@ -77,7 +85,11 @@ help: the trait `JoinTo<users::table>` is not implemented for `posts::table`
7785
|
7886
LL | / table! {
7987
LL | | posts {
80-
| |_________^
88+
LL | | id -> Integer,
89+
LL | | title -> VarChar,
90+
LL | | }
91+
LL | | }
92+
| |_^
8193
= note: joining tables directly either requires a `diesel::joinable!` definition or calling `JoinOnDsl::on` to manually specify the `ON` clause of the join`
8294
= help: the following other types implement trait `JoinTo<T>`:
8395
`posts::table` implements `JoinTo<Alias<S>>`

diesel_compile_tests/tests/fail/derive/has_query.stderr

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ help: the trait `TableNotEqual<posts::table>` is not implemented for `users::tab
216216
|
217217
LL | / table! {
218218
LL | | users {
219-
| |_________^
219+
LL | | id -> Integer,
220+
LL | | name -> Text,
221+
LL | | }
222+
LL | | }
223+
| |_^
220224
= note: double check that `posts::table` and `users::table` appear in the same `allow_tables_to_appear_in_same_query!`
221225
call if both are tables
222226
= help: the following other types implement trait `TableNotEqual<T>`:
@@ -295,7 +299,11 @@ help: the trait `TableNotEqual<posts::table>` is not implemented for `users::tab
295299
|
296300
LL | / table! {
297301
LL | | users {
298-
| |_________^
302+
LL | | id -> Integer,
303+
LL | | name -> Text,
304+
LL | | }
305+
LL | | }
306+
| |_^
299307
= note: double check that `posts::table` and `users::table` appear in the same `allow_tables_to_appear_in_same_query!`
300308
call if both are tables
301309
= help: the following other types implement trait `TableNotEqual<T>`:

diesel_compile_tests/tests/fail/distinct_on_allows_only_fields_of_table.stderr

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ help: the trait `DistinctOnDsl<posts::columns::id>` is not implemented for `user
99
|
1010
LL | / table! {
1111
LL | | users {
12-
| |_________^
12+
LL | | id -> Integer,
13+
LL | | name -> VarChar,
14+
LL | | }
15+
LL | | }
16+
| |_^
1317
= note: a `DISTINCT ON` clause is not compatible with various other clauses like `LOCKING` clauses
1418
= note: a `DISTINCT ON` clause also disallows mixing aggregate and non-aggregate expressions with the `SELECT` clause
1519
= help: the following other types implement trait `DistinctOnDsl<Selection>`:
@@ -36,7 +40,11 @@ help: the trait `DistinctOnDsl<(posts::columns::name, users::columns::name)>` is
3640
|
3741
LL | / table! {
3842
LL | | posts {
39-
| |_________^
43+
LL | | id -> Integer,
44+
LL | | name -> Text,
45+
... |
46+
LL | | }
47+
| |_^
4048
= note: a `DISTINCT ON` clause is not compatible with various other clauses like `LOCKING` clauses
4149
= note: a `DISTINCT ON` clause also disallows mixing aggregate and non-aggregate expressions with the `SELECT` clause
4250
= help: the following other types implement trait `DistinctOnDsl<Selection>`:

diesel_compile_tests/tests/fail/insert_from_select_cant_be_used_with_tuples_or_arrays.stderr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ help: the trait `UndecoratedInsertRecord<posts::table>` is not implemented for `
99
|
1010
LL | / table! {
1111
LL | | users {
12-
| |_________^
12+
LL | | id -> Integer,
13+
LL | | name -> Text,
14+
... |
15+
LL | | }
16+
| |_^
1317
= help: the following other types implement trait `UndecoratedInsertRecord<Table>`:
1418
`&T` implements `UndecoratedInsertRecord<Tab>`
1519
`(T, T1)` implements `UndecoratedInsertRecord<Tab>`

0 commit comments

Comments
 (0)