[INFO] cloning repository https://github.com/itsVikashChaudhary/ICP_Vote_Template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/itsVikashChaudhary/ICP_Vote_Template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FitsVikashChaudhary%2FICP_Vote_Template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FitsVikashChaudhary%2FICP_Vote_Template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b576a8d321ff1e2f067609fd6a153191b0459fa8 [INFO] checking itsVikashChaudhary/ICP_Vote_Template/b576a8d321ff1e2f067609fd6a153191b0459fa8 against master#9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FitsVikashChaudhary%2FICP_Vote_Template" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template on toolchain 9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template [INFO] finished tweaking git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template [INFO] tweaked toml for git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template 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" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11e1d2978b7e5a2641354d42ebf2d68f1713dd73b0a824da42075009f5d6b93e [INFO] running `Command { std: "docker" "start" "-a" "11e1d2978b7e5a2641354d42ebf2d68f1713dd73b0a824da42075009f5d6b93e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11e1d2978b7e5a2641354d42ebf2d68f1713dd73b0a824da42075009f5d6b93e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11e1d2978b7e5a2641354d42ebf2d68f1713dd73b0a824da42075009f5d6b93e", kill_on_drop: false }` [INFO] [stdout] 11e1d2978b7e5a2641354d42ebf2d68f1713dd73b0a824da42075009f5d6b93e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4cae0c9cc440dd4a2f529268b6dc9410d5355a180f58cde53a661ad09805880 [INFO] running `Command { std: "docker" "start" "-a" "e4cae0c9cc440dd4a2f529268b6dc9410d5355a180f58cde53a661ad09805880", 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.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling rustix v0.38.26 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling winnow v0.5.19 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling termcolor v1.4.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling candid_derive v0.5.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking ic0 v0.18.11 [INFO] [stderr] Checking ic-stable-structures v0.5.6 [INFO] [stderr] Checking serde_bytes v0.11.12 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Compiling candid v0.8.4 [INFO] [stderr] Compiling ic-cdk-macros v0.6.10 [INFO] [stderr] Checking ic-cdk v0.7.4 [INFO] [stderr] Checking ic-cdk-timers v0.1.2 [INFO] [stderr] Checking final_project_backend v0.1.0 (/opt/rustwide/workdir/src/final_project_backend) [INFO] [stdout] error[E0412]: cannot find type `vector` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | voted: vector, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:66:36 [INFO] [stdout] | [INFO] [stdout] 66 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow().get(&key)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow().len()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 27 | / struct Proposal { [INFO] [stdout] 28 | | description: String, [INFO] [stdout] 29 | | apporvae: u32, [INFO] [stdout] 30 | | reject: u32, [INFO] [stdout] ... | [INFO] [stdout] 34 | | owner: candid::Principal, [INFO] [stdout] 35 | | } [INFO] [stdout] | |_- `Proposal` defined here [INFO] [stdout] ... [INFO] [stdout] 76 | let value = Proposal = Proposal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 76 | let value = Proposal { description: val, apporvae: val, reject: val, pass: val, is_active: val, voted: val, owner: val } = Proposal { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 76 - let value = Proposal = Proposal { [INFO] [stdout] 76 + let value = proposal = Proposal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow_mul().insert(key, value)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:94:49 [INFO] [stdout] | [INFO] [stdout] 94 | Some(old_roposal) => old_proposal = value, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:120:36 [INFO] [stdout] | [INFO] [stdout] 120 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | Some(old_proposal) => old_proposal = value, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:145:36 [INFO] [stdout] | [INFO] [stdout] 145 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `some` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | some(_) => OK(()), [INFO] [stdout] | ^^^^ help: a tuple variant with a similar name exists (notice the capitalization): `Some` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/option.rs:580:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Some` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `vector` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | voted: vector, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:66:36 [INFO] [stdout] | [INFO] [stdout] 66 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow().get(&key)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow().len()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 27 | / struct Proposal { [INFO] [stdout] 28 | | description: String, [INFO] [stdout] 29 | | apporvae: u32, [INFO] [stdout] 30 | | reject: u32, [INFO] [stdout] ... | [INFO] [stdout] 34 | | owner: candid::Principal, [INFO] [stdout] 35 | | } [INFO] [stdout] | |_- `Proposal` defined here [INFO] [stdout] ... [INFO] [stdout] 76 | let value = Proposal = Proposal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 76 | let value = Proposal { description: val, apporvae: val, reject: val, pass: val, is_active: val, voted: val, owner: val } = Proposal { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 76 - let value = Proposal = Proposal { [INFO] [stdout] 76 + let value = proposal = Proposal { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | PROPOSAL_MAP.with(|p: &RefCell>| p.borrow_mul().insert(key, value)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:94:49 [INFO] [stdout] | [INFO] [stdout] 94 | Some(old_roposal) => old_proposal = value, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:120:36 [INFO] [stdout] | [INFO] [stdout] 120 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:125:50 [INFO] [stdout] | [INFO] [stdout] 125 | Some(old_proposal) => old_proposal = value, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:145:36 [INFO] [stdout] | [INFO] [stdout] 145 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] 1 + use ic_stable_structures::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `some` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | some(_) => OK(()), [INFO] [stdout] | ^^^^ help: a tuple variant with a similar name exists (notice the capitalization): `Some` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/option.rs:580:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Some` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BTreeMap<_, _, VirtualMemory>>>>: Memory` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:105 [INFO] [stdout] | [INFO] [stdout] 61 | ...RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ic_stable_structures::Memory` is not implemented for `StableBTreeMap<_, _, VirtualMemory>>>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ic_stable_structures::Memory`: [INFO] [stdout] FileMemory [INFO] [stdout] Rc [INFO] [stdout] RefCell> [INFO] [stdout] RestrictedMemory [INFO] [stdout] VirtualMemory [INFO] [stdout] note: required by a bound in `MemoryManager::::init` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-stable-structures-0.5.6/src/memory_manager.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | impl MemoryManager { [INFO] [stdout] | ^^^^^^ required by this bound in `MemoryManager::::init` [INFO] [stdout] 136 | /// Initializes a `MemoryManager` with the given memory. [INFO] [stdout] 137 | pub fn init(memory: M) -> Self { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/final_project_backend-a8d5ce9aa278bba9.long-type-2721997750765918938.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BTreeMap<_, _, VirtualMemory>>>>: Memory` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:85 [INFO] [stdout] | [INFO] [stdout] 61 | ...RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ic_stable_structures::Memory` is not implemented for `StableBTreeMap<_, _, VirtualMemory>>>>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ic_stable_structures::Memory`: [INFO] [stdout] FileMemory [INFO] [stdout] Rc [INFO] [stdout] RefCell> [INFO] [stdout] RestrictedMemory [INFO] [stdout] VirtualMemory [INFO] [stdout] note: required by a bound in `MemoryManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-stable-structures-0.5.6/src/memory_manager.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct MemoryManager { [INFO] [stdout] | ^^^^^^ required by this bound in `MemoryManager` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/final_project_backend-a8d5ce9aa278bba9.long-type-2721997750765918938.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BTreeMap<_, _, VirtualMemory>>>>: Memory` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:105 [INFO] [stdout] | [INFO] [stdout] 61 | ...RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ic_stable_structures::Memory` is not implemented for `StableBTreeMap<_, _, VirtualMemory>>>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ic_stable_structures::Memory`: [INFO] [stdout] FileMemory [INFO] [stdout] Rc [INFO] [stdout] RefCell> [INFO] [stdout] RestrictedMemory [INFO] [stdout] VirtualMemory [INFO] [stdout] note: required by a bound in `MemoryManager::::init` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-stable-structures-0.5.6/src/memory_manager.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | impl MemoryManager { [INFO] [stdout] | ^^^^^^ required by this bound in `MemoryManager::::init` [INFO] [stdout] 136 | /// Initializes a `MemoryManager` with the given memory. [INFO] [stdout] 137 | pub fn init(memory: M) -> Self { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/final_project_backend-f9acea238fd3d35a.long-type-10831193119575336130.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BTreeMap<_, _, VirtualMemory>>>>: Memory` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:85 [INFO] [stdout] | [INFO] [stdout] 61 | ...RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ic_stable_structures::Memory` is not implemented for `StableBTreeMap<_, _, VirtualMemory>>>>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ic_stable_structures::Memory`: [INFO] [stdout] FileMemory [INFO] [stdout] Rc [INFO] [stdout] RefCell> [INFO] [stdout] RestrictedMemory [INFO] [stdout] VirtualMemory [INFO] [stdout] note: required by a bound in `MemoryManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-stable-structures-0.5.6/src/memory_manager.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct MemoryManager { [INFO] [stdout] | ^^^^^^ required by this bound in `MemoryManager` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/final_project_backend-f9acea238fd3d35a.long-type-10831193119575336130.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:85 [INFO] [stdout] | [INFO] [stdout] 61 | ...mory>> = RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `BTreeMap`, found `MemoryManager>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `StableBTreeMap` [INFO] [stdout] found struct `MemoryManager>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/cell.rs:850:18 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/final_project_backend/src/lib.rs:61:85 [INFO] [stdout] | [INFO] [stdout] 61 | ...mory>> = RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0)))))); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `BTreeMap`, found `MemoryManager>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `StableBTreeMap` [INFO] [stdout] found struct `MemoryManager>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/cell.rs:850:18 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Proposal` has no field named `approve` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | approve: 0u32, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 - approve: 0u32, [INFO] [stdout] 78 + apporvae: 0u32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Proposal` has no field named `approve` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | approve: 0u32, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 - approve: 0u32, [INFO] [stdout] 78 + apporvae: 0u32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | return Err(VoteEror::AccessRejected); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Proposal` has no field named `approval` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | approval: old_proposal.approve, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 102 - approval: old_proposal.approve, [INFO] [stdout] 102 + apporvae: old_proposal.approve, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `approve` on type `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 102 | approval: old_proposal.approve, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 102 - approval: old_proposal.approve, [INFO] [stdout] 102 + approval: old_proposal.apporvae, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | return Err(VoteEror::AccessRejected); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Proposal` has no field named `approval` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | approval: old_proposal.approve, [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 102 - approval: old_proposal.approve, [INFO] [stdout] 102 + apporvae: old_proposal.approve, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `approve` on type `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 102 | approval: old_proposal.approve, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 102 - approval: old_proposal.approve, [INFO] [stdout] 102 + approval: old_proposal.apporvae, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | Some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | None => Err(VoteEror::UpdateError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:126:32 [INFO] [stdout] | [INFO] [stdout] 126 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | return Err(VoteEror::AccessRejected); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | Some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | None => Err(VoteEror::UpdateError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:126:32 [INFO] [stdout] | [INFO] [stdout] 126 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | return Err(VoteEror::AccessRejected); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | Some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:138:25 [INFO] [stdout] | [INFO] [stdout] 138 | None => Err(VoteEror::UpdateError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | Some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:151:32 [INFO] [stdout] | [INFO] [stdout] 151 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | return Err(VoteEror::AlreadyVoted); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `approve` on type `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:161:41 [INFO] [stdout] | [INFO] [stdout] 161 | Choice::Approve => proposal.approve += 1, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 161 - Choice::Approve => proposal.approve += 1, [INFO] [stdout] 161 + Choice::Approve => proposal.apporvae += 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:138:25 [INFO] [stdout] | [INFO] [stdout] 138 | None => Err(VoteEror::UpdateError), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:151:32 [INFO] [stdout] | [INFO] [stdout] 151 | None => return Err(VoteEror::NoSuchProposal), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VoteEror` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | return Err(VoteEror::AlreadyVoted); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `VoteEror` [INFO] [stdout] | help: an enum with a similar name exists: `VoteError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `approve` on type `Proposal` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:161:41 [INFO] [stdout] | [INFO] [stdout] 161 | Choice::Approve => proposal.approve += 1, [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 161 - Choice::Approve => proposal.approve += 1, [INFO] [stdout] 161 + Choice::Approve => proposal.apporvae += 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OK` in this scope [INFO] [stdout] --> src/final_project_backend/src/lib.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | some(_) => OK(()), [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] --> /rustc/9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a/library/core/src/result.rs:532:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0423, E0425, E0433, E0531, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `final_project_backend` (lib test) due to 29 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0423, E0425, E0433, E0531, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `final_project_backend` (lib) due to 29 previous errors [INFO] running `Command { std: "docker" "inspect" "e4cae0c9cc440dd4a2f529268b6dc9410d5355a180f58cde53a661ad09805880", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4cae0c9cc440dd4a2f529268b6dc9410d5355a180f58cde53a661ad09805880", kill_on_drop: false }` [INFO] [stdout] e4cae0c9cc440dd4a2f529268b6dc9410d5355a180f58cde53a661ad09805880