[INFO] fetching crate infer_schema_internals 1.4.0... [INFO] testing infer_schema_internals-1.4.0 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate infer_schema_internals 1.4.0 into /workspace/builds/worker-45/source [INFO] validating manifest of crates.io crate infer_schema_internals 1.4.0 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate infer_schema_internals 1.4.0 [INFO] finished tweaking crates.io crate infer_schema_internals 1.4.0 [INFO] tweaked toml for crates.io crate infer_schema_internals 1.4.0 written to /workspace/builds/worker-45/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-45/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-45/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ec968055c9f0619fcc1afd507c05dbadefef78efb7fae77cc1a6bcfdaffac0b [INFO] running `Command { std: "docker" "start" "-a" "2ec968055c9f0619fcc1afd507c05dbadefef78efb7fae77cc1a6bcfdaffac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ec968055c9f0619fcc1afd507c05dbadefef78efb7fae77cc1a6bcfdaffac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ec968055c9f0619fcc1afd507c05dbadefef78efb7fae77cc1a6bcfdaffac0b", kill_on_drop: false }` [INFO] [stdout] 2ec968055c9f0619fcc1afd507c05dbadefef78efb7fae77cc1a6bcfdaffac0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-45/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-45/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac5733bb0d557fd2f5242877802f4ec9a6af92394026206c9c6fc0daad768526 [INFO] running `Command { std: "docker" "start" "-a" "ac5733bb0d557fd2f5242877802f4ec9a6af92394026206c9c6fc0daad768526", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling infer_schema_internals v1.4.0 (/opt/rustwide/workdir) [INFO] [stdout] error: At least one backend must be specified for use with this crate. [INFO] [stdout] In Cargo.toml, please specify `features = ["postgresql"]`, `features = ["mysql"]`, or `features = ["sqlite"]` [INFO] [stdout] [INFO] [stdout] ex. `infer_schema_internals { features = ["postgres"] }` [INFO] [stdout] [INFO] [stdout] --> src/inference.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | _ => compile_error!( [INFO] [stdout] | ______________^ [INFO] [stdout] 71 | | "At least one backend must be specified for use with this crate.\n \ [INFO] [stdout] 72 | | In Cargo.toml, please specify `features = [\"postgresql\"]`, \ [INFO] [stdout] 73 | | `features = [\"mysql\"]`, or `features = [\"sqlite\"]`\n\n \ [INFO] [stdout] 74 | | ex. `infer_schema_internals { features = [\"postgres\"] }`\n " [INFO] [stdout] 75 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings, missing_debug_implementations, missing_copy_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `diesel::*` [INFO] [stdout] --> src/data_structures.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused import: `diesel::deserialize::FromSqlRow` [INFO] [stdout] --> src/data_structures.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::deserialize::FromSqlRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | ) -> Result, Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings, missing_debug_implementations, missing_copy_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/inference.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let connection = try!(establish_connection(database_url)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings, missing_debug_implementations, missing_copy_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:42:87 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn establish_connection(database_url: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:79:76 [INFO] [stdout] | [INFO] [stdout] 79 | fn establish_real_connection(database_url: &str) -> Result> [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:94:41 [INFO] [stdout] | [INFO] [stdout] 94 | ) -> Result, Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:113:29 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:127:30 [INFO] [stdout] | [INFO] [stdout] 127 | ) -> Result, Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/inference.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | let primary_keys: Vec = try!(match *conn { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:160:44 [INFO] [stdout] | [INFO] [stdout] 160 | ) -> Result, Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/inference.rs:161:22 [INFO] [stdout] | [INFO] [stdout] 161 | let connection = try!(establish_connection(database_url)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:192:86 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn load_table_data(database_url: &str, name: TableName) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/inference.rs:238:34 [INFO] [stdout] | [INFO] [stdout] 238 | .collect::>>()?; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unreachable expression [INFO] [stdout] --> src/inference.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 95 | let column_info = match *conn { [INFO] [stdout] | _______________________- [INFO] [stdout] 96 | | #[cfg(feature = "sqlite")] [INFO] [stdout] 97 | | InferConnection::Sqlite(ref c) => ::sqlite::get_table_data(c, table), [INFO] [stdout] 98 | | #[cfg(feature = "postgres")] [INFO] [stdout] ... | [INFO] [stdout] 101 | | InferConnection::Mysql(ref c) => ::information_schema::get_table_data(c, table), [INFO] [stdout] 102 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 103 | / if let Err(NotFound) = column_info { [INFO] [stdout] 104 | | Err(format!("no table exists named {}", table.to_string()).into()) [INFO] [stdout] 105 | | } else { [INFO] [stdout] 106 | | column_info.map_err(Into::into) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings, missing_debug_implementations, missing_copy_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unreachable arm [INFO] [stdout] --> src/inference.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | let primary_keys: Vec = try!(match *conn { [INFO] [stdout] | ______________________________________^____- [INFO] [stdout] | | _____________________________________| [INFO] [stdout] | || [INFO] [stdout] 129 | || #[cfg(feature = "sqlite")] [INFO] [stdout] 130 | || InferConnection::Sqlite(ref c) => ::sqlite::get_primary_keys(c, table), [INFO] [stdout] 131 | || #[cfg(feature = "postgres")] [INFO] [stdout] ... || [INFO] [stdout] 134 | || InferConnection::Mysql(ref c) => ::information_schema::get_primary_keys(c, table), [INFO] [stdout] 135 | || }); [INFO] [stdout] | ||_____-^ unreachable arm [INFO] [stdout] | |______| [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/inference.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | let primary_keys: Vec = try!(match *conn { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 129 | | #[cfg(feature = "sqlite")] [INFO] [stdout] 130 | | InferConnection::Sqlite(ref c) => ::sqlite::get_primary_keys(c, table), [INFO] [stdout] 131 | | #[cfg(feature = "postgres")] [INFO] [stdout] ... | [INFO] [stdout] 134 | | InferConnection::Mysql(ref c) => ::information_schema::get_primary_keys(c, table), [INFO] [stdout] 135 | | }); [INFO] [stdout] | |______^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/inference.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | let primary_keys: Vec = try!(match *conn { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 129 | | #[cfg(feature = "sqlite")] [INFO] [stdout] 130 | | InferConnection::Sqlite(ref c) => ::sqlite::get_primary_keys(c, table), [INFO] [stdout] 131 | | #[cfg(feature = "postgres")] [INFO] [stdout] ... | [INFO] [stdout] 134 | | InferConnection::Mysql(ref c) => ::information_schema::get_primary_keys(c, table), [INFO] [stdout] 135 | | }); [INFO] [stdout] | |______^ cannot infer type for type parameter `T` declared on the trait `From` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `Box: From<_>` found in the following crates: `core`, `std`: [INFO] [stdout] - impl From for Box<(dyn std::error::Error + 'static)>; [INFO] [stdout] - impl<'a, E> From for Box<(dyn std::error::Error + 'a)> [INFO] [stdout] where E: 'a, E: std::error::Error; [INFO] [stdout] - impl<'a> From> for Box<(dyn std::error::Error + 'static)>; [INFO] [stdout] - impl<> From<&str> for Box<(dyn std::error::Error + 'static)>; [INFO] [stdout] and 1 more [INFO] [stdout] note: required by `from` [INFO] [stdout] = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unreachable expression [INFO] [stdout] --> src/inference.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 163 | let constraints = match connection { [INFO] [stdout] | _______________________- [INFO] [stdout] 164 | | #[cfg(feature = "sqlite")] [INFO] [stdout] 165 | | InferConnection::Sqlite(c) => ::sqlite::load_foreign_key_constraints(&c, schema_name), [INFO] [stdout] 166 | | #[cfg(feature = "postgres")] [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 175 | [INFO] [stdout] 176 | / constraints.map(|mut ct| { [INFO] [stdout] 177 | | ct.sort(); [INFO] [stdout] 178 | | ct [INFO] [stdout] 179 | | }) [INFO] [stdout] | |______^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/inference.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 163 | let constraints = match connection { [INFO] [stdout] | ----------- consider giving `constraints` a type [INFO] [stdout] ... [INFO] [stdout] 176 | constraints.map(|mut ct| { [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0283. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `infer_schema_internals` due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "ac5733bb0d557fd2f5242877802f4ec9a6af92394026206c9c6fc0daad768526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac5733bb0d557fd2f5242877802f4ec9a6af92394026206c9c6fc0daad768526", kill_on_drop: false }` [INFO] [stdout] ac5733bb0d557fd2f5242877802f4ec9a6af92394026206c9c6fc0daad768526