[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 against try#db4e1d23234d93b5e96ecc768b35d9090c32cddf for pr-149901
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FitsVikashChaudhary%2FICP_Vote_Template" "/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/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-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/itsVikashChaudhary/ICP_Vote_Template on toolchain db4e1d23234d93b5e96ecc768b35d9090c32cddf
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "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]   |
[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]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded serde_bytes v0.11.12
[INFO] [stderr]   Downloaded ic0 v0.18.11
[INFO] [stderr]   Downloaded ic-cdk-timers v0.1.2
[INFO] [stderr]   Downloaded ic-stable-structures v0.5.6
[INFO] [stderr]   Downloaded ic-cdk v0.7.4
[INFO] [stderr]   Downloaded winnow v0.5.19
[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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e951f67916709cd7d00ca8dffe1a8b40504e1c3db4f3e53dca86ac65acb9bcf5
[INFO] running `Command { std: "docker" "start" "-a" "e951f67916709cd7d00ca8dffe1a8b40504e1c3db4f3e53dca86ac65acb9bcf5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e951f67916709cd7d00ca8dffe1a8b40504e1c3db4f3e53dca86ac65acb9bcf5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e951f67916709cd7d00ca8dffe1a8b40504e1c3db4f3e53dca86ac65acb9bcf5", kill_on_drop: false }`
[INFO] [stdout] e951f67916709cd7d00ca8dffe1a8b40504e1c3db4f3e53dca86ac65acb9bcf5
[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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4bdeac9a46bb92ef4a7859822bc4dd7c1b5eb6e428793b86ae17f1eac276a1db
[INFO] running `Command { std: "docker" "start" "-a" "4bdeac9a46bb92ef4a7859822bc4dd7c1b5eb6e428793b86ae17f1eac276a1db", 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]   |
[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 libc v0.2.150
[INFO] [stderr]    Compiling hashbrown v0.14.3
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling memchr v2.6.4
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling smallvec v1.11.2
[INFO] [stderr]    Compiling rustix v0.38.26
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling regex-syntax v0.8.2
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling linux-raw-sys v0.4.12
[INFO] [stderr]    Compiling winnow v0.5.19
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling toml_datetime v0.6.5
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.4
[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.2
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling bit-set v0.5.3
[INFO] [stderr]    Compiling num-bigint v0.4.4
[INFO] [stderr]    Compiling indexmap v2.1.0
[INFO] [stderr]    Compiling aho-corasick v1.1.2
[INFO] [stderr]    Compiling thiserror v1.0.50
[INFO] [stderr]    Compiling anyhow v1.0.75
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling beef v0.5.2
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling futures-core v0.3.29
[INFO] [stderr]    Compiling futures-task v0.3.29
[INFO] [stderr]    Compiling is-terminal v0.4.9
[INFO] [stderr]    Compiling futures-channel v0.3.29
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]     Checking futures-sink v0.3.29
[INFO] [stderr]    Compiling cpufeatures v0.2.11
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling unicode-width v0.1.11
[INFO] [stderr]    Compiling futures-util v0.3.29
[INFO] [stderr]    Compiling termcolor v1.4.0
[INFO] [stderr]    Compiling petgraph v0.6.4
[INFO] [stderr]    Compiling codespan-reporting v0.11.1
[INFO] [stderr]    Compiling pretty v0.10.0
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling dirs-sys-next v0.1.2
[INFO] [stderr]    Compiling toml_edit v0.19.15
[INFO] [stderr]    Compiling dirs-next v2.0.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling term v0.7.0
[INFO] [stderr]    Compiling string_cache v0.8.7
[INFO] [stderr]     Checking regex-automata v0.4.3
[INFO] [stderr]    Compiling data-encoding v2.5.0
[INFO] [stderr]     Checking futures-io v0.3.29
[INFO] [stderr]    Compiling ascii-canvas v3.0.0
[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]    Compiling proc-macro-crate v1.3.1
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]    Compiling thiserror-impl v1.0.50
[INFO] [stderr]    Compiling futures-macro v0.3.29
[INFO] [stderr]     Checking regex v1.10.2
[INFO] [stderr]     Checking lalrpop-util v0.19.12
[INFO] [stderr]    Compiling lalrpop v0.19.12
[INFO] [stderr]    Compiling binread_derive v2.1.0
[INFO] [stderr]    Compiling logos-derive v0.12.1
[INFO] [stderr]    Compiling num_enum_derive v0.5.11
[INFO] [stderr]    Compiling candid_derive v0.5.0
[INFO] [stderr]     Checking futures-executor v0.3.29
[INFO] [stderr]     Checking futures v0.3.29
[INFO] [stderr]    Compiling num_enum v0.5.11
[INFO] [stderr]    Compiling binread v2.2.0
[INFO] [stderr]    Compiling logos v0.12.1
[INFO] [stderr]     Checking serde_bytes v0.11.12
[INFO] [stderr]    Compiling serde_tokenstream v0.1.7
[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[E0425]: 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<candid::Principal>,
[INFO] [stdout]    |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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<BTreeMap<u64, Proposal>>| 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[E0425]: 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<BTreeMap<u64, Proposal>>| 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[E0425]: 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<BTreeMap<u64, Proposal>>| 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[E0425]: 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<candid::Principal>,
[INFO] [stdout]    |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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 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<BTreeMap<u64, Proposal>>| 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[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[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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 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<BTreeMap<u64, Proposal>>| 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[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]     |             ^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/option.rs:608:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Some` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 169 -             some(_) => OK(()),
[INFO] [stdout] 169 +             Some(_) => OK(()),
[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[E0425]: 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<BTreeMap<u64, Proposal>>| 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[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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[E0425]: 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<BTreeMap<u64, Proposal>>| {
[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]     |             ^^^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/option.rs:608:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Some` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 169 -             some(_) => OK(()),
[INFO] [stdout] 169 +             Some(_) => OK(()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `BTreeMap<_, _, VirtualMemory<Rc<RefCell<Vec<u8>>>>>: Memory` is not satisfied
[INFO] [stdout]    --> src/final_project_backend/src/lib.rs:61:105
[INFO] [stdout]     |
[INFO] [stdout]  61 | ...fCell::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<Rc<RefCell<std::vec::Vec<u8>>>>>`
[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<M>
[INFO] [stdout]               RefCell<std::vec::Vec<u8>>
[INFO] [stdout]               RestrictedMemory<M>
[INFO] [stdout]               VirtualMemory<M>
[INFO] [stdout] note: required by a bound in `MemoryManager::<M>::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<M: Memory> MemoryManager<M> {
[INFO] [stdout]     |         ^^^^^^ required by this bound in `MemoryManager::<M>::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-b0b92daa6fbd2f78.long-type-5138637453058475508.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<Rc<RefCell<Vec<u8>>>>>: Memory` is not satisfied
[INFO] [stdout]    --> src/final_project_backend/src/lib.rs:61:105
[INFO] [stdout]     |
[INFO] [stdout]  61 | ...fCell::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<Rc<RefCell<std::vec::Vec<u8>>>>>`
[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<M>
[INFO] [stdout]               RefCell<std::vec::Vec<u8>>
[INFO] [stdout]               RestrictedMemory<M>
[INFO] [stdout]               VirtualMemory<M>
[INFO] [stdout] note: required by a bound in `MemoryManager::<M>::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<M: Memory> MemoryManager<M> {
[INFO] [stdout]     |         ^^^^^^ required by this bound in `MemoryManager::<M>::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-490bfa40f402734f.long-type-16632976277402951028.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<Rc<RefCell<Vec<u8>>>>>: Memory` is not satisfied
[INFO] [stdout]    --> src/final_project_backend/src/lib.rs:61:85
[INFO] [stdout]     |
[INFO] [stdout]  61 | ...fCell::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<Rc<RefCell<std::vec::Vec<u8>>>>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `ic_stable_structures::Memory`:
[INFO] [stdout]               FileMemory
[INFO] [stdout]               Rc<M>
[INFO] [stdout]               RefCell<std::vec::Vec<u8>>
[INFO] [stdout]               RestrictedMemory<M>
[INFO] [stdout]               VirtualMemory<M>
[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<M: Memory> {
[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-b0b92daa6fbd2f78.long-type-5138637453058475508.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<Rc<RefCell<Vec<u8>>>>>: Memory` is not satisfied
[INFO] [stdout]    --> src/final_project_backend/src/lib.rs:61:85
[INFO] [stdout]     |
[INFO] [stdout]  61 | ...fCell::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<Rc<RefCell<std::vec::Vec<u8>>>>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `ic_stable_structures::Memory`:
[INFO] [stdout]               FileMemory
[INFO] [stdout]               Rc<M>
[INFO] [stdout]               RefCell<std::vec::Vec<u8>>
[INFO] [stdout]               RestrictedMemory<M>
[INFO] [stdout]               VirtualMemory<M>
[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<M: Memory> {
[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-490bfa40f402734f.long-type-16632976277402951028.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 | ...ry>> = RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0))))));
[INFO] [stdout]    |           ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `BTreeMap<u64, Proposal, ...>`, found `MemoryManager<BTreeMap<_, _, ...>>`
[INFO] [stdout]    |           |
[INFO] [stdout]    |           arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `StableBTreeMap<u64, Proposal, _>`
[INFO] [stdout]               found struct `MemoryManager<StableBTreeMap<_, _, _>>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/cell.rs:949:17
[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 | ...ry>> = RefCell::new(MemoryManager::init(StableBTreeMap::init(MEMORY_MANAGER.with(|m| m.borrow().get(MemoryId::new(0))))));
[INFO] [stdout]    |           ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `BTreeMap<u64, Proposal, ...>`, found `MemoryManager<BTreeMap<_, _, ...>>`
[INFO] [stdout]    |           |
[INFO] [stdout]    |           arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `StableBTreeMap<u64, Proposal, _>`
[INFO] [stdout]               found struct `MemoryManager<StableBTreeMap<_, _, _>>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/cell.rs:949:17
[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]    |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]    |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 95 |             None => return Err(VoteError::NoSuchProposal),
[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]    |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]    |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 95 |             None => return Err(VoteError::NoSuchProposal),
[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:98:24
[INFO] [stdout]    |
[INFO] [stdout] 98 |             return Err(VoteEror::AccessRejected);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]    |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 98 |             return Err(VoteError::AccessRejected);
[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:98:24
[INFO] [stdout]    |
[INFO] [stdout] 98 |             return Err(VoteEror::AccessRejected);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]    |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 98 |             return Err(VoteError::AccessRejected);
[INFO] [stdout]    |                              +
[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[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[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]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 112 -             Some(_) => OK(()),
[INFO] [stdout] 112 +             Some(_) => Ok(()),
[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]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 112 -             Some(_) => OK(()),
[INFO] [stdout] 112 +             Some(_) => Ok(()),
[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:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 |             None => Err(VoteEror::UpdateError),
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 113 |             None => Err(VoteError::UpdateError),
[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:113:25
[INFO] [stdout]     |
[INFO] [stdout] 113 |             None => Err(VoteEror::UpdateError),
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 113 |             None => Err(VoteError::UpdateError),
[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:126:32
[INFO] [stdout]     |
[INFO] [stdout] 126 |             None => return Err(VoteEror::NoSuchProposal),
[INFO] [stdout]     |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 126 |             None => return Err(VoteError::NoSuchProposal),
[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:129:24
[INFO] [stdout]     |
[INFO] [stdout] 129 |             return Err(VoteEror::AccessRejected);
[INFO] [stdout]     |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 129 |             return Err(VoteError::AccessRejected);
[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:126:32
[INFO] [stdout]     |
[INFO] [stdout] 126 |             None => return Err(VoteEror::NoSuchProposal),
[INFO] [stdout]     |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 126 |             None => return Err(VoteError::NoSuchProposal),
[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:129:24
[INFO] [stdout]     |
[INFO] [stdout] 129 |             return Err(VoteEror::AccessRejected);
[INFO] [stdout]     |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 129 |             return Err(VoteError::AccessRejected);
[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:137:24
[INFO] [stdout]     |
[INFO] [stdout] 137 |             Some(_) => OK(()),
[INFO] [stdout]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 137 -             Some(_) => OK(()),
[INFO] [stdout] 137 +             Some(_) => Ok(()),
[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]     |                         ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 138 |             None => Err(VoteError::UpdateError),
[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:137:24
[INFO] [stdout]     |
[INFO] [stdout] 137 |             Some(_) => OK(()),
[INFO] [stdout]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 137 -             Some(_) => OK(()),
[INFO] [stdout] 137 +             Some(_) => Ok(()),
[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]     |                         ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 138 |             None => Err(VoteError::UpdateError),
[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:151:32
[INFO] [stdout]     |
[INFO] [stdout] 151 |             None => return Err(VoteEror::NoSuchProposal),
[INFO] [stdout]     |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 151 |             None => return Err(VoteError::NoSuchProposal),
[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:155:24
[INFO] [stdout]     |
[INFO] [stdout] 155 |             return Err(VoteEror::AlreadyVoted);
[INFO] [stdout]     |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 155 |             return Err(VoteError::AlreadyVoted);
[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:151:32
[INFO] [stdout]     |
[INFO] [stdout] 151 |             None => return Err(VoteEror::NoSuchProposal),
[INFO] [stdout]     |                                ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 151 |             None => return Err(VoteError::NoSuchProposal),
[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: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:155:24
[INFO] [stdout]     |
[INFO] [stdout] 155 |             return Err(VoteEror::AlreadyVoted);
[INFO] [stdout]     |                        ^^^^^^^^ use of undeclared type `VoteEror`
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 155 |             return Err(VoteError::AlreadyVoted);
[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: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]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 169 -             some(_) => OK(()),
[INFO] [stdout] 169 +             some(_) => Ok(()),
[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]     |                        ^^
[INFO] [stdout]     |
[INFO] [stdout]    --> /rustc/db4e1d23234d93b5e96ecc768b35d9090c32cddf/library/core/src/result.rs:561:4
[INFO] [stdout]     |
[INFO] [stdout]     = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] help: a tuple variant with a similar name exists (notice the capitalization)
[INFO] [stdout]     |
[INFO] [stdout] 169 -             some(_) => OK(()),
[INFO] [stdout] 169 +             some(_) => Ok(()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0423, E0425, E0433, E0531, E0560, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, 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] [stderr] error: could not compile `final_project_backend` (lib) due to 29 previous errors
[INFO] running `Command { std: "docker" "inspect" "4bdeac9a46bb92ef4a7859822bc4dd7c1b5eb6e428793b86ae17f1eac276a1db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4bdeac9a46bb92ef4a7859822bc4dd7c1b5eb6e428793b86ae17f1eac276a1db", kill_on_drop: false }`
[INFO] [stdout] 4bdeac9a46bb92ef4a7859822bc4dd7c1b5eb6e428793b86ae17f1eac276a1db
