[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 try#099e089ab723e6ee96175f3496051098c60a4cd4 for pr-140208 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHoloISO%2Fvpower" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HoloISO/vpower on toolchain 099e089ab723e6ee96175f3496051098c60a4cd4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "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-3-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" "+099e089ab723e6ee96175f3496051098c60a4cd4" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea706ade5a14999f55bf62573fcc07240957c3819b8eeeb0aca0af01a1e1c6f5 [INFO] running `Command { std: "docker" "start" "-a" "ea706ade5a14999f55bf62573fcc07240957c3819b8eeeb0aca0af01a1e1c6f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea706ade5a14999f55bf62573fcc07240957c3819b8eeeb0aca0af01a1e1c6f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea706ade5a14999f55bf62573fcc07240957c3819b8eeeb0aca0af01a1e1c6f5", kill_on_drop: false }` [INFO] [stdout] ea706ade5a14999f55bf62573fcc07240957c3819b8eeeb0aca0af01a1e1c6f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 694b127c6c769c7b5d8c4e32cde37609e47c8b4feff5ae31f7c80673dfde29ff [INFO] running `Command { std: "docker" "start" "-a" "694b127c6c769c7b5d8c4e32cde37609e47c8b4feff5ae31f7c80673dfde29ff", 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 associated function `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 method `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 method `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 method `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 method `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 method `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 method `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 non-const 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/099e089ab723e6ee96175f3496051098c60a4cd4/library/alloc/src/string.rs:2700:1 [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 method `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 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] [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[E0015]: cannot call non-const associated function `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 method `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 method `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 method `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 method `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 method `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 method `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 non-const 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/099e089ab723e6ee96175f3496051098c60a4cd4/library/alloc/src/string.rs:2700:1 [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 method `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 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] [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] Some errors have detailed explanations: E0015, E0493. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0493. [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 13 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 13 previous errors [INFO] running `Command { std: "docker" "inspect" "694b127c6c769c7b5d8c4e32cde37609e47c8b4feff5ae31f7c80673dfde29ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "694b127c6c769c7b5d8c4e32cde37609e47c8b4feff5ae31f7c80673dfde29ff", kill_on_drop: false }` [INFO] [stdout] 694b127c6c769c7b5d8c4e32cde37609e47c8b4feff5ae31f7c80673dfde29ff