[INFO] cloning repository https://github.com/osmany34/DecentralizedVotingSystem-concrats [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/osmany34/DecentralizedVotingSystem-concrats" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosmany34%2FDecentralizedVotingSystem-concrats", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosmany34%2FDecentralizedVotingSystem-concrats'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 016c443a6089acee7c4e8a4cfd371e865c7c2b48 [INFO] checking osmany34/DecentralizedVotingSystem-concrats/016c443a6089acee7c4e8a4cfd371e865c7c2b48 against master#96cfc75584359ae7ad11cc45968059f29e7b44b7 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fosmany34%2FDecentralizedVotingSystem-concrats" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/osmany34/DecentralizedVotingSystem-concrats on toolchain 96cfc75584359ae7ad11cc45968059f29e7b44b7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/osmany34/DecentralizedVotingSystem-concrats [INFO] finished tweaking git repo https://github.com/osmany34/DecentralizedVotingSystem-concrats [INFO] tweaked toml for git repo https://github.com/osmany34/DecentralizedVotingSystem-concrats written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/osmany34/DecentralizedVotingSystem-concrats 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" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lalrpop-util v0.19.12 [INFO] [stderr] Downloaded lalrpop v0.19.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ee68c548c91518665fbf06844b795350d395781c40274ae5d0cc3e08dbe3ac9 [INFO] running `Command { std: "docker" "start" "-a" "3ee68c548c91518665fbf06844b795350d395781c40274ae5d0cc3e08dbe3ac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ee68c548c91518665fbf06844b795350d395781c40274ae5d0cc3e08dbe3ac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ee68c548c91518665fbf06844b795350d395781c40274ae5d0cc3e08dbe3ac9", kill_on_drop: false }` [INFO] [stdout] 3ee68c548c91518665fbf06844b795350d395781c40274ae5d0cc3e08dbe3ac9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3a6b467cde3ad8fd2ad240cecf16ada52233a84e9de3eb66b1745459c07d648 [INFO] running `Command { std: "docker" "start" "-a" "f3a6b467cde3ad8fd2ad240cecf16ada52233a84e9de3eb66b1745459c07d648", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking lalrpop-util v0.19.12 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking ic-types v0.5.0 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.7.18 [INFO] [stderr] Checking ic-cdk v0.5.7 [INFO] [stderr] Compiling ic-cdk-macros v0.5.7 [INFO] [stderr] Checking decentralized_voting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: #[init] function cannot have a return value. [INFO] [stdout] --> src/main.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | #[init] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[init] function cannot have a return value. [INFO] [stdout] --> src/main.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | #[init] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `init` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | let contract = ic_cdk::storage::get::(); [INFO] [stdout] | ^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `decentralized_voting` [INFO] [stdout] --> src/main.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 105 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | let mut contract = ic_cdk::storage::get_mut::(); [INFO] [stdout] | ^^^^^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in module `ic_cdk::storage` [INFO] [stdout] --> src/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | let contract = ic_cdk::storage::get::(); [INFO] [stdout] | ^^^ not found in `ic_cdk::storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | #[update] [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `decentralized_voting` (bin "decentralized_voting") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | #[update] [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `decentralized_voting` (bin "decentralized_voting" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "f3a6b467cde3ad8fd2ad240cecf16ada52233a84e9de3eb66b1745459c07d648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3a6b467cde3ad8fd2ad240cecf16ada52233a84e9de3eb66b1745459c07d648", kill_on_drop: false }` [INFO] [stdout] f3a6b467cde3ad8fd2ad240cecf16ada52233a84e9de3eb66b1745459c07d648