[INFO] cloning repository https://github.com/oniGino/lenovo_throttled [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oniGino/lenovo_throttled" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FoniGino%2Flenovo_throttled", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FoniGino%2Flenovo_throttled'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11f352f587dc4d27b9a504c436e8feb2e063cdde [INFO] checking oniGino/lenovo_throttled against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FoniGino%2Flenovo_throttled" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oniGino/lenovo_throttled on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oniGino/lenovo_throttled [INFO] finished tweaking git repo https://github.com/oniGino/lenovo_throttled [INFO] tweaked toml for git repo https://github.com/oniGino/lenovo_throttled written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/oniGino/lenovo_throttled 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/borntyping/rust-psutil` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded docopt v1.0.0 [INFO] [stderr] Downloaded ryu v0.2.4 [INFO] [stderr] Downloaded mio v0.6.15 [INFO] [stderr] Downloaded bytebuffer v0.2.1 [INFO] [stderr] Downloaded libdbus-sys v0.1.3 [INFO] [stderr] Downloaded dbus v0.6.2 [INFO] [stderr] Downloaded serde-hjson v0.8.1 [INFO] [stderr] Downloaded config v0.9.0 [INFO] [stderr] Downloaded nom v4.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1add8053ac04ca59df98f53ab8aacfdab98cfbf8f6d83336d6dee5254e602cf3 [INFO] running `Command { std: "docker" "start" "-a" "1add8053ac04ca59df98f53ab8aacfdab98cfbf8f6d83336d6dee5254e602cf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1add8053ac04ca59df98f53ab8aacfdab98cfbf8f6d83336d6dee5254e602cf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1add8053ac04ca59df98f53ab8aacfdab98cfbf8f6d83336d6dee5254e602cf3", kill_on_drop: false }` [INFO] [stdout] 1add8053ac04ca59df98f53ab8aacfdab98cfbf8f6d83336d6dee5254e602cf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b044a7970ab26402dc5f1081ee1cf4f517072ffd245222099eb9dfd5f93a8987 [INFO] running `Command { std: "docker" "start" "-a" "b044a7970ab26402dc5f1081ee1cf4f517072ffd245222099eb9dfd5f93a8987", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling serde v1.0.71 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling proc-macro2 v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Compiling pkg-config v0.3.13 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ryu v0.2.4 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Compiling quote v0.6.6 [INFO] [stderr] Compiling libdbus-sys v0.1.3 [INFO] [stderr] Checking regex-syntax v0.3.9 [INFO] [stderr] Checking utf8-ranges v0.1.3 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling syn v0.14.8 [INFO] [stderr] Checking regex-syntax v0.6.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking aho-corasick v0.6.6 [INFO] [stderr] Checking linked-hash-map v0.5.1 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking itoa v0.4.2 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking yaml-rust v0.4.0 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking nom v4.0.0 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking serde_test v0.8.23 [INFO] [stderr] Checking log v0.4.4 [INFO] [stderr] Checking byteorder v0.3.13 [INFO] [stderr] Checking lazycell v0.6.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking linked-hash-map v0.3.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking lazy_static v0.1.16 [INFO] [stderr] Checking rust-ini v0.12.2 [INFO] [stderr] Checking slab v0.4.1 [INFO] [stderr] Checking psutil v1.1.1 (https://github.com/borntyping/rust-psutil#d7b49884) [INFO] [stderr] Checking mio v0.6.15 [INFO] [stderr] Checking bytebuffer v0.2.1 [INFO] [stderr] Checking serde-hjson v0.8.1 [INFO] [stderr] Checking dbus v0.6.2 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Compiling serde_derive v1.0.71 [INFO] [stderr] Checking toml v0.4.6 [INFO] [stderr] Checking serde_json v1.0.26 [INFO] [stderr] Checking config v0.9.0 [INFO] [stderr] Checking docopt v1.0.0 [INFO] [stderr] Checking lenovo_throttled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:82:76 [INFO] [stdout] | [INFO] [stdout] 82 | let th_handler = th_builder.spawn(move || power_thread(settings, regs, exit_event, power)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | exit_event.set(true); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | exit_event.set(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_loop` in this scope [INFO] [stdout] --> src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | event_loop.close(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:82:76 [INFO] [stdout] | [INFO] [stdout] 82 | let th_handler = th_builder.spawn(move || power_thread(settings, regs, exit_event, power)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | mchbar_mmio.write32(0, write_value & 0xffffffff); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | mchbar_mmio.write32(4, write_value >> 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | exit_event.set(true); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:455:30 [INFO] [stdout] | [INFO] [stdout] 455 | let read_value = mchbar_mmio.read32(0) | (mchbar_mmio.read32(4) << 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `exit_event` in this scope [INFO] [stdout] --> src/main.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | exit_event.set(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:455:55 [INFO] [stdout] | [INFO] [stdout] 455 | let read_value = mchbar_mmio.read32(0) | (mchbar_mmio.read32(4) << 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `event_loop` in this scope [INFO] [stdout] --> src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | event_loop.close(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | mchbar_mmio.write32(0, write_value & 0xffffffff); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | mchbar_mmio.write32(4, write_value >> 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:455:30 [INFO] [stdout] | [INFO] [stdout] 455 | let read_value = mchbar_mmio.read32(0) | (mchbar_mmio.read32(4) << 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mchbar_mmio` in this scope [INFO] [stdout] --> src/main.rs:455:55 [INFO] [stdout] | [INFO] [stdout] 455 | let read_value = mchbar_mmio.read32(0) | (mchbar_mmio.read32(4) << 32); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Evented + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:82:76 [INFO] [stdout] | [INFO] [stdout] 82 | let th_handler = th_builder.spawn(move || power_thread(settings, regs, exit_event, power)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Evented + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Evented + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:82:76 [INFO] [stdout] | [INFO] [stdout] 82 | let th_handler = th_builder.spawn(move || power_thread(settings, regs, exit_event, power)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Evented + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Evented + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:397:69 [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Evented + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: impl mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ++++ [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: &dyn mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Evented + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:397:69 [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Evented + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: impl mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ++++ [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 397 | fn power_thread(config: Config, regs: HashMap<(String,String),u64>, exit_event: &dyn mio::Evented, power: HashMap<&str,&str>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_set` found for trait object `(dyn Evented + 'static)` in the current scope [INFO] [stdout] --> src/main.rs:408:23 [INFO] [stdout] | [INFO] [stdout] 408 | while !exit_event.is_set() { [INFO] [stdout] | ^^^^^^ method not found in `dyn Evented` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_set` found for trait object `(dyn Evented + 'static)` in the current scope [INFO] [stdout] --> src/main.rs:408:23 [INFO] [stdout] | [INFO] [stdout] 408 | while !exit_event.is_set() { [INFO] [stdout] | ^^^^^^ method not found in `dyn Evented` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:421:46 [INFO] [stdout] | [INFO] [stdout] 421 | let mat = *write_value >> 24 == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:421:46 [INFO] [stdout] | [INFO] [stdout] 421 | let mat = *write_value >> 24 == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:434:40 [INFO] [stdout] | [INFO] [stdout] 434 | let mat = *write_value == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:434:40 [INFO] [stdout] | [INFO] [stdout] 434 | let mat = *write_value == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:446:36 [INFO] [stdout] | [INFO] [stdout] 446 | let mat = *write_value == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `u64` with `Vec` [INFO] [stdout] --> src/main.rs:446:36 [INFO] [stdout] | [INFO] [stdout] 446 | let mat = *write_value == read_value; [INFO] [stdout] | ^^ no implementation for `u64 == Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for trait object `(dyn Evented + 'static)` in the current scope [INFO] [stdout] --> src/main.rs:471:28 [INFO] [stdout] | [INFO] [stdout] 471 | exit_event.wait(wait_t); [INFO] [stdout] | ^^^^ method not found in `dyn Evented` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for trait object `(dyn Evented + 'static)` in the current scope [INFO] [stdout] --> src/main.rs:471:28 [INFO] [stdout] | [INFO] [stdout] 471 | exit_event.wait(wait_t); [INFO] [stdout] | ^^^^ method not found in `dyn Evented` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `power` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:96:86 [INFO] [stdout] | [INFO] [stdout] 96 | fn handle_ac_callback(message: std::result::Result<&dbus::Message, dbus::Error>, power: HashMap<&str,&str>, debug: bool ) { [INFO] [stdout] | ^^^^^ not mutable [INFO] [stdout] ... [INFO] [stdout] 100 | *power.get_mut("source").unwrap() = "BATTERY"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 101 | *power.get_mut("method").unwrap() = "dbus"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 102 | } else { [INFO] [stdout] 103 | *power.get_mut("source").unwrap() = "AC"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 104 | *power.get_mut("method").unwrap() = "polling"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 96 | fn handle_ac_callback(message: std::result::Result<&dbus::Message, dbus::Error>, mut power: HashMap<&str,&str>, debug: bool ) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `power` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:96:86 [INFO] [stdout] | [INFO] [stdout] 96 | fn handle_ac_callback(message: std::result::Result<&dbus::Message, dbus::Error>, power: HashMap<&str,&str>, debug: bool ) { [INFO] [stdout] | ^^^^^ not mutable [INFO] [stdout] ... [INFO] [stdout] 100 | *power.get_mut("source").unwrap() = "BATTERY"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 101 | *power.get_mut("method").unwrap() = "dbus"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 102 | } else { [INFO] [stdout] 103 | *power.get_mut("source").unwrap() = "AC"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] 104 | *power.get_mut("method").unwrap() = "polling"; [INFO] [stdout] | ----- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 96 | fn handle_ac_callback(message: std::result::Result<&dbus::Message, dbus::Error>, mut power: HashMap<&str,&str>, debug: bool ) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `buf` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | let buf = bytebuffer::ByteBuffer::new(); [INFO] [stdout] | ^^^ not mutable [INFO] [stdout] 177 | buf.write_u64(val); [INFO] [stdout] | --- cannot borrow as mutable [INFO] [stdout] 178 | let mut result = [0;8]; [INFO] [stdout] 179 | buf.write(&mut result); [INFO] [stdout] | --- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 176 | let mut buf = bytebuffer::ByteBuffer::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `buf` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | let buf = bytebuffer::ByteBuffer::new(); [INFO] [stdout] | ^^^ not mutable [INFO] [stdout] 177 | buf.write_u64(val); [INFO] [stdout] | --- cannot borrow as mutable [INFO] [stdout] 178 | let mut result = [0;8]; [INFO] [stdout] 179 | buf.write(&mut result); [INFO] [stdout] | --- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 176 | let mut buf = bytebuffer::ByteBuffer::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `unpack` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:224:22 [INFO] [stdout] | [INFO] [stdout] 224 | output.push((unpack.read_u64() & mask) >> from_bit); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 217 | let mut unpack = bytebuffer::ByteBuffer::from_bytes(&val); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:240:11 [INFO] [stdout] | [INFO] [stdout] 240 | match s.as_str() { [INFO] [stdout] | ^^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 242 ~ "1" => true, [INFO] [stdout] 243 + &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `unpack` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:224:22 [INFO] [stdout] | [INFO] [stdout] 224 | output.push((unpack.read_u64() & mask) >> from_bit); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 217 | let mut unpack = bytebuffer::ByteBuffer::from_bytes(&val); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:240:11 [INFO] [stdout] | [INFO] [stdout] 240 | match s.as_str() { [INFO] [stdout] | ^^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 242 ~ "1" => true, [INFO] [stdout] 243 + &_ => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `config` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:331:13 [INFO] [stdout] | [INFO] [stdout] 331 | config.set("trip_temp_range.hi", config.get_int("trip_temp_range.hi").unwrap().min(critical_temp - 3)); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 319 | fn calc_reg_values(mut config: Config) -> HashMap<(String,String), u64> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `config` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:331:13 [INFO] [stdout] | [INFO] [stdout] 331 | config.set("trip_temp_range.hi", config.get_int("trip_temp_range.hi").unwrap().min(critical_temp - 3)); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 319 | fn calc_reg_values(mut config: Config) -> HashMap<(String,String), u64> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0425, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0425, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lenovo_throttled` (bin "lenovo_throttled") due to 21 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lenovo_throttled` (bin "lenovo_throttled" test) due to 21 previous errors [INFO] running `Command { std: "docker" "inspect" "b044a7970ab26402dc5f1081ee1cf4f517072ffd245222099eb9dfd5f93a8987", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b044a7970ab26402dc5f1081ee1cf4f517072ffd245222099eb9dfd5f93a8987", kill_on_drop: false }` [INFO] [stdout] b044a7970ab26402dc5f1081ee1cf4f517072ffd245222099eb9dfd5f93a8987