[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] checking dpetrick/mongo-beta against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpetrick%2Fmongo-beta" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dpetrick/mongo-beta on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-13/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9962eb31c25c9343155f72c7ff1d2c7bbd5473f473ff2da0279cdfdef7c37df [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" "c9962eb31c25c9343155f72c7ff1d2c7bbd5473f473ff2da0279cdfdef7c37df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9962eb31c25c9343155f72c7ff1d2c7bbd5473f473ff2da0279cdfdef7c37df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9962eb31c25c9343155f72c7ff1d2c7bbd5473f473ff2da0279cdfdef7c37df", kill_on_drop: false }` [INFO] [stdout] c9962eb31c25c9343155f72c7ff1d2c7bbd5473f473ff2da0279cdfdef7c37df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 9f90682165dcd33895f1462707885b4556b2456f9d0ee4b92a48acab611bda2b [INFO] running `Command { std: "docker" "start" "-a" "9f90682165dcd33895f1462707885b4556b2456f9d0ee4b92a48acab611bda2b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking os_info v3.0.6 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking futures-channel v0.3.15 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking pbkdf2 v0.7.5 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking sha2 v0.9.5 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [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 darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.4.2 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking trust-dns-proto v0.20.3 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking trust-dns-resolver v0.20.3 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_with v1.9.2 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking bson v2.0.0-beta.1 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking reqwest v0.11.3 [INFO] [stderr] Checking mongodb v2.0.0-beta.1 [INFO] [stderr] Checking 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: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: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: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] [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] [stderr] error: could not compile `mongo-beta` due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: build failed [INFO] running `Command { std: "docker" "inspect" "9f90682165dcd33895f1462707885b4556b2456f9d0ee4b92a48acab611bda2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f90682165dcd33895f1462707885b4556b2456f9d0ee4b92a48acab611bda2b", kill_on_drop: false }` [INFO] [stdout] 9f90682165dcd33895f1462707885b4556b2456f9d0ee4b92a48acab611bda2b