[INFO] cloning repository https://github.com/dpetrick/mongo-beta [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dpetrick/mongo-beta" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpetrick%2Fmongo-beta", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpetrick%2Fmongo-beta'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9127940c446665f3b267e28d6ab26598fb119a01 [INFO] testing dpetrick/mongo-beta against beta-2021-09-08 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpetrick%2Fmongo-beta" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dpetrick/mongo-beta on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dpetrick/mongo-beta [INFO] finished tweaking git repo https://github.com/dpetrick/mongo-beta [INFO] tweaked toml for git repo https://github.com/dpetrick/mongo-beta written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/dpetrick/mongo-beta already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 14212d5b60f46b66c73a29988be5684eab80f5344ec64734775177a7eefd9dc9 [INFO] running `Command { std: "docker" "start" "-a" "14212d5b60f46b66c73a29988be5684eab80f5344ec64734775177a7eefd9dc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14212d5b60f46b66c73a29988be5684eab80f5344ec64734775177a7eefd9dc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14212d5b60f46b66c73a29988be5684eab80f5344ec64734775177a7eefd9dc9", kill_on_drop: false }` [INFO] [stdout] 14212d5b60f46b66c73a29988be5684eab80f5344ec64734775177a7eefd9dc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47a15ddbb56ec5d4072003711f4b64697522938ce76c2e4758528ed7448f5863 [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" "47a15ddbb56ec5d4072003711f4b64697522938ce76c2e4758528ed7448f5863", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling os_info v3.0.6 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling typed-builder v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling serde_with v1.9.2 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling bson v2.0.0-beta.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling hyper v0.14.9 [INFO] [stderr] Compiling hyper-rustls v0.22.1 [INFO] [stderr] Compiling reqwest v0.11.3 [INFO] [stderr] Compiling mongodb v2.0.0-beta.1 [INFO] [stderr] Compiling mongo-beta v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | .projection(self.projection) [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `mongodb::bson::Document`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `mongodb::bson::Document` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | .limit(self.limit) [INFO] [stdout] | ^^^^^^^^^^ expected `i64`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | .skip(self.skip) [INFO] [stdout] | ^^^^^^^^^ expected `u64`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | .sort(self.sort) [INFO] [stdout] | ^^^^^^^^^ expected struct `mongodb::bson::Document`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `mongodb::bson::Document` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 33 | let options = if let Some(projection) = self.projection { [INFO] [stdout] | _______________________- [INFO] [stdout] 34 | | options.projection(projection) [INFO] [stdout] | | ------------------------------ expected because of this [INFO] [stdout] 35 | | } else { [INFO] [stdout] 36 | | // The typing changes on `.projection()` prevents this pattern [INFO] [stdout] 37 | | options [INFO] [stdout] | | ^^^^^^^ expected tuple, found `()` [INFO] [stdout] 38 | | }; [INFO] [stdout] | |_________- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `FindOptionsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (Option,), (), (), (), (), (), (), ())>` [INFO] [stdout] found struct `FindOptionsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0639]: cannot create non-exhaustive struct using struct expression [INFO] [stdout] --> src/main.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let options = FindOneOptions { [INFO] [stdout] | _______________________^ [INFO] [stdout] 50 | | projection: self.projection, [INFO] [stdout] 51 | | skip: self.skip, [INFO] [stdout] 52 | | sort: self.sort, [INFO] [stdout] 53 | | ..Default::default() [INFO] [stdout] 54 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option: From>` is not satisfied [INFO] [stdout] --> src/main.rs:56:33 [INFO] [stdout] | [INFO] [stdout] 56 | let cursor = collection.find(self.filter, Some(options)).await.unwrap(); [INFO] [stdout] | ^^^^ the trait `From>` is not implemented for `Option` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] as From<&'a Option>> [INFO] [stdout] as From<&'a mut Option>> [INFO] [stdout] as From<&'a tracing::span::EnteredSpan>> [INFO] [stdout] as From<&'a tracing::span::Span>> [INFO] [stdout] and 12 others [INFO] [stdout] = note: required because of the requirements on the impl of `Into>` for `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0639. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mongo-beta` due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "47a15ddbb56ec5d4072003711f4b64697522938ce76c2e4758528ed7448f5863", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47a15ddbb56ec5d4072003711f4b64697522938ce76c2e4758528ed7448f5863", kill_on_drop: false }` [INFO] [stdout] 47a15ddbb56ec5d4072003711f4b64697522938ce76c2e4758528ed7448f5863