[INFO] updating cached repository https://github.com/ccakes/bmp-client-rs [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] e996977d5b2f9d7afb7dc8c1aebd6f92d18bcd02 [INFO] testing ccakes/bmp-client-rs against master#28742a1146f10a4f09369baad027a464acb7a766 for pr-71274 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fccakes%2Fbmp-client-rs" "/workspace/builds/worker-12/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ccakes/bmp-client-rs on toolchain 28742a1146f10a4f09369baad027a464acb7a766 [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/ccakes/bmp-client-rs [INFO] finished tweaking git repo https://github.com/ccakes/bmp-client-rs [INFO] tweaked toml for git repo https://github.com/ccakes/bmp-client-rs written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/ccakes/bmp-client-rs already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating git repository `https://github.com/ccakes/bmp-protocol-rs` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/ccakes/bgp-rs` [INFO] [stderr] error: the lock file /workspace/builds/worker-12/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/ccakes/bmp-protocol-rs` [INFO] [stderr] Updating git repository `https://github.com/ccakes/bgp-rs` [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9b5852ac08fcd51635cef37a5ddf4164f30ca27f2a6d4ad07610a24c9477e614 [INFO] running `"docker" "start" "-a" "9b5852ac08fcd51635cef37a5ddf4164f30ca27f2a6d4ad07610a24c9477e614"` [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling futures-core v0.3.4 [INFO] [stderr] Compiling protobuf v2.14.0 [INFO] [stderr] Compiling prometheus v0.7.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling tracing-core v0.1.10 [INFO] [stderr] Compiling hashbrown v0.7.1 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling const-random v0.1.8 [INFO] [stderr] Compiling ahash v0.3.2 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling tracing-attributes v0.1.7 [INFO] [stderr] Compiling tokio v0.2.19 [INFO] [stderr] Compiling tracing v0.1.13 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling bgp-rs v0.5.1 (https://github.com/ccakes/bgp-rs#dcc8dbdb) [INFO] [stderr] Compiling bmp-protocol v0.1.2 (https://github.com/ccakes/bmp-protocol-rs#9a19d8f9) [INFO] [stderr] Compiling bmp-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 34s [INFO] running `"docker" "inspect" "9b5852ac08fcd51635cef37a5ddf4164f30ca27f2a6d4ad07610a24c9477e614"` [INFO] running `"docker" "rm" "-f" "9b5852ac08fcd51635cef37a5ddf4164f30ca27f2a6d4ad07610a24c9477e614"` [INFO] [stdout] 9b5852ac08fcd51635cef37a5ddf4164f30ca27f2a6d4ad07610a24c9477e614 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ce6263ff286b7b65bfa466208bacd3200d97d87c00195e4b9de7ab3c4c58ca36 [INFO] running `"docker" "start" "-a" "ce6263ff286b7b65bfa466208bacd3200d97d87c00195e4b9de7ab3c4c58ca36"` [INFO] [stderr] Compiling bmp-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.73s [INFO] running `"docker" "inspect" "ce6263ff286b7b65bfa466208bacd3200d97d87c00195e4b9de7ab3c4c58ca36"` [INFO] running `"docker" "rm" "-f" "ce6263ff286b7b65bfa466208bacd3200d97d87c00195e4b9de7ab3c4c58ca36"` [INFO] [stdout] ce6263ff286b7b65bfa466208bacd3200d97d87c00195e4b9de7ab3c4c58ca36 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 92a18b13fb5af561e5a536dc6c5ae7e1aa73c9e09afcfb560e1295885b8508e5 [INFO] running `"docker" "start" "-a" "92a18b13fb5af561e5a536dc6c5ae7e1aa73c9e09afcfb560e1295885b8508e5"` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/bmp_client-d348fb0da555e8db [INFO] [stderr] Doc-tests bmp-client [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/client.rs - client::BmpClient (line 20) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::BmpClient (line 20) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BmpClient` [INFO] [stdout] --> src/client.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = BmpClient::new(tcp_stream)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BmpClient` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tcp_stream` in this scope [INFO] [stdout] --> src/client.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 3 | let client = BmpClient::new(tcp_stream)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/client.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let client = BmpClient::new(tcp_stream)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | let decoded_message = client.recv()?; [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/client.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let client = BmpClient::new(tcp_stream)?; [INFO] [stdout] 4 | | let decoded_message = client.recv()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::BmpClient (line 20) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "92a18b13fb5af561e5a536dc6c5ae7e1aa73c9e09afcfb560e1295885b8508e5"` [INFO] running `"docker" "rm" "-f" "92a18b13fb5af561e5a536dc6c5ae7e1aa73c9e09afcfb560e1295885b8508e5"` [INFO] [stdout] 92a18b13fb5af561e5a536dc6c5ae7e1aa73c9e09afcfb560e1295885b8508e5