Skip to content

Commit

Permalink
Update compile test output to 1.54
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Jan 24, 2022
1 parent d28dcfb commit cbc7ef3
Show file tree
Hide file tree
Showing 27 changed files with 135 additions and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>`
= note: required because of the requirements on the impl of `AppearsInFromClause<posts::table>` for `FromClause<users::table>`
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `posts::columns::title`
= note: 1 redundant requirements hidden
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `diesel::expression::operators::Desc<posts::columns::title>`
= note: required because of the requirements on the impl of `OrderDsl<diesel::expression::operators::Desc<posts::columns::title>>` for `BoxedSelectStatement<'_, (diesel::sql_types::Integer, diesel::sql_types::Text), FromClause<users::table>, Pg>`
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `Desc<posts::columns::title>`
= note: required because of the requirements on the impl of `OrderDsl<Desc<posts::columns::title>>` for `BoxedSelectStatement<'_, (diesel::sql_types::Integer, diesel::sql_types::Text), FromClause<users::table>, Pg>`
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ error[E0277]: the trait bound `diesel::expression::is_aggregate::Yes: MixedAggre
= help: the following implementations were found:
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Never>>
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Yes>>
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<diesel::expression::operators::Gt<diesel::expression::count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>`
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Gt<diesel::expression::count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>>` for `SelectStatement<FromClause<users::table>>`
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<Gt<count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>`
= note: required because of the requirements on the impl of `FilterDsl<Grouped<Gt<count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>>` for `SelectStatement<FromClause<users::table>>`
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
error[E0599]: the method `is_not_null` exists for tuple `(columns::id, columns::name)`, but its trait bounds were not satisfied
--> $DIR/cannot_use_expression_methods_on_tuples.rs:18:29
--> tests/fail/cannot_use_expression_methods_on_tuples.rs:18:29
|
18 | users.filter((id, name).is_not_null());
| ^^^^^^^^^^^ method cannot be called on `(columns::id, columns::name)` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`(diesel::sql_types::Integer, diesel::sql_types::Text): diesel::sql_types::SingleValue`
`(diesel::sql_types::Integer, diesel::sql_types::Text): SingleValue`
which is required by `(columns::id, columns::name): diesel::ExpressionMethods`
`(diesel::sql_types::Integer, diesel::sql_types::Text): diesel::sql_types::SingleValue`
`(diesel::sql_types::Integer, diesel::sql_types::Text): SingleValue`
which is required by `&(columns::id, columns::name): diesel::ExpressionMethods`
`&mut (columns::id, columns::name): diesel::Expression`
which is required by `&mut (columns::id, columns::name): diesel::ExpressionMethods`

error[E0599]: the method `eq_any` exists for tuple `(columns::id, columns::name)`, but its trait bounds were not satisfied
--> $DIR/cannot_use_expression_methods_on_tuples.rs:19:29
--> tests/fail/cannot_use_expression_methods_on_tuples.rs:19:29
|
19 | users.filter((id, name).eq_any(users.find(1)));
| ^^^^^^ method cannot be called on `(columns::id, columns::name)` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`(diesel::sql_types::Integer, diesel::sql_types::Text): diesel::sql_types::SingleValue`
`(diesel::sql_types::Integer, diesel::sql_types::Text): SingleValue`
which is required by `(columns::id, columns::name): diesel::ExpressionMethods`
`(diesel::sql_types::Integer, diesel::sql_types::Text): diesel::sql_types::SingleValue`
`(diesel::sql_types::Integer, diesel::sql_types::Text): SingleValue`
which is required by `&(columns::id, columns::name): diesel::ExpressionMethods`
`&mut (columns::id, columns::name): diesel::Expression`
which is required by `&mut (columns::id, columns::name): diesel::ExpressionMethods`
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ error: Table contains more than 16 columns. Consider enabling the `32-column-tab
23 | | }
| |_^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the macro `$crate::__diesel_error_table_size` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ error[E0277]: the trait bound `diesel::expression::is_aggregate::Yes: MixedAggre
= help: the following implementations were found:
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Never>>
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Yes>>
= note: required because of the requirements on the impl of `Query` for `UpdateStatement<users::table, diesel::query_builder::where_clause::WhereClause<Grouped<diesel::expression::operators::Eq<columns::id, diesel::expression::bound::Bound<diesel::sql_types::Integer, i32>>>>, diesel::query_builder::update_statement::changeset::Assign<columns::name, diesel::expression::bound::Bound<diesel::sql_types::Text, &str>>, ReturningClause<diesel::expression::count::count::count<diesel::sql_types::Integer, columns::id>>>`
= note: required because of the requirements on the impl of `Query` for `UpdateStatement<users::table, diesel::query_builder::where_clause::WhereClause<Grouped<diesel::expression::operators::Eq<columns::id, diesel::expression::bound::Bound<diesel::sql_types::Integer, i32>>>>, diesel::query_builder::update_statement::changeset::Assign<columns::name, diesel::expression::bound::Bound<diesel::sql_types::Text, &str>>, ReturningClause<count::count::count<diesel::sql_types::Integer, columns::id>>>`

error[E0277]: the trait bound `diesel::expression::is_aggregate::No: MixedAggregates<diesel::expression::is_aggregate::Yes>` is not satisfied
--> tests/fail/custom_returning_requires_nonaggregate.rs:27:53
Expand All @@ -18,6 +18,6 @@ error[E0277]: the trait bound `diesel::expression::is_aggregate::No: MixedAggreg
= help: the following implementations were found:
<diesel::expression::is_aggregate::No as MixedAggregates<diesel::expression::is_aggregate::Never>>
<diesel::expression::is_aggregate::No as MixedAggregates<diesel::expression::is_aggregate::No>>
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `(columns::name, diesel::expression::count::count::count<diesel::sql_types::Text, columns::name>)`
= note: required because of the requirements on the impl of `NonAggregate` for `(columns::name, diesel::expression::count::count::count<diesel::sql_types::Text, columns::name>)`
= note: required because of the requirements on the impl of `Query` for `InsertStatement<users::table, ValuesClause<(DefaultableColumnInsertValue<ColumnInsertValue<columns::name, diesel::expression::bound::Bound<diesel::sql_types::Text, &std::string::String>>>,), users::table>, diesel::query_builder::insert_statement::Insert, ReturningClause<(columns::name, diesel::expression::count::count::count<diesel::sql_types::Text, columns::name>)>>`
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `(columns::name, count::count::count<diesel::sql_types::Text, columns::name>)`
= note: required because of the requirements on the impl of `NonAggregate` for `(columns::name, count::count::count<diesel::sql_types::Text, columns::name>)`
= note: required because of the requirements on the impl of `Query` for `InsertStatement<users::table, ValuesClause<(DefaultableColumnInsertValue<ColumnInsertValue<columns::name, diesel::expression::bound::Bound<diesel::sql_types::Text, &std::string::String>>>,), users::table>, diesel::query_builder::insert_statement::Insert, ReturningClause<(columns::name, count::count::count<diesel::sql_types::Text, columns::name>)>>`
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ error: Deriving `AsChangeset` on a structure that only contains primary keys isn
= help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`.
= note: `#[derive(AsChangeset)]` never changes the primary key of a row.

--> $DIR/as_changeset_struct_with_only_primary_key.rs:18:10
--> tests/fail/derive/as_changeset_struct_with_only_primary_key.rs:18:10
|
18 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)

error: Deriving `AsChangeset` on a structure that only contains primary keys isn't supported.

= help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`.
= note: `#[derive(AsChangeset)]` never changes the primary key of a row.

--> $DIR/as_changeset_struct_with_only_primary_key.rs:24:10
--> tests/fail/derive/as_changeset_struct_with_only_primary_key.rs:24:10
|
24 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: At least one `sql_type` is needed for deriving `AsExpression` on a structure.
--> $DIR/as_expression_without_sql_type.rs:4:10
--> tests/fail/derive/as_expression_without_sql_type.rs:4:10
|
4 | #[derive(AsExpression)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsExpression` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: At least one `belongs_to` is needed for deriving `Associations` on a structure.
--> $DIR/associations_without_belongs_to.rs:4:10
--> tests/fail/derive/associations_without_belongs_to.rs:4:10
|
4 | #[derive(Associations)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Associations` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
error: This derive can only be used on non-unit structs
--> $DIR/bad_derive_input.rs:12:10
--> tests/fail/derive/bad_derive_input.rs:12:10
|
12 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/bad_derive_input.rs:16:10
--> tests/fail/derive/bad_derive_input.rs:16:10
|
16 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)
14 changes: 7 additions & 7 deletions diesel_compile_tests/tests/fail/derive/bad_foreign_derive.stderr
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
error: expected `,`
--> $DIR/bad_foreign_derive.rs:7:25
--> tests/fail/derive/bad_foreign_derive.rs:7:25
|
7 | #[diesel(foreign_derive = true)]
| ^

error: foreign_derive requires at least one field
--> $DIR/bad_foreign_derive.rs:10:10
--> tests/fail/derive/bad_foreign_derive.rs:10:10
|
10 | #[derive(ValidGrouping)]
| ^^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `ValidGrouping` (in Nightly builds, run with -Z macro-backtrace for more info)

error: foreign_derive requires at least one field
--> $DIR/bad_foreign_derive.rs:14:10
--> tests/fail/derive/bad_foreign_derive.rs:14:10
|
14 | #[derive(AsExpression)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsExpression` (in Nightly builds, run with -Z macro-backtrace for more info)

error: foreign_derive requires at least one field
--> $DIR/bad_foreign_derive.rs:19:10
--> tests/fail/derive/bad_foreign_derive.rs:19:10
|
19 | #[derive(FromSqlRow)]
| ^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `FromSqlRow` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error[E0261]: use of undeclared lifetime name `'a`
--> $DIR/belongs_to_incorrect_lifetime_syntax.rs:25:25
--> tests/fail/derive/belongs_to_incorrect_lifetime_syntax.rs:25:25
|
24 | #[derive(Associations)]
| - help: consider introducing lifetime `'a` here: `'a,`
| - lifetime `'a` is missing in item created through this procedural macro
25 | #[diesel(belongs_to(Foo<'a>))]
| ^^ undeclared lifetime
28 changes: 14 additions & 14 deletions diesel_compile_tests/tests/fail/derive/empty_struct.stderr
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:10:10
--> tests/fail/derive/empty_struct.rs:10:10
|
10 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:14:10
--> tests/fail/derive/empty_struct.rs:14:10
|
14 | #[derive(Identifiable)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Identifiable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:18:10
--> tests/fail/derive/empty_struct.rs:18:10
|
18 | #[derive(Insertable)]
| ^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:22:10
--> tests/fail/derive/empty_struct.rs:22:10
|
22 | #[derive(Queryable)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:25:10
--> tests/fail/derive/empty_struct.rs:25:10
|
25 | #[derive(QueryableByName)]
| ^^^^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `QueryableByName` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:28:10
--> tests/fail/derive/empty_struct.rs:28:10
|
28 | #[derive(Selectable)]
| ^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Selectable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: This derive can only be used on non-unit structs
--> $DIR/empty_struct.rs:31:10
--> tests/fail/derive/empty_struct.rs:31:10
|
31 | #[derive(Associations)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Associations` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
error: No field with column name id
--> $DIR/identifiable_missing_pk_field.rs:10:10
--> tests/fail/derive/identifiable_missing_pk_field.rs:10:10
|
10 | #[derive(Identifiable)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Identifiable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: No field with column name id
--> $DIR/identifiable_missing_pk_field.rs:14:10
--> tests/fail/derive/identifiable_missing_pk_field.rs:14:10
|
14 | #[derive(Identifiable)]
| ^^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `Identifiable` (in Nightly builds, run with -Z macro-backtrace for more info)

error: No field with column name bar
--> $DIR/identifiable_missing_pk_field.rs:22:22
--> tests/fail/derive/identifiable_missing_pk_field.rs:22:22
|
22 | #[diesel(primary_key(bar))]
| ^^^

error: No field with column name baz
--> $DIR/identifiable_missing_pk_field.rs:27:22
--> tests/fail/derive/identifiable_missing_pk_field.rs:27:22
|
27 | #[diesel(primary_key(baz))]
| ^^^

error: No field with column name bar
--> $DIR/identifiable_missing_pk_field.rs:35:27
--> tests/fail/derive/identifiable_missing_pk_field.rs:35:27
|
35 | #[diesel(primary_key(foo, bar))]
| ^^^

error: No field with column name bar
--> $DIR/identifiable_missing_pk_field.rs:42:27
--> tests/fail/derive/identifiable_missing_pk_field.rs:42:27
|
42 | #[diesel(primary_key(foo, bar))]
| ^^^
4 changes: 2 additions & 2 deletions diesel_compile_tests/tests/fail/derive/tuple_struct.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: All fields of tuple structs must be annotated with `#[diesel(column_name)]`
--> $DIR/tuple_struct.rs:12:10
--> tests/fail/derive/tuple_struct.rs:12:10
|
12 | #[derive(AsChangeset)]
| ^^^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `AsChangeset` (in Nightly builds, run with -Z macro-backtrace for more info)
Loading

0 comments on commit cbc7ef3

Please sign in to comment.