[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 try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 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-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PatrickAulbach/iot-hub-controller on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "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-4/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" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v0.3.1 [INFO] [stderr] Downloaded mio v0.7.5 [INFO] [stderr] Downloaded mqtt-protocol v0.9.0 [INFO] [stderr] Downloaded hmac v0.10.1 [INFO] [stderr] Downloaded tokio v0.3.3 [INFO] [stderr] Downloaded crypto-mac v0.10.0 [INFO] [stderr] Downloaded azure_iot_sdk v0.5.0 [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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b81b07f0ab72712058529dfdfb38efe80815580838a2040ac52e157ce23c68f [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" "1b81b07f0ab72712058529dfdfb38efe80815580838a2040ac52e157ce23c68f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b81b07f0ab72712058529dfdfb38efe80815580838a2040ac52e157ce23c68f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b81b07f0ab72712058529dfdfb38efe80815580838a2040ac52e157ce23c68f", kill_on_drop: false }` [INFO] [stdout] 1b81b07f0ab72712058529dfdfb38efe80815580838a2040ac52e157ce23c68f [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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3b50ffe2f675b325603c7a7c6aa257c5f36419963ff07b877b1c88e08a4d214 [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" "a3b50ffe2f675b325603c7a7c6aa257c5f36419963ff07b877b1c88e08a4d214", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tokio v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling mio v0.7.5 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.2 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling http-body v0.3.1 [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 serde_derive v1.0.117 [INFO] [stderr] Compiling tokio-macros v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [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_json v1.0.59 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [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" "a3b50ffe2f675b325603c7a7c6aa257c5f36419963ff07b877b1c88e08a4d214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3b50ffe2f675b325603c7a7c6aa257c5f36419963ff07b877b1c88e08a4d214", kill_on_drop: false }` [INFO] [stdout] a3b50ffe2f675b325603c7a7c6aa257c5f36419963ff07b877b1c88e08a4d214