[INFO] cloning repository https://github.com/kozolex/bootcamp_chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kozolex/bootcamp_chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkozolex%2Fbootcamp_chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkozolex%2Fbootcamp_chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ad47f12a8a5d91b9e2178eb617e55382dd9820b [INFO] testing kozolex/bootcamp_chat against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkozolex%2Fbootcamp_chat" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kozolex/bootcamp_chat [INFO] finished tweaking git repo https://github.com/kozolex/bootcamp_chat [INFO] tweaked toml for git repo https://github.com/kozolex/bootcamp_chat written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kozolex/bootcamp_chat on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kozolex/bootcamp_chat 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f544bf00535c9a6f50555b3eb5c83c2055a548bed8bfc24071231e42dcdb155 [INFO] running `Command { std: "docker" "start" "-a" "9f544bf00535c9a6f50555b3eb5c83c2055a548bed8bfc24071231e42dcdb155", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f544bf00535c9a6f50555b3eb5c83c2055a548bed8bfc24071231e42dcdb155", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f544bf00535c9a6f50555b3eb5c83c2055a548bed8bfc24071231e42dcdb155", kill_on_drop: false }` [INFO] [stdout] 9f544bf00535c9a6f50555b3eb5c83c2055a548bed8bfc24071231e42dcdb155 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4f2125fee91ae27566e57fdc10f8e79fb379c7b167e2a49516a6de78e123ccf [INFO] running `Command { std: "docker" "start" "-a" "d4f2125fee91ae27566e57fdc10f8e79fb379c7b167e2a49516a6de78e123ccf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling ic0 v0.21.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.10.9 [INFO] [stderr] Compiling ic-cdk-macros v0.13.2 [INFO] [stderr] Compiling ic-cdk v0.13.2 [INFO] [stderr] Compiling ic-cdk-timers v0.7.0 [INFO] [stderr] Compiling bootcamp_chat_backend v0.1.0 (/opt/rustwide/workdir/src/bootcamp_chat_backend) [INFO] [stdout] error: expected `;`, found `thread_local` [INFO] [stdout] --> src/bootcamp_chat_backend/src/lib.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use candid::Principal [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 5 | thread_local! { [INFO] [stdout] | ------------ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/bootcamp_chat_backend/src/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::{Ref, RefCell}, collections::HashMap}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bootcamp_chat_backend/src/lib.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 11 | NOTES.with_borrow(|notes| notes.get(user).clone()) [INFO] [stdout] | --- ^^^^ expected `&Principal`, found `Principal` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/collections/hash/map.rs:1001:11 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 11 | NOTES.with_borrow(|notes| notes.get(&user).clone()) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bootcamp_chat_backend/src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_notes(user: Principal) -> Vec { [INFO] [stdout] | ----------- expected `std::vec::Vec` because of return type [INFO] [stdout] 11 | NOTES.with_borrow(|notes| notes.get(user).clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Option<&Vec>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::vec::Vec` [INFO] [stdout] found enum `Option<&std::vec::Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push` found for mutable reference `&mut HashMap>` in the current scope [INFO] [stdout] --> src/bootcamp_chat_backend/src/lib.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | notes.push(note) [INFO] [stdout] | ^^^^ method not found in `&mut HashMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bootcamp_chat_backend` (lib) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d4f2125fee91ae27566e57fdc10f8e79fb379c7b167e2a49516a6de78e123ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4f2125fee91ae27566e57fdc10f8e79fb379c7b167e2a49516a6de78e123ccf", kill_on_drop: false }` [INFO] [stdout] d4f2125fee91ae27566e57fdc10f8e79fb379c7b167e2a49516a6de78e123ccf