[INFO] fetching crate rainmaker 0.1.1... [INFO] testing rainmaker-0.1.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rainmaker 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate rainmaker 0.1.1 [INFO] finished tweaking crates.io crate rainmaker 0.1.1 [INFO] tweaked toml for crates.io crate rainmaker 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rainmaker 0.1.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 299 packages to latest compatible versions [INFO] [stderr] Adding esp-idf-svc v0.49.1 (available: v0.51.0) [INFO] [stderr] Adding simple_logger v4.3.3 (available: v5.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal-nb v1.0.0 [INFO] [stderr] Downloaded esp-idf-sys v0.35.0 [INFO] [stderr] Downloaded embedded-hal v1.0.0 [INFO] [stderr] Downloaded ed25519-compact v2.1.1 [INFO] [stderr] Downloaded embassy-sync v0.6.2 [INFO] [stderr] Downloaded rainmaker-components v0.1.0 [INFO] [stderr] Downloaded dbus-tokio v0.7.6 [INFO] [stderr] Downloaded embuild v0.32.0 [INFO] [stderr] Downloaded bluer v0.17.4 [INFO] [stderr] Downloaded esp-idf-hal v0.44.1 [INFO] [stderr] Downloaded bindgen v0.69.5 [INFO] [stderr] Downloaded defmt v0.3.100 [INFO] [stderr] Downloaded embedded-hal-async v1.0.0 [INFO] [stderr] Downloaded libdbus-sys v0.2.6 [INFO] [stderr] Downloaded dbus-crossroads v0.5.2 [INFO] [stderr] Downloaded build-time v0.1.3 [INFO] [stderr] Downloaded rumqttc v0.23.0 [INFO] [stderr] Downloaded macaddr v1.0.1 [INFO] [stderr] Downloaded esp-idf-svc v0.49.1 [INFO] [stderr] Downloaded embassy-futures v0.1.2 [INFO] [stderr] Downloaded dbus v0.9.9 [INFO] [stderr] Downloaded embedded-svc v0.28.1 [INFO] [stderr] Downloaded uuid-macro-internal v1.18.1 [INFO] [stderr] Downloaded camino v1.2.1 [INFO] [stderr] Downloaded embedded-io-async v0.6.1 [INFO] [stderr] Downloaded remove_dir_all v0.8.4 [INFO] [stderr] Downloaded envy v0.4.2 [INFO] [stderr] Downloaded esp32-nimble v0.8.2 [INFO] [stderr] Downloaded embedded-can v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] afd2bca8af7ae510cef885cb93bea5024049c1f8082a0149639255ec782aba97 [INFO] running `Command { std: "docker" "start" "-a" "afd2bca8af7ae510cef885cb93bea5024049c1f8082a0149639255ec782aba97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "afd2bca8af7ae510cef885cb93bea5024049c1f8082a0149639255ec782aba97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afd2bca8af7ae510cef885cb93bea5024049c1f8082a0149639255ec782aba97", kill_on_drop: false }` [INFO] [stdout] afd2bca8af7ae510cef885cb93bea5024049c1f8082a0149639255ec782aba97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd92014f1dd6f8aab83a9e479cf4d4252506a019e6f7f790d380b97d428c8ce0 [INFO] running `Command { std: "docker" "start" "-a" "fd92014f1dd6f8aab83a9e479cf4d4252506a019e6f7f790d380b97d428c8ce0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling libdbus-sys v0.2.6 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling macaddr v1.0.1 [INFO] [stderr] Compiling chunked_transfer v1.5.0 [INFO] [stderr] Compiling ascii v1.1.0 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling tiny_http v0.12.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ed25519-compact v2.1.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling simple_logger v4.3.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling custom_debug_derive v0.6.2 [INFO] [stderr] Compiling custom_debug v0.6.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling pickledb v0.5.1 [INFO] [stderr] Compiling bluer v0.17.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling dbus v0.9.9 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling rumqttc v0.23.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling dbus-crossroads v0.5.2 [INFO] [stderr] Compiling dbus-tokio v0.7.6 [INFO] [stderr] Compiling rainmaker-components v0.1.0 [INFO] [stderr] Compiling rainmaker v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | if unsafe { RAINMAKER.get().is_some() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | RAINMAKER.set(Self { node: None }).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Ok(unsafe { RAINMAKER.get_mut().unwrap() }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 47s [INFO] running `Command { std: "docker" "inspect" "fd92014f1dd6f8aab83a9e479cf4d4252506a019e6f7f790d380b97d428c8ce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd92014f1dd6f8aab83a9e479cf4d4252506a019e6f7f790d380b97d428c8ce0", kill_on_drop: false }` [INFO] [stdout] fd92014f1dd6f8aab83a9e479cf4d4252506a019e6f7f790d380b97d428c8ce0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 816ce47449873eac362184b25e92dd7753359c5e7ad6a94d7e074e9f57f5f541 [INFO] running `Command { std: "docker" "start" "-a" "816ce47449873eac362184b25e92dd7753359c5e7ad6a94d7e074e9f57f5f541", kill_on_drop: false }` [INFO] [stderr] Compiling rainmaker v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | if unsafe { RAINMAKER.get().is_some() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | RAINMAKER.set(Self { node: None }).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Ok(unsafe { RAINMAKER.get_mut().unwrap() }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | if unsafe { RAINMAKER.get().is_some() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | RAINMAKER.set(Self { node: None }).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Ok(unsafe { RAINMAKER.get_mut().unwrap() }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "816ce47449873eac362184b25e92dd7753359c5e7ad6a94d7e074e9f57f5f541", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "816ce47449873eac362184b25e92dd7753359c5e7ad6a94d7e074e9f57f5f541", kill_on_drop: false }` [INFO] [stdout] 816ce47449873eac362184b25e92dd7753359c5e7ad6a94d7e074e9f57f5f541 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4d299f769d3881e2fb10c26058cdef3c38bf146f744254dad47405be16c5680d [INFO] running `Command { std: "docker" "start" "-a" "4d299f769d3881e2fb10c26058cdef3c38bf146f744254dad47405be16c5680d", kill_on_drop: false }` [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:90:21 [INFO] [stderr] | [INFO] [stderr] 90 | if unsafe { RAINMAKER.get().is_some() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:94:13 [INFO] [stderr] | [INFO] [stderr] 94 | RAINMAKER.set(Self { node: None }).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/lib.rs:96:21 [INFO] [stderr] | [INFO] [stderr] 96 | Ok(unsafe { RAINMAKER.get_mut().unwrap() }) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: `rainmaker` (lib) generated 3 warnings [INFO] [stderr] warning: `rainmaker` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rainmaker-980a7aad85e11e4f) [INFO] [stderr] Doc-tests rainmaker [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/device.rs - device (line 13) ... FAILED [INFO] [stdout] test src/device.rs - device (line 32) ... FAILED [INFO] [stdout] test src/node.rs - node::Node::add_device (line 102) ... FAILED [INFO] [stdout] test src/lib.rs - report_params (line 283) ... FAILED [INFO] [stdout] test src/device.rs - device (line 8) ... FAILED [INFO] [stdout] test src/node.rs - node::Node::set_info (line 82) ... FAILED [INFO] [stdout] test src/lib.rs - Rainmaker::register_node (line 147) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/node.rs - node::Node::new (line 65) ... FAILED [INFO] [stdout] test src/device.rs - device (line 24) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/device.rs - device (line 13) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/device.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 1 | let power_param = Param::new_power(name:"Power", initial_value: false); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/device.rs - device (line 32) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/device.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 3 | device.register_callback(Box::new(device_callback)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device_callback` in this scope [INFO] [stdout] --> src/device.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 3 | device.register_callback(Box::new(device_callback)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/node.rs - node::Node::add_device (line 102) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `node` in this scope [INFO] [stdout] --> src/node.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 3 | node.add_device(device); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/node.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 3 | node.add_device(device); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - report_params (line 283) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMaps` in this scope [INFO] [stdout] --> src/lib.rs:285:22 [INFO] [stdout] | [INFO] [stdout] 5 | fn device_cb(params: HashMaps) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:285:39 [INFO] [stdout] | [INFO] [stdout] 5 | fn device_cb(params: HashMaps) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/device.rs - device (line 8) stdout ---- [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/device.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 3 | let device = Device::new(name:"DeviceName", device_type:DeviceType::Switch); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `Device::new` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 3 - let device = Device::new(name:"DeviceName", device_type:DeviceType::Switch); [INFO] [stdout] 3 + let device = Device::new { name:"DeviceName", device_type:DeviceType::Switch }; [INFO] [stdout] | [INFO] [stdout] help: if `Device::new` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 3 - let device = Device::new(name:"DeviceName", device_type:DeviceType::Switch); [INFO] [stdout] 3 + let device = Device::new("DeviceName", DeviceType::Switch); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/node.rs - node::Node::set_info (line 82) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `node` in this scope [INFO] [stdout] --> src/node.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 3 | node.set_info(Info{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Info` in this scope [INFO] [stdout] --> src/node.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 3 | node.set_info(Info{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use log::Level::Info; [INFO] [stdout] | [INFO] [stdout] 2 + use log::LevelFilter::Info; [INFO] [stdout] | [INFO] [stdout] 2 + use rainmaker::node::Info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Rainmaker::register_node (line 147) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rainmaker` [INFO] [stdout] --> src/lib.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 3 | let rmaker = Rainmaker::init()?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Rainmaker` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rainmaker::Rainmaker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/lib.rs:149:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut node = Node::new(rmaker.get_node_id()); [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rainmaker::node::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/node.rs - node::Node::new (line 65) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rainmaker` [INFO] [stdout] --> src/node.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 3 | let rmaker = Rainmaker::init()?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Rainmaker` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rainmaker::Rainmaker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/node.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 5 | let mut node = Node::new(node_id); [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rainmaker::node::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/device.rs - device (line 24) stdout ---- [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/device.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 7 | rainmaker::report_params(device_name: "DeviceName", params); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `rainmaker::report_params` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 7 - rainmaker::report_params(device_name: "DeviceName", params); [INFO] [stdout] 7 + rainmaker::report_params { device_name: "DeviceName", params }; [INFO] [stdout] | [INFO] [stdout] help: if `rainmaker::report_params` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 7 - rainmaker::report_params(device_name: "DeviceName", params); [INFO] [stdout] 7 + rainmaker::report_params("DeviceName", params); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/device.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 5 | fn device_callback(params: HashMap){ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/device.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 5 | fn device_callback(params: HashMap){ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/device.rs - device (line 13) [INFO] [stdout] src/device.rs - device (line 24) [INFO] [stdout] src/device.rs - device (line 32) [INFO] [stdout] src/device.rs - device (line 8) [INFO] [stdout] src/lib.rs - Rainmaker::register_node (line 147) [INFO] [stdout] src/lib.rs - report_params (line 283) [INFO] [stdout] src/node.rs - node::Node::add_device (line 102) [INFO] [stdout] src/node.rs - node::Node::new (line 65) [INFO] [stdout] src/node.rs - node::Node::set_info (line 82) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4d299f769d3881e2fb10c26058cdef3c38bf146f744254dad47405be16c5680d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d299f769d3881e2fb10c26058cdef3c38bf146f744254dad47405be16c5680d", kill_on_drop: false }` [INFO] [stdout] 4d299f769d3881e2fb10c26058cdef3c38bf146f744254dad47405be16c5680d