[INFO] cloning repository https://github.com/PatrickAulbach/iot-hub-controller [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PatrickAulbach/iot-hub-controller" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrickAulbach%2Fiot-hub-controller", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrickAulbach%2Fiot-hub-controller'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28d74bc2083174f5fc2b1332f473de0a6595ca35 [INFO] testing PatrickAulbach/iot-hub-controller against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrickAulbach%2Fiot-hub-controller" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PatrickAulbach/iot-hub-controller on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PatrickAulbach/iot-hub-controller [INFO] finished tweaking git repo https://github.com/PatrickAulbach/iot-hub-controller [INFO] tweaked toml for git repo https://github.com/PatrickAulbach/iot-hub-controller written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/PatrickAulbach/iot-hub-controller already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08719e1f54fdc85e3746e5bf0a4baf87805137a9b415365b395348976c7f268d [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" "08719e1f54fdc85e3746e5bf0a4baf87805137a9b415365b395348976c7f268d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08719e1f54fdc85e3746e5bf0a4baf87805137a9b415365b395348976c7f268d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08719e1f54fdc85e3746e5bf0a4baf87805137a9b415365b395348976c7f268d", kill_on_drop: false }` [INFO] [stdout] 08719e1f54fdc85e3746e5bf0a4baf87805137a9b415365b395348976c7f268d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6873759b2b01a2937605473bcf4fdf68ef4d2f37dc381df4a5d94d767bd58426 [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" "6873759b2b01a2937605473bcf4fdf68ef4d2f37dc381df4a5d94d767bd58426", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling tokio v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling mio v0.7.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling tokio-macros v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling tokio-native-tls v0.2.0 [INFO] [stderr] Compiling mqtt-protocol v0.9.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling azure_iot_sdk v0.5.0 [INFO] [stderr] Compiling iot-hub-controller v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/IotHubClient/client_factory.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut client = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `config.device_id` [INFO] [stdout] --> src/IotHubClient/client_factory.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 15 | IoTHubClient::::new(&config.host_name, &config.device_id, token_source).await; [INFO] [stdout] | ----------------- `config.device_id` is borrowed here [INFO] [stdout] 16 | [INFO] [stdout] 17 | return client; [INFO] [stdout] | ^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 28 | / loop { [INFO] [stdout] 29 | | println!("In the loop"); [INFO] [stdout] 30 | | interval.tick().await; [INFO] [stdout] 31 | | [INFO] [stdout] ... | [INFO] [stdout] 39 | | count += 1; [INFO] [stdout] 40 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 41 | [INFO] [stdout] 42 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `iot-hub-controller` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "6873759b2b01a2937605473bcf4fdf68ef4d2f37dc381df4a5d94d767bd58426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6873759b2b01a2937605473bcf4fdf68ef4d2f37dc381df4a5d94d767bd58426", kill_on_drop: false }` [INFO] [stdout] 6873759b2b01a2937605473bcf4fdf68ef4d2f37dc381df4a5d94d767bd58426