[INFO] fetching crate tariff 0.1.0... [INFO] checking tariff-0.1.0 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] extracting crate tariff 0.1.0 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate tariff 0.1.0 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate tariff 0.1.0 [INFO] finished tweaking crates.io crate tariff 0.1.0 [INFO] tweaked toml for crates.io crate tariff 0.1.0 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bson v0.1.5 [INFO] [stderr] Downloaded mongodb v0.1.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 479dc15e0bfc4aa474d820784517082388d6811f40baa455aa9df3dd03312a6f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "479dc15e0bfc4aa474d820784517082388d6811f40baa455aa9df3dd03312a6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "479dc15e0bfc4aa474d820784517082388d6811f40baa455aa9df3dd03312a6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "479dc15e0bfc4aa474d820784517082388d6811f40baa455aa9df3dd03312a6f", kill_on_drop: false }` [INFO] [stdout] 479dc15e0bfc4aa474d820784517082388d6811f40baa455aa9df3dd03312a6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd0c439bdbb4ed757e4ce9dd69e18dea33677c7b5d94f8e02f76b3fa41df2176 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bd0c439bdbb4ed757e4ce9dd69e18dea33677c7b5d94f8e02f76b3fa41df2176", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Checking linked-hash-map v0.0.9 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking strsim v0.5.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking chrono v0.2.25 [INFO] [stderr] Checking serde v0.6.15 [INFO] [stderr] Checking textnonce v0.4.1 [INFO] [stderr] Checking semver-parser v0.6.2 [INFO] [stderr] Checking docopt v0.6.86 [INFO] [stderr] Checking semver v0.5.1 [INFO] [stderr] Checking scan_fmt v0.1.3 [INFO] [stderr] Checking bson v0.3.2 [INFO] [stderr] Checking bson v0.1.5 [INFO] [stderr] Checking mongodb v0.1.8 [INFO] [stderr] Checking tariff v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let cursor = try!(self.get_collection(db_name, coll_name)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let colls = try!(self.get_collection_names(db_name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let cursor = try!(self.get_collection(db_name, &coll)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | try!(self.import_documents(db_name, &coll_name, docs)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let cursor = try!(self.get_collection(db_name, coll_name)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let colls = try!(self.get_collection_names(db_name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let cursor = try!(self.get_collection(db_name, &coll)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/client.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | try!(self.import_documents(db_name, &coll_name, docs)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | let json = Bson::Document(doc).to_json(); [INFO] [stdout] | ^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | let json = Bson::Document(doc).to_json(); [INFO] [stdout] | ^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | jsons.push(Bson::Document(doc).to_json()); [INFO] [stdout] | ^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 141 | match doc.get("name") { [INFO] [stdout] | --------------- this expression has type `Option<&bson::bson::Bson>` [INFO] [stdout] 142 | Some(&Bson::String(ref s)) => collections.push(s.to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected enum `bson::bson::Bson`, found enum `Bson` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | jsons.push(Bson::Document(doc).to_json()); [INFO] [stdout] | ^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 141 | match doc.get("name") { [INFO] [stdout] | --------------- this expression has type `Option<&bson::bson::Bson>` [INFO] [stdout] 142 | Some(&Bson::String(ref s)) => collections.push(s.to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected enum `bson::bson::Bson`, found enum `Bson` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:264:36 [INFO] [stdout] | [INFO] [stdout] 264 | match coll.insert_many(chunk.to_owned(), None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` (struct `bson::ordered::OrderedDocument`) [INFO] [stdout] found struct `Vec` (struct `bson::ordered::OrderedDocument`) [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/client.rs:267:38 [INFO] [stdout] | [INFO] [stdout] 267 | println!("{}", e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Write as FmtWrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tariff` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:264:36 [INFO] [stdout] | [INFO] [stdout] 264 | match coll.insert_many(chunk.to_owned(), None) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected struct `bson::ordered::OrderedDocument`, found a different struct `bson::ordered::OrderedDocument` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` (struct `bson::ordered::OrderedDocument`) [INFO] [stdout] found struct `Vec` (struct `bson::ordered::OrderedDocument`) [INFO] [stdout] = note: perhaps two different versions of crate `bson` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/client.rs:267:38 [INFO] [stdout] | [INFO] [stdout] 267 | println!("{}", e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Write as FmtWrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "bd0c439bdbb4ed757e4ce9dd69e18dea33677c7b5d94f8e02f76b3fa41df2176", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd0c439bdbb4ed757e4ce9dd69e18dea33677c7b5d94f8e02f76b3fa41df2176", kill_on_drop: false }` [INFO] [stdout] bd0c439bdbb4ed757e4ce9dd69e18dea33677c7b5d94f8e02f76b3fa41df2176