[INFO] cloning repository https://github.com/nkatha23/energy-saving-canister [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nkatha23/energy-saving-canister" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkatha23%2Fenergy-saving-canister", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkatha23%2Fenergy-saving-canister'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d84c7cc157148e37230b780b8c5a01aa902d1fb3 [INFO] testing nkatha23/energy-saving-canister against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkatha23%2Fenergy-saving-canister" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nkatha23/energy-saving-canister [INFO] finished tweaking git repo https://github.com/nkatha23/energy-saving-canister [INFO] tweaked toml for git repo https://github.com/nkatha23/energy-saving-canister written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nkatha23/energy-saving-canister on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nkatha23/energy-saving-canister 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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14abc0b9c37a24005d367303dfdb354fffcc2a9786d8ead0082088007598d1f8 [INFO] running `Command { std: "docker" "start" "-a" "14abc0b9c37a24005d367303dfdb354fffcc2a9786d8ead0082088007598d1f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14abc0b9c37a24005d367303dfdb354fffcc2a9786d8ead0082088007598d1f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14abc0b9c37a24005d367303dfdb354fffcc2a9786d8ead0082088007598d1f8", kill_on_drop: false }` [INFO] [stdout] 14abc0b9c37a24005d367303dfdb354fffcc2a9786d8ead0082088007598d1f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6934a5b2d24140924163ea2a69debb7cfe6a7fff95c7007a7297cab53ee70464 [INFO] running `Command { std: "docker" "start" "-a" "6934a5b2d24140924163ea2a69debb7cfe6a7fff95c7007a7297cab53ee70464", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling hashbrown v0.14.1 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling winnow v0.5.16 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling indexmap v2.0.2 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling psm v0.1.24 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling candid v0.9.11 [INFO] [stderr] Compiling termcolor v1.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling serde_json v1.0.109 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ic0 v0.21.1 [INFO] [stderr] Compiling ic-stable-structures v0.5.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Compiling candid_derive v0.6.4 [INFO] [stderr] Compiling num_enum_derive v0.6.1 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling num_enum v0.6.1 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling serde_bytes v0.11.12 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling ic-cdk-macros v0.8.1 [INFO] [stderr] Compiling ic-cdk v0.11.6 [INFO] [stderr] Compiling icp_rust_boilerplate_backend v0.1.0 (/opt/rustwide/workdir/src/icp_rust_boilerplate_backend) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/icp_rust_boilerplate_backend/src/lib.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--version-script=/tmp/rustc62w1Ey/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustc62w1Ey/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libic_stable_structures-1a5b8d0b697daabc.rlib,libic_cdk-cd615ad18e5cb8b2.rlib,libic0-88cedc4127ae8e95.rlib,libcandid-2da2969e07ff7745.rlib,libstacker-183e95780b402526.rlib,libpsm-880fa9ecfd570f71.rlib,liblibc-a54d3590d42aa520.rlib,libhex-28742b4ca144387c.rlib,libcrc32fast-6bd2f9a022460d01.rlib,libdata_encoding-895f1f4cbdae727d.rlib,libserde_bytes-022445563a6e53bb.rlib,libpretty-41081c325a40ded8.rlib,libarrayvec-f5ee3f47c3793c70.rlib,libtyped_arena-e8efe135793da16d.rlib,libleb128-ae0983f084a091ac.rlib,libbyteorder-1efcbe4f07366651.rlib,libsha2-6779f79ac130de41.rlib,libcpufeatures-77532a8d776daa73.rlib,libcfg_if-33ef6c02a07f9fec.rlib,libdigest-3c2d891685d4b89e.rlib,libblock_buffer-8cfc6f57c23bdc22.rlib,libcrypto_common-66e2e31812479249.rlib,libgeneric_array-f5f3e90d36d8aab9.rlib,libtypenum-66c155be53855aa0.rlib,libnum_bigint-49156849441c1e6e.rlib,libnum_integer-442c0a4b9515febf.rlib,libnum_traits-78eddf8df1b04aaf.rlib,libanyhow-a758b722ca9235a8.rlib,libnum_enum-d04afd10c344386b.rlib,libbinread-2d71613f6e4f8a15.rlib,liblazy_static-2bb390fee0230a38.rlib,libthiserror-9324aa4e3c83d822.rlib,libcodespan_reporting-bfa818f2f74acba8.rlib,libunicode_width-ff8848b4c91bc42d.rlib,libtermcolor-4c24fd4339110c7b.rlib,libserde-7a1b2be60acd12a6.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustc62w1Ey/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/target/debug/build/psm-b3355d33aa76e832/out" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libicp_rust_boilerplate_backend.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /tmp/rustc62w1Ey/list:3: ; expected, but got get_energy_usage [INFO] [stdout] >>> canister_query get_energy_usage; [INFO] [stdout] >>> ^ [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `icp_rust_boilerplate_backend` (lib) due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "6934a5b2d24140924163ea2a69debb7cfe6a7fff95c7007a7297cab53ee70464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6934a5b2d24140924163ea2a69debb7cfe6a7fff95c7007a7297cab53ee70464", kill_on_drop: false }` [INFO] [stdout] 6934a5b2d24140924163ea2a69debb7cfe6a7fff95c7007a7297cab53ee70464