[INFO] cloning repository https://github.com/joanix2/Rust-Patchs-Templates [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joanix2/Rust-Patchs-Templates" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoanix2%2FRust-Patchs-Templates", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoanix2%2FRust-Patchs-Templates'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 90845500962361c350a795a4af25ca632ae0cf0d [INFO] testing joanix2/Rust-Patchs-Templates against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoanix2%2FRust-Patchs-Templates" "/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/joanix2/Rust-Patchs-Templates [INFO] finished tweaking git repo https://github.com/joanix2/Rust-Patchs-Templates [INFO] tweaked toml for git repo https://github.com/joanix2/Rust-Patchs-Templates written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joanix2/Rust-Patchs-Templates on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joanix2/Rust-Patchs-Templates 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" "+1.99.0-beta.1" "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-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c [INFO] running `Command { std: "docker" "start" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling pest v2.8.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling deunicode v1.6.2 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling clap_builder v4.5.49 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling pest_generator v2.8.3 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pest_derive v2.8.3 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling clap v4.5.49 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling rust-patchs-templates v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `syntax_tree` is never read [INFO] [stdout] --> src/ast_parser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ParsedFile { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | pub syntax_tree: File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsedFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_item` and `get_item_names` are never used [INFO] [stdout] --> src/ast_parser.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ParsedFile { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn find_item(&self, name: &str) -> Option<&Item> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_item_names(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_template_names` are never used [INFO] [stdout] --> src/template.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TemplateEngine { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 17 | /// Create a new template engine from a templates directory [INFO] [stdout] 18 | pub fn new(template_dir: &Path) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_template_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_context` is never used [INFO] [stdout] --> src/template.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn create_context(pairs: Vec<(&str, Value)>) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling rust-patchs-templates v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `syntax_tree` is never read [INFO] [stdout] --> src/ast_parser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ParsedFile { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | pub syntax_tree: File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsedFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_template_names` are never used [INFO] [stdout] --> src/template.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TemplateEngine { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 17 | /// Create a new template engine from a templates directory [INFO] [stdout] 18 | pub fn new(template_dir: &Path) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_template_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 22.66s [INFO] running `Command { std: "docker" "inspect" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: field `syntax_tree` is never read [INFO] [stderr] --> src/ast_parser.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct ParsedFile { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 12 | pub syntax_tree: File, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ParsedFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `get_template_names` are never used [INFO] [stderr] --> src/template.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl TemplateEngine { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 17 | /// Create a new template engine from a templates directory [INFO] [stderr] 18 | pub fn new(template_dir: &Path) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn get_template_names(&self) -> Vec<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-patchs-templates` (bin "rust-patchs-templates" test) generated 2 warnings [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/rust_patchs_templates-0f7956cd183c68b6) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test diff::tests::test_compute_patch_delete ... ok [INFO] [stdout] test ast_parser::tests::test_parse_simple_function ... ok [INFO] [stdout] test diff::tests::test_compute_patch_insert ... ok [INFO] [stdout] test diff::tests::test_compute_patch_keep ... ok [INFO] [stdout] test merger::tests::test_merge_keep_manual_additions ... ok [INFO] [stdout] test merger::tests::test_merge_insert ... ok [INFO] [stdout] test template::tests::test_render_simple_template ... ok [INFO] [stdout] test generator::tests::test_generate_new_file ... ok [INFO] [stdout] test ast_parser::tests::test_get_item_names ... ok [INFO] [stdout] test template::tests::test_render_struct_template ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c", kill_on_drop: false }` [INFO] [stdout] 611c0fa8439af1db784bde0ccdb84797fd07f6ae75abc84e9b97edbe0855e78c