[INFO] cloning repository https://github.com/alperburakdgn/icp_project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alperburakdgn/icp_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falperburakdgn%2Ficp_project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falperburakdgn%2Ficp_project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16c79e529465dcc8c696d7f9eac5fba79f94e584 [INFO] checking alperburakdgn/icp_project/16c79e529465dcc8c696d7f9eac5fba79f94e584 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falperburakdgn%2Ficp_project" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alperburakdgn/icp_project on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alperburakdgn/icp_project [INFO] finished tweaking git repo https://github.com/alperburakdgn/icp_project [INFO] tweaked toml for git repo https://github.com/alperburakdgn/icp_project written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/alperburakdgn/icp_project 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e3d7f93dec9b2b73d031ed33d88ab0433bf636cc0a657da575699b5a481ca064 [INFO] running `Command { std: "docker" "start" "-a" "e3d7f93dec9b2b73d031ed33d88ab0433bf636cc0a657da575699b5a481ca064", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3d7f93dec9b2b73d031ed33d88ab0433bf636cc0a657da575699b5a481ca064", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3d7f93dec9b2b73d031ed33d88ab0433bf636cc0a657da575699b5a481ca064", kill_on_drop: false }` [INFO] [stdout] e3d7f93dec9b2b73d031ed33d88ab0433bf636cc0a657da575699b5a481ca064 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96b8a93476103acd1e849173a5565f96b84b818a50426fb11cde24b49073d4ac [INFO] running `Command { std: "docker" "start" "-a" "96b8a93476103acd1e849173a5565f96b84b818a50426fb11cde24b49073d4ac", 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 autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.173 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling serde_derive v1.0.173 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling quote v1.0.31 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling bitflags v2.3.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.3 [INFO] [stderr] Compiling winnow v0.5.0 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling regex-automata v0.3.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling string_cache v0.8.7 [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.3 [INFO] [stderr] Compiling regex v1.9.1 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling lazy_static v1.4.0 [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 slab v0.4.8 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling logos-derive v0.12.1 [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 arrayvec v0.5.2 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling serde_bytes v0.11.12 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Checking ic0 v0.18.11 [INFO] [stderr] Checking ic-stable-structures v0.5.6 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [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: expected `:`, found `candid` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 27 | struct Proposal{ [INFO] [stdout] | -------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 34 | owner candid::Principal, [INFO] [stdout] | ^^^^^^ expected `:` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:`, found `candid` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 27 | struct Proposal{ [INFO] [stdout] | -------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 34 | owner candid::Principal, [INFO] [stdout] | ^^^^^^ expected `:` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 63 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] 63 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 63 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] 63 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:63:60 [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 63 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 67 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] 67 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 82 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] 82 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 67 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] 67 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 67 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 82 - PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] 82 + PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 88 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 88 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:82:60 [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 82 | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow_mut().insert(key,value)) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | Some(value: Proposal) => old_proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 88 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 88 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 88 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | Some(value: Proposal) => old_proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 122 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 122 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 127 | Some(value: Proposal) => old_proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/final_project_backend/src/lib.rs:137:69 [INFO] [stdout] | [INFO] [stdout] 137 | let res: Option = p.borrow_mut().insert(key, value:old_proposal); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 137 | let res: Option = p.borrow_mut().insert(key, value::old_proposal); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 147 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 147 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:152:23 [INFO] [stdout] | [INFO] [stdout] 152 | Some(value: Proposal) => proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/final_project_backend/src/lib.rs:171:69 [INFO] [stdout] | [INFO] [stdout] 171 | let res: Option = p.borrow_mut().insert(key, value:proposal); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 171 | let res: Option = p.borrow_mut().insert(key, value::proposal); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 122 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 122 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 122 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 127 | Some(value: Proposal) => old_proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/final_project_backend/src/lib.rs:137:69 [INFO] [stdout] | [INFO] [stdout] 137 | let res: Option = p.borrow_mut().insert(key, value:old_proposal); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 137 | let res: Option = p.borrow_mut().insert(key, value::old_proposal); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 147 - PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 147 + PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid const generic expression [INFO] [stdout] --> src/final_project_backend/src/lib.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 147 | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `@`, or `|`, found `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:152:23 [INFO] [stdout] | [INFO] [stdout] 152 | Some(value: Proposal) => proposal = value, [INFO] [stdout] | ^ expected one of `)`, `,`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/final_project_backend/src/lib.rs:171:69 [INFO] [stdout] | [INFO] [stdout] 171 | let res: Option = p.borrow_mut().insert(key, value:proposal); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 171 | let res: Option = p.borrow_mut().insert(key, value::proposal); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | owner candid::Principal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: wrong meta list delimiters [INFO] [stdout] --> src/final_project_backend/src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive{Debug,CandidType,Deserialize}] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the delimiters should be `(` and `)` [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug,CandidType,Deserialize)] [INFO] [stdout] | ~ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:` [INFO] [stdout] --> src/final_project_backend/src/lib.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | owner candid::Principal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[query] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | / fn get_proposal(key: u64) -> Option { [INFO] [stdout] 63 | | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[query] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / fn get_proposal_count() -> u64 { [INFO] [stdout] 67 | | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] 68 | | [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / fn create_proposal(key: u64, proposal: CreateProposal) -> Option { [INFO] [stdout] 72 | | let value : Proposal = Proposal{ [INFO] [stdout] 73 | | description: proposal.description, [INFO] [stdout] 74 | | approve:0u32, [INFO] [stdout] ... | [INFO] [stdout] 83 | | [INFO] [stdout] 84 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[query] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | / fn get_proposal(key: u64) -> Option { [INFO] [stdout] 63 | | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().get(key)) [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / fn edit_proposal(key: u64, proposal: CreateProposal) -> Result<(), VoteError> { [INFO] [stdout] 87 | | [INFO] [stdout] 88 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 89 | | let old_proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] ... | [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[query] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / fn get_proposal_count() -> u64 { [INFO] [stdout] 67 | | PROPOSAL_MAP.with(|p: &RefCell>|p.borrow().len()) [INFO] [stdout] 68 | | [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn end_proposal(key: u64) -> Result<(), VoteError> { [INFO] [stdout] 122 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 123 | | let old_proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] 124 | | let old_proposal: Proposal; [INFO] [stdout] ... | [INFO] [stdout] 143 | | } ) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / fn create_proposal(key: u64, proposal: CreateProposal) -> Option { [INFO] [stdout] 72 | | let value : Proposal = Proposal{ [INFO] [stdout] 73 | | description: proposal.description, [INFO] [stdout] 74 | | approve:0u32, [INFO] [stdout] ... | [INFO] [stdout] 83 | | [INFO] [stdout] 84 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | / fn vote(key: u64, choice: Choice) -> Result<(), VoteError> { [INFO] [stdout] 147 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 148 | | let proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] 149 | | let mut proposal: Proposal; [INFO] [stdout] ... | [INFO] [stdout] 177 | | }) [INFO] [stdout] 178 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | / fn edit_proposal(key: u64, proposal: CreateProposal) -> Result<(), VoteError> { [INFO] [stdout] 87 | | [INFO] [stdout] 88 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 89 | | let old_proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] ... | [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / fn end_proposal(key: u64) -> Result<(), VoteError> { [INFO] [stdout] 122 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 123 | | let old_proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] 124 | | let old_proposal: Proposal; [INFO] [stdout] ... | [INFO] [stdout] 143 | | } ) [INFO] [stdout] 144 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: #[update] must be above a function. [INFO] [stdout] expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/final_project_backend/src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | / fn vote(key: u64, choice: Choice) -> Result<(), VoteError> { [INFO] [stdout] 147 | | PROPOSAL_MAP.with(|p: &RefCell>| { [INFO] [stdout] 148 | | let proposal_opt: Option = p.borrow().get(&key); [INFO] [stdout] 149 | | let mut proposal: Proposal; [INFO] [stdout] ... | [INFO] [stdout] 177 | | }) [INFO] [stdout] 178 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: CandidType` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Cow::Owned(Encode!(self).unwrap()) [INFO] [stdout] | --------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `CandidType` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `IDLBuilder::arg` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/ser.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn arg<'a, T: types::CandidType>(&'a mut self, value: &T) -> Result<&'a mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `IDLBuilder::arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: CandidType` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | Cow::Owned(Encode!(self).unwrap()) [INFO] [stdout] | --------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `CandidType` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `IDLBuilder::arg` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/ser.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn arg<'a, T: types::CandidType>(&'a mut self, value: &T) -> Result<&'a mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `IDLBuilder::arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | Decode!(bytes.as_ref(), Self).unwrap() [INFO] [stdout] | ------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `Deserialize<'_>` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a serde_bytes::bytes::Bytes [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] and 178 others [INFO] [stdout] note: required by a bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/de.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&mut self) -> Result [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] 33 | where [INFO] [stdout] 34 | T: de::Deserialize<'de> + CandidType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: CandidType` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | Decode!(bytes.as_ref(), Self).unwrap() [INFO] [stdout] | ------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `CandidType` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/de.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&mut self) -> Result [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] 33 | where [INFO] [stdout] 34 | T: de::Deserialize<'de> + CandidType, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | Decode!(bytes.as_ref(), Self).unwrap() [INFO] [stdout] | ------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `Deserialize<'_>` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a serde_bytes::bytes::Bytes [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] and 178 others [INFO] [stdout] note: required by a bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/de.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&mut self) -> Result [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] 33 | where [INFO] [stdout] 34 | T: de::Deserialize<'de> + CandidType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Proposal: CandidType` is not satisfied [INFO] [stdout] --> src/final_project_backend/src/lib.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | Decode!(bytes.as_ref(), Self).unwrap() [INFO] [stdout] | ------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | the trait `CandidType` is not implemented for `Proposal` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/candid-0.8.4/src/de.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_value(&mut self) -> Result [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] 33 | where [INFO] [stdout] 34 | T: de::Deserialize<'de> + CandidType, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `IDLDeserialize::<'de>::get_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [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 38 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 38 previous errors [INFO] running `Command { std: "docker" "inspect" "96b8a93476103acd1e849173a5565f96b84b818a50426fb11cde24b49073d4ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96b8a93476103acd1e849173a5565f96b84b818a50426fb11cde24b49073d4ac", kill_on_drop: false }` [INFO] [stdout] 96b8a93476103acd1e849173a5565f96b84b818a50426fb11cde24b49073d4ac