SHARE
TWEET

Untitled

a guest Jan 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. error[E0271]: type mismatch resolving `<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>> as diesel::query_source::AppearsInFromClause<schema::analyze_cratefile::table>>::Count == diesel::query_source::Once`
  2.    --> cargofox/src/lib.rs:250:10                                                            
  3.     |                                                                                        
  4. 250 |         .select((                                                                      
  5.     |          ^^^^^^ expected struct `diesel::query_source::Never`, found struct `diesel::query_source::Once`
  6.     |                                                                                        
  7.     = note: expected type `diesel::query_source::Never`                                      
  8.                found type `diesel::query_source::Once`                                      
  9.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>>` for `schema::analyze_cratefile::columns::size`
  10.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `schema::analyze_cratefile::columns::size`
  11.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)`
  12.     = note: required because of the requirements on the impl of `diesel::query_dsl::select_dsl::SelectDsl<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>` for `diesel::query_builder::SelectStatement<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>`
  13.                                                                                              
  14. error[E0271]: type mismatch resolving `<schema::analyze_cratefile::table as diesel::query_source::AppearsInFromClause<schema::analyze_cratefile::table>>::Count == diesel::query_source::Never`
  15.    --> cargofox/src/lib.rs:250:10                                                            
  16.     |                                                                                        
  17. 250 |         .select((                                                                      
  18.     |          ^^^^^^ expected struct `diesel::query_source::Once`, found struct `diesel::query_source::Never`
  19.     |                                                                                        
  20.     = note: expected type `diesel::query_source::Once`                                      
  21.                found type `diesel::query_source::Never`                                      
  22.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>>` for `schema::analyze_cratefile::columns::size`
  23.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `schema::analyze_cratefile::columns::size`
  24.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)`
  25.     = note: required because of the requirements on the impl of `diesel::query_dsl::select_dsl::SelectDsl<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>` for `diesel::query_builder::SelectStatement<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>`
  26.                                                                                              
  27. error[E0271]: type mismatch resolving `<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>> as diesel::query_source::AppearsInFromClause<schema::analyze_cratefile::table>>::Count == diesel::query_source::Once`
  28.    --> cargofox/src/lib.rs:260:10                                                            
  29.     |                                                                                        
  30. 260 |         .get_results::<CrateWithAnalysis>(conn)                                        
  31.     |          ^^^^^^^^^^^ expected struct `diesel::query_source::Never`, found struct `diesel::query_source::Once`
  32.     |                                                                                        
  33.     = note: expected type `diesel::query_source::Never`                                      
  34.                found type `diesel::query_source::Once`                                      
  35.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>>` for `schema::analyze_cratefile::columns::size`
  36.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `schema::analyze_cratefile::columns::size`
  37.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)`
  38.     = note: required because of the requirements on the impl of `diesel::query_builder::select_clause::SelectClauseExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `diesel::query_builder::select_clause::SelectClause<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>`
  39.     = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<_, models::CrateWithAnalysis>` for `diesel::query_builder::SelectStatement<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>, diesel::query_builder::select_clause::SelectClause<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>>`
  40.                                                                                              
  41. error[E0271]: type mismatch resolving `<schema::analyze_cratefile::table as diesel::query_source::AppearsInFromClause<schema::analyze_cratefile::table>>::Count == diesel::query_source::Never`
  42.    --> cargofox/src/lib.rs:260:10                                                            
  43.     |                                                                                        
  44. 260 |         .get_results::<CrateWithAnalysis>(conn)                                        
  45.     |          ^^^^^^^^^^^ expected struct `diesel::query_source::Once`, found struct `diesel::query_source::Never`
  46.     |                                                                                        
  47.     = note: expected type `diesel::query_source::Once`                                      
  48.                found type `diesel::query_source::Never`                                      
  49.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>>` for `schema::analyze_cratefile::columns::size`
  50.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `schema::analyze_cratefile::columns::size`
  51.     = note: required because of the requirements on the impl of `diesel::SelectableExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)`
  52.     = note: required because of the requirements on the impl of `diesel::query_builder::select_clause::SelectClauseExpression<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>>` for `diesel::query_builder::select_clause::SelectClause<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>`
  53.     = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<_, models::CrateWithAnalysis>` for `diesel::query_builder::SelectStatement<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>, diesel::query_builder::select_clause::SelectClause<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>>`
  54.                                                                                              
  55. error[E0277]: the trait bound `(std::option::Option<i64>,): diesel::Queryable<diesel::sql_types::BigInt, _>` is not satisfied
  56.    --> cargofox/src/lib.rs:260:10                                                            
  57.     |                                                                                        
  58. 260 |         .get_results::<CrateWithAnalysis>(conn)                                        
  59.     |          ^^^^^^^^^^^ the trait `diesel::Queryable<diesel::sql_types::BigInt, _>` is not implemented for `(std::option::Option<i64>,)`
  60.     |                                                                                        
  61.     = help: the following implementations were found:                                        
  62.               <(A,) as diesel::Queryable<(SA,), __DB>>                                      
  63.               <(A,) as diesel::Queryable<diesel::sql_types::Record<(SA,)>, diesel::pg::Pg>>  
  64.     = note: required because of the requirements on the impl of `diesel::Queryable<diesel::sql_types::BigInt, _>` for `models::CrateFileAnalysisThing`
  65.     = note: required because of the requirements on the impl of `diesel::Queryable<diesel::sql_types::Nullable<diesel::sql_types::BigInt>, _>` for `std::option::Option<models::CrateFileAnalysisThing>`
  66.     = note: required because of the requirements on the impl of `diesel::Queryable<(diesel::sql_types::BigInt, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::BigInt>), _>` for `(i64, std::string::String, std::option::Option<models::CrateFileAnalysisThing>)`
  67.     = note: required because of the requirements on the impl of `diesel::Queryable<(diesel::sql_types::BigInt, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::BigInt>), _>` for `models::CrateWithAnalysis`
  68.     = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<_, models::CrateWithAnalysis>` for `diesel::query_builder::SelectStatement<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<diesel::query_source::joins::JoinOn<diesel::query_source::joins::Join<schema::crate_versions::table, schema::crates::table, diesel::query_source::joins::Inner>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::crate_versions::columns::crate_id>, diesel::expression::nullable::Nullable<schema::crates::columns::id>>>, schema::analyze_cratefile::table, diesel::query_source::joins::LeftOuter>, diesel::expression::operators::Eq<diesel::expression::nullable::Nullable<schema::analyze_cratefile::columns::crate_versions_id>, diesel::expression::nullable::Nullable<schema::crate_versions::columns::id>>>, diesel::query_builder::select_clause::SelectClause<(schema::crate_versions::columns::id, schema::crates::columns::name, schema::analyze_cratefile::columns::size)>>`
  69.                                                                                              
  70. error: aborting due to 5 previous errors                                                    
  71.                                                                                              
  72. Some errors occurred: E0271, E0277.                                                          
  73. For more information about an error, try `rustc --explain E0271`.                            
  74. error: Could not compile `cargofox`.                                                        
  75.  
  76. To learn more, run the command again with --verbose.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top