[INFO] cloning repository https://github.com/HoloISO/vpower [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HoloISO/vpower" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHoloISO%2Fvpower", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHoloISO%2Fvpower'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1619791bedef2d1d6255418ae364f7b8e33dddb [INFO] checking HoloISO/vpower against master#c29082fe7dc6e902169cacbae165562a7e4a1fd6 for pr-120805 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHoloISO%2Fvpower" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HoloISO/vpower on toolchain c29082fe7dc6e902169cacbae165562a7e4a1fd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c29082fe7dc6e902169cacbae165562a7e4a1fd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HoloISO/vpower [INFO] finished tweaking git repo https://github.com/HoloISO/vpower [INFO] tweaked toml for git repo https://github.com/HoloISO/vpower written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HoloISO/vpower 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" "+c29082fe7dc6e902169cacbae165562a7e4a1fd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking HoloISO/vpower against try#a76cc2633df38feca72f20156e7d9e4b074337f3 for pr-120805 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHoloISO%2Fvpower" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HoloISO/vpower on toolchain a76cc2633df38feca72f20156e7d9e4b074337f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a76cc2633df38feca72f20156e7d9e4b074337f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HoloISO/vpower [INFO] finished tweaking git repo https://github.com/HoloISO/vpower [INFO] tweaked toml for git repo https://github.com/HoloISO/vpower written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HoloISO/vpower 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" "+a76cc2633df38feca72f20156e7d9e4b074337f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a76cc2633df38feca72f20156e7d9e4b074337f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1540d28da4cfd8448311691ecac241ba242808552ed9b09f2a5c82129749ade2 [INFO] running `Command { std: "docker" "start" "-a" "1540d28da4cfd8448311691ecac241ba242808552ed9b09f2a5c82129749ade2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1540d28da4cfd8448311691ecac241ba242808552ed9b09f2a5c82129749ade2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1540d28da4cfd8448311691ecac241ba242808552ed9b09f2a5c82129749ade2", kill_on_drop: false }` [INFO] [stdout] 1540d28da4cfd8448311691ecac241ba242808552ed9b09f2a5c82129749ade2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a76cc2633df38feca72f20156e7d9e4b074337f3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6aa921b79785167121ef8873ebf4032784101d17dd90e1bb7e6a234d4887415b [INFO] running `Command { std: "docker" "start" "-a" "6aa921b79785167121ef8873ebf4032784101d17dd90e1bb7e6a234d4887415b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking vpower v1.4.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::new::<&str>` in constants [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::new::<&str>` in constants [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: mutable references are not allowed in constants [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #57349 for more information [INFO] [stdout] = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-02-08; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: mutable references are not allowed in constants [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #57349 for more information [INFO] [stdout] = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-02-08; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::arg::<&str>` in constants [INFO] [stdout] --> main.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | .arg("/sys/devices/virtual/dmi/id/product_name") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::output` in constants [INFO] [stdout] --> main.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | .output() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::arg::<&str>` in constants [INFO] [stdout] --> main.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | .arg("/sys/devices/virtual/dmi/id/product_name") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::map::, {closure@main.rs:22:14: 22:17}>` in constants [INFO] [stdout] --> main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | .map(|o| o.stdout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Command::output` in constants [INFO] [stdout] --> main.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | .output() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::::map::, {closure@main.rs:22:14: 22:17}>` in constants [INFO] [stdout] --> main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | .map(|o| o.stdout) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::io::Error>::map::, fn(Vec) -> Result {std::string::String::from_utf8}>` in constants [INFO] [stdout] --> main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | .map(String::from_utf8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::io::Error>::map::, fn(Vec) -> Result {std::string::String::from_utf8}>` in constants [INFO] [stdout] --> main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | .map(String::from_utf8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::io::Error>::map_err::` in constants [INFO] [stdout] --> main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|e| format!("Failed to decode command output: {}", e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::io::Error>::map_err::` in constants [INFO] [stdout] --> main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|e| format!("Failed to decode command output: {}", e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::string::String>::and_then::` in constants [INFO] [stdout] --> main.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | .and_then(|opt| opt.map_err(|e| format!("Invalid utf-8 in command output: {}", e))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Result::, std::string::String>::and_then::` in constants [INFO] [stdout] --> main.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | .and_then(|opt| opt.map_err(|e| format!("Invalid utf-8 in command output: {}", e))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/a76cc2633df38feca72f20156e7d9e4b074337f3/library/alloc/src/string.rs:2530:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::trim` in constants [INFO] [stdout] --> main.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot perform deref coercion on `std::string::String` in constants [INFO] [stdout] --> main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: attempting to deref into `str` [INFO] [stdout] note: impl defined here, but it is not `const` [INFO] [stdout] --> /rustc/a76cc2633df38feca72f20156e7d9e4b074337f3/library/alloc/src/string.rs:2530:1 [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constants [INFO] [stdout] --> main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `core::str::::trim` in constants [INFO] [stdout] --> main.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 32 | } else { [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const operator in constants [INFO] [stdout] --> main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if product_name.trim() == "Jupiter 1" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `std::string::String` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 32 | } else { [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 20 | | .arg("/sys/devices/virtual/dmi/id/product_name") [INFO] [stdout] 21 | | .output() [INFO] [stdout] 22 | | .map(|o| o.stdout) [INFO] [stdout] 23 | | .map(String::from_utf8) [INFO] [stdout] 24 | | .map_err(|e| format!("Failed to decode command output: {}", e)) [INFO] [stdout] 25 | | .and_then(|opt| opt.map_err(|e| format!("Invalid utf-8 in command output: {}", e))) [INFO] [stdout] | |___________________________________________________________________________________________^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 34 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Command` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 34 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Result` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 20 | | .arg("/sys/devices/virtual/dmi/id/product_name") [INFO] [stdout] 21 | | .output() [INFO] [stdout] 22 | | .map(|o| o.stdout) [INFO] [stdout] 23 | | .map(String::from_utf8) [INFO] [stdout] 24 | | .map_err(|e| format!("Failed to decode command output: {}", e)) [INFO] [stdout] 25 | | .and_then(|opt| opt.map_err(|e| format!("Invalid utf-8 in command output: {}", e))) [INFO] [stdout] | |___________________________________________________________________________________________^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 34 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0493]: destructor of `Command` cannot be evaluated at compile-time [INFO] [stdout] --> main.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | const DEVICEPATH: &str = if let Ok(product_name) = std::process::Command::new("cat") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the destructor for this type cannot be evaluated in constants [INFO] [stdout] ... [INFO] [stdout] 34 | }; [INFO] [stdout] | - value is dropped here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vpower` (bin "vpower") due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `vpower` (bin "vpower" test) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "6aa921b79785167121ef8873ebf4032784101d17dd90e1bb7e6a234d4887415b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aa921b79785167121ef8873ebf4032784101d17dd90e1bb7e6a234d4887415b", kill_on_drop: false }` [INFO] [stdout] 6aa921b79785167121ef8873ebf4032784101d17dd90e1bb7e6a234d4887415b