[INFO] cloning repository https://github.com/maxwellhammond/pi-mosquitto-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maxwellhammond/pi-mosquitto-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxwellhammond%2Fpi-mosquitto-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxwellhammond%2Fpi-mosquitto-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4b1ca37687961067262cf68991f3f73e11418bb [INFO] building maxwellhammond/pi-mosquitto-test against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxwellhammond%2Fpi-mosquitto-test" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/maxwellhammond/pi-mosquitto-test [INFO] finished tweaking git repo https://github.com/maxwellhammond/pi-mosquitto-test [INFO] tweaked toml for git repo https://github.com/maxwellhammond/pi-mosquitto-test written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maxwellhammond/pi-mosquitto-test on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maxwellhammond/pi-mosquitto-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72fed2c809de61e9ba18e925f5d516291f069ac17df3b7cb350f829f47612c77 [INFO] running `Command { std: "docker" "start" "-a" "72fed2c809de61e9ba18e925f5d516291f069ac17df3b7cb350f829f47612c77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72fed2c809de61e9ba18e925f5d516291f069ac17df3b7cb350f829f47612c77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72fed2c809de61e9ba18e925f5d516291f069ac17df3b7cb350f829f47612c77", kill_on_drop: false }` [INFO] [stdout] 72fed2c809de61e9ba18e925f5d516291f069ac17df3b7cb350f829f47612c77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11f6b6f3660919189379a5f4e9e8362d0c97c5cfa0555e6399616a868fd0f8f6 [INFO] running `Command { std: "docker" "start" "-a" "11f6b6f3660919189379a5f4e9e8362d0c97c5cfa0555e6399616a868fd0f8f6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling cc v1.1.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling rppal v0.19.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling paho-mqtt-sys v0.9.0 [INFO] [stderr] Compiling libmosquitto-sys v0.2.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio v1.41.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling paho-mqtt v0.12.5 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling mosquitto-rs v0.11.2 [INFO] [stderr] Compiling rusty-pi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/mqtt.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn publish_message (message: String, pod: String, sensor: String, broker: mqtt::AsyncClient) -> mqtt::Result<()>{ [INFO] [stdout] | --------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 113 | if mqtt::TopicFilter::is_match(&self, filter) { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `topic` [INFO] [stdout] --> src/mqtt.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | if let Err(err) = topic.publish(chat_msg).wait() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 120 - if let Err(err) = topic.publish(chat_msg).wait() { [INFO] [stdout] 120 + if let Err(err) = topic::publish(chat_msg).wait() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clone` [INFO] [stdout] --> src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{clone, thread}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `paho_mqtt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use paho_mqtt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time::Duration` [INFO] [stdout] --> src/gpiostatus.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt, process, thread, time::Duration}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env` and `io` [INFO] [stdout] --> src/mqtt.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{env, io, process, time::Duration}; [INFO] [stdout] | ^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TopicFilter` [INFO] [stdout] --> src/mqtt.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use paho_mqtt::{properties, topic, TopicFilter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mqtt::establish_broker` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use mqtt::establish_broker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mqtt::publish_message` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use mqtt::publish_message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, and crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/mqtt.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, and crates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mqtt.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | if mqtt::TopicFilter::is_match(&self, filter) { [INFO] [stdout] | --------------------------- ^^^^^^ expected `&str`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/paho-mqtt-0.12.5/src/topic.rs:490:12 [INFO] [stdout] | [INFO] [stdout] 490 | pub fn is_match(&self, topic: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send` [INFO] [stdout] --> src/main.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let send = mqtt::publish_message(high_msg_out, podval, sensor, broker_client); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_msg_out` [INFO] [stdout] --> src/main.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let low_msg_out = format!("Pin {} is low", msg.pin_id); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_msg_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0424. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-pi` (bin "rusty-pi") due to 3 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "11f6b6f3660919189379a5f4e9e8362d0c97c5cfa0555e6399616a868fd0f8f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11f6b6f3660919189379a5f4e9e8362d0c97c5cfa0555e6399616a868fd0f8f6", kill_on_drop: false }` [INFO] [stdout] 11f6b6f3660919189379a5f4e9e8362d0c97c5cfa0555e6399616a868fd0f8f6