[INFO] cloning repository https://github.com/SimonBonr/obsidian_generate_query [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SimonBonr/obsidian_generate_query" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimonBonr%2Fobsidian_generate_query", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimonBonr%2Fobsidian_generate_query'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 748418b1db75f85d0f31c66081f291792de70c81 [INFO] checking SimonBonr/obsidian_generate_query against try#121a90d34197f711021eeb158e7f4184b8be8ceb for pr-140313 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimonBonr%2Fobsidian_generate_query" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SimonBonr/obsidian_generate_query on toolchain 121a90d34197f711021eeb158e7f4184b8be8ceb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SimonBonr/obsidian_generate_query [INFO] finished tweaking git repo https://github.com/SimonBonr/obsidian_generate_query [INFO] tweaked toml for git repo https://github.com/SimonBonr/obsidian_generate_query written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/SimonBonr/obsidian_generate_query 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" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f5c915f946b4ded4a2ec44e7c2faabcc1b796da2e758e0e9c9dc57d79f5ecaf [INFO] running `Command { std: "docker" "start" "-a" "5f5c915f946b4ded4a2ec44e7c2faabcc1b796da2e758e0e9c9dc57d79f5ecaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f5c915f946b4ded4a2ec44e7c2faabcc1b796da2e758e0e9c9dc57d79f5ecaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f5c915f946b4ded4a2ec44e7c2faabcc1b796da2e758e0e9c9dc57d79f5ecaf", kill_on_drop: false }` [INFO] [stdout] 5f5c915f946b4ded4a2ec44e7c2faabcc1b796da2e758e0e9c9dc57d79f5ecaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58a5a1d520be7b51646af3e08110b1bd5ce047028c268a08455f8bca47120200 [INFO] running `Command { std: "docker" "start" "-a" "58a5a1d520be7b51646af3e08110b1bd5ce047028c268a08455f8bca47120200", kill_on_drop: false }` [INFO] [stderr] Checking zotero_obsidian_headers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/litterature_processing.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | Err(err) => {if (data::DEBUGGING){ println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - Err(err) => {if (data::DEBUGGING){ println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] 14 + Err(err) => {if data::DEBUGGING { println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::data::Nested_Links` [INFO] [stdout] --> src/zettle_processing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::data::Nested_Links; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/zettle_processing.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Nested_Links` should have an upper camel case name [INFO] [stdout] --> src/data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Nested_Links { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NestedLinks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/litterature_processing.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | Err(err) => {if (data::DEBUGGING){ println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - Err(err) => {if (data::DEBUGGING){ println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] 14 + Err(err) => {if data::DEBUGGING { println!("Skipping {} due to {}", filename.display(), err)}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::data::Nested_Links` [INFO] [stdout] --> src/zettle_processing.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::data::Nested_Links; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/zettle_processing.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Nested_Links` should have an upper camel case name [INFO] [stdout] --> src/data.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Nested_Links { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NestedLinks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tabs` is assigned to, but never used [INFO] [stdout] --> src/litterature_processing.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut tabs = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_tabs` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tabs` is assigned to, but never used [INFO] [stdout] --> src/litterature_processing.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut tabs = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_tabs` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zettle_processing.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn modify_zettle_files(zet_loc: &String, mut nested_links:data::Nested_Links) { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zettle_processing.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn modify_zettle_files(zet_loc: &String, mut nested_links:data::Nested_Links) { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_header_combo` is never read [INFO] [stdout] --> src/zettle_processing.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut new_header_combo: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_header_combo` is never read [INFO] [stdout] --> src/zettle_processing.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut new_header_combo: String = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_nested_link` is never used [INFO] [stdout] --> src/zettle_processing.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn rec_nested_link(nested_links: &data::Nested_Links, tabs: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_queries` is never used [INFO] [stdout] --> src/zettle_processing.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_queries() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `files_file` should have an upper case name [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | static files_file: &str = "./resources/folders.txt"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `FILES_FILE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_nested_link` is never used [INFO] [stdout] --> src/zettle_processing.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn rec_nested_link(nested_links: &data::Nested_Links, tabs: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_queries` is never used [INFO] [stdout] --> src/zettle_processing.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_queries() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `files_file` should have an upper case name [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | static files_file: &str = "./resources/folders.txt"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `FILES_FILE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/zettle_processing.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fs::write(&fileaddr, new_filedata); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = fs::write(&fileaddr, new_filedata); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/zettle_processing.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fs::write(&fileaddr, new_filedata); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = fs::write(&fileaddr, new_filedata); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "58a5a1d520be7b51646af3e08110b1bd5ce047028c268a08455f8bca47120200", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58a5a1d520be7b51646af3e08110b1bd5ce047028c268a08455f8bca47120200", kill_on_drop: false }` [INFO] [stdout] 58a5a1d520be7b51646af3e08110b1bd5ce047028c268a08455f8bca47120200