[INFO] cloning repository https://github.com/rauletaveras/zettel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rauletaveras/zettel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauletaveras%2Fzettel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauletaveras%2Fzettel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 836bfaa92b2deafa40de54ac61a4104fdf244605 [INFO] building rauletaveras/zettel against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauletaveras%2Fzettel" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rauletaveras/zettel [INFO] finished tweaking git repo https://github.com/rauletaveras/zettel [INFO] tweaked toml for git repo https://github.com/rauletaveras/zettel written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rauletaveras/zettel on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rauletaveras/zettel 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a773d2a2adac591ab481be270a7ab3c69d68d6e586ade1f90c386520a1a3fdd [INFO] running `Command { std: "docker" "start" "-a" "3a773d2a2adac591ab481be270a7ab3c69d68d6e586ade1f90c386520a1a3fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a773d2a2adac591ab481be270a7ab3c69d68d6e586ade1f90c386520a1a3fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a773d2a2adac591ab481be270a7ab3c69d68d6e586ade1f90c386520a1a3fdd", kill_on_drop: false }` [INFO] [stdout] 3a773d2a2adac591ab481be270a7ab3c69d68d6e586ade1f90c386520a1a3fdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0c697d59e6eabb2d182cd6e331bc70dfe38a39b7bc0433dd5e026015df48eeb [INFO] running `Command { std: "docker" "start" "-a" "e0c697d59e6eabb2d182cd6e331bc70dfe38a39b7bc0433dd5e026015df48eeb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling zettel-core v0.2.0 (/opt/rustwide/workdir/crates/zettel-core) [INFO] [stderr] Compiling zettel-cli v0.2.0 (/opt/rustwide/workdir/crates/zettel-cli) [INFO] [stdout] warning: methods `get_new_file_directory` and `vault_path` are never used [INFO] [stdout] --> crates/zettel-cli/src/services/vault.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl VaultService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn get_new_file_directory(&self, _current_file_path: &str) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | pub fn vault_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vault_path` is never read [INFO] [stdout] --> crates/zettel-cli/src/context.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 65 | vault_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vault_path` is never used [INFO] [stdout] --> crates/zettel-cli/src/context.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn vault_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.17s [INFO] running `Command { std: "docker" "inspect" "e0c697d59e6eabb2d182cd6e331bc70dfe38a39b7bc0433dd5e026015df48eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0c697d59e6eabb2d182cd6e331bc70dfe38a39b7bc0433dd5e026015df48eeb", kill_on_drop: false }` [INFO] [stdout] e0c697d59e6eabb2d182cd6e331bc70dfe38a39b7bc0433dd5e026015df48eeb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78471d29d776ec51926888f85760ebdedd5301c17a94660685333daf4b6d3aa4 [INFO] running `Command { std: "docker" "start" "-a" "78471d29d776ec51926888f85760ebdedd5301c17a94660685333daf4b6d3aa4", kill_on_drop: false }` [INFO] [stderr] Compiling zettel-core v0.2.0 (/opt/rustwide/workdir/crates/zettel-core) [INFO] [stderr] Compiling zettel-cli v0.2.0 (/opt/rustwide/workdir/crates/zettel-cli) [INFO] [stdout] warning: methods `get_new_file_directory` and `vault_path` are never used [INFO] [stdout] --> crates/zettel-cli/src/services/vault.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl VaultService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn get_new_file_directory(&self, _current_file_path: &str) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | pub fn vault_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vault_path` is never read [INFO] [stdout] --> crates/zettel-cli/src/context.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 65 | vault_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `existing_ids` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/zettel-core/src/id.rs:813:9 [INFO] [stdout] | [INFO] [stdout] 801 | let manager = IdManager::new(config, |id: &str| existing_ids.contains(id)); [INFO] [stdout] | ---------- ------------ first borrow occurs due to use of `existing_ids` in closure [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 813 | existing_ids.insert("1b".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 814 | existing_ids.insert("1c".to_string()); [INFO] [stdout] 815 | let next_child = manager.next_available_child(¤t); [INFO] [stdout] | ------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `existing_ids` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/zettel-core/src/id.rs:814:9 [INFO] [stdout] | [INFO] [stdout] 801 | let manager = IdManager::new(config, |id: &str| existing_ids.contains(id)); [INFO] [stdout] | ---------- ------------ first borrow occurs due to use of `existing_ids` in closure [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 814 | existing_ids.insert("1c".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 815 | let next_child = manager.next_available_child(¤t); [INFO] [stdout] | ------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vault_path` is never used [INFO] [stdout] --> crates/zettel-cli/src/context.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn vault_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zettel-core` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "78471d29d776ec51926888f85760ebdedd5301c17a94660685333daf4b6d3aa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78471d29d776ec51926888f85760ebdedd5301c17a94660685333daf4b6d3aa4", kill_on_drop: false }` [INFO] [stdout] 78471d29d776ec51926888f85760ebdedd5301c17a94660685333daf4b6d3aa4