[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] testing oniGino/lenovo_throttled/11f352f587dc4d27b9a504c436e8feb2e063cdde against master#414482f6a0d4e7290f614300581a0b55442552a3 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FoniGino%2Flenovo_throttled" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oniGino/lenovo_throttled on toolchain 414482f6a0d4e7290f614300581a0b55442552a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "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-0-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" "+414482f6a0d4e7290f614300581a0b55442552a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating git repository `https://github.com/borntyping/rust-psutil` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded config v0.9.0 [INFO] [stderr] Downloaded docopt v1.0.0 [INFO] [stderr] Downloaded bytebuffer v0.2.1 [INFO] [stderr] Downloaded serde_derive v1.0.71 [INFO] [stderr] Downloaded serde-hjson v0.8.1 [INFO] [stderr] Downloaded libdbus-sys v0.1.3 [INFO] [stderr] Downloaded dbus v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00ed97760babd92c3605c8c6f0217598ea6ec30dfc5ecbb5048b0dafe3045298 [INFO] running `Command { std: "docker" "start" "-a" "00ed97760babd92c3605c8c6f0217598ea6ec30dfc5ecbb5048b0dafe3045298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00ed97760babd92c3605c8c6f0217598ea6ec30dfc5ecbb5048b0dafe3045298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00ed97760babd92c3605c8c6f0217598ea6ec30dfc5ecbb5048b0dafe3045298", kill_on_drop: false }` [INFO] [stdout] 00ed97760babd92c3605c8c6f0217598ea6ec30dfc5ecbb5048b0dafe3045298 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15e38939f94490dd63543bc281740cfd6e3bf1a569fdb42d44d5c41e21f3fe62 [INFO] running `Command { std: "docker" "start" "-a" "15e38939f94490dd63543bc281740cfd6e3bf1a569fdb42d44d5c41e21f3fe62", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Compiling proc-macro2 v0.4.13 [INFO] [stderr] Compiling serde v1.0.71 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling ryu v0.2.4 [INFO] [stderr] Compiling cfg-if v0.1.5 [INFO] [stderr] Compiling pkg-config v0.3.13 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling linked-hash-map v0.5.1 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling itoa v0.4.2 [INFO] [stderr] Compiling log v0.4.4 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling yaml-rust v0.4.0 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling aho-corasick v0.6.6 [INFO] [stderr] Compiling nom v4.0.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling lazy_static v0.1.16 [INFO] [stderr] Compiling libdbus-sys v0.1.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling lazycell v0.6.0 [INFO] [stderr] Compiling rust-ini v0.12.2 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling dbus v0.6.2 [INFO] [stderr] Compiling mio v0.6.15 [INFO] [stderr] Compiling quote v0.6.6 [INFO] [stderr] Compiling bytebuffer v0.2.1 [INFO] [stderr] Compiling syn v0.14.8 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling psutil v1.1.1 (https://github.com/borntyping/rust-psutil#d7b49884) [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling serde_test v0.8.23 [INFO] [stderr] Compiling linked-hash-map v0.3.0 [INFO] [stderr] Compiling serde-hjson v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.71 [INFO] [stderr] Compiling toml v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.26 [INFO] [stderr] Compiling config v0.9.0 [INFO] [stderr] Compiling docopt v1.0.0 [INFO] [stderr] Compiling 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 `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] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/main.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | extern fn handle_loop_exit(i: nix::libc::c_int) { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:397:81 [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] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [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] warning: unreachable statement [INFO] [stdout] --> src/main.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 143 | / loop { [INFO] [stdout] 144 | | event_poller.poll(&mut events, None).unwrap(); [INFO] [stdout] 145 | | [INFO] [stdout] 146 | | for event in events.iter() { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 155 | //On exit from loop do [INFO] [stdout] 156 | exit_event.set(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [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:81 [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[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] `u64` implements `PartialEq` [INFO] [stdout] `u64` implements `PartialEq` [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] `u64` implements `PartialEq` [INFO] [stdout] `u64` implements `PartialEq` [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] `u64` implements `PartialEq` [INFO] [stdout] `u64` implements `PartialEq` [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] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | Err(e) => panic!("[E] Unable to write to MSR") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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 `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] 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 20 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "15e38939f94490dd63543bc281740cfd6e3bf1a569fdb42d44d5c41e21f3fe62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15e38939f94490dd63543bc281740cfd6e3bf1a569fdb42d44d5c41e21f3fe62", kill_on_drop: false }` [INFO] [stdout] 15e38939f94490dd63543bc281740cfd6e3bf1a569fdb42d44d5c41e21f3fe62