[INFO] cloning repository https://github.com/usetheplatform/patch-that-shit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/usetheplatform/patch-that-shit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5cacc26bc220724508499c80f77c64f3083914c2 [INFO] testing usetheplatform/patch-that-shit against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fusetheplatform%2Fpatch-that-shit" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/usetheplatform/patch-that-shit on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/usetheplatform/patch-that-shit [INFO] finished tweaking git repo https://github.com/usetheplatform/patch-that-shit [INFO] tweaked toml for git repo https://github.com/usetheplatform/patch-that-shit written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/usetheplatform/patch-that-shit already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7fb98839cbe4d51db30b5e8240059515d73e10fe4aba726293fd91a4fb992c79 [INFO] running `Command { std: "docker" "start" "-a" "7fb98839cbe4d51db30b5e8240059515d73e10fe4aba726293fd91a4fb992c79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fb98839cbe4d51db30b5e8240059515d73e10fe4aba726293fd91a4fb992c79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fb98839cbe4d51db30b5e8240059515d73e10fe4aba726293fd91a4fb992c79", kill_on_drop: false }` [INFO] [stdout] 7fb98839cbe4d51db30b5e8240059515d73e10fe4aba726293fd91a4fb992c79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c657c50f05d8963977513f7ec4debe10b8eae9816c53632b3441c655643e3cf6 [INFO] running `Command { std: "docker" "start" "-a" "c657c50f05d8963977513f7ec4debe10b8eae9816c53632b3441c655643e3cf6", 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] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.88 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling hyperx v1.4.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling arc-swap v1.5.0 [INFO] [stderr] Compiling libc v0.2.120 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling snafu-derive v0.7.0 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling serde-diff-derive v0.4.0 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling snafu v0.7.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.7 [INFO] [stderr] Compiling serde_yaml v0.8.23 [INFO] [stderr] Compiling serde-diff v0.4.1 [INFO] [stderr] Compiling treediff v4.0.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling treediff v3.0.2 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling json-patch v0.2.6 [INFO] [stderr] Compiling octocrab v0.15.4 [INFO] [stderr] Compiling patch-that-shit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repositories` [INFO] [stdout] --> src/main.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repositories` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `github_token` [INFO] [stdout] --> src/main.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_github_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_patch` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_patch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_origin` [INFO] [stdout] --> src/main.rs:37:77 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch,... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:189:67 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_json` [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn write_json(filename: &String, json: &serde_json::Value) -> Result<(), serde_json::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `diff` [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn diff(a: &serde_yaml::Value, b: &serde_yaml::Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "c657c50f05d8963977513f7ec4debe10b8eae9816c53632b3441c655643e3cf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c657c50f05d8963977513f7ec4debe10b8eae9816c53632b3441c655643e3cf6", kill_on_drop: false }` [INFO] [stdout] c657c50f05d8963977513f7ec4debe10b8eae9816c53632b3441c655643e3cf6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0244c467bc1671e43422d4d98108182100155bad284ffc6a42ab5ac45663e857 [INFO] running `Command { std: "docker" "start" "-a" "0244c467bc1671e43422d4d98108182100155bad284ffc6a42ab5ac45663e857", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling patch-that-shit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repositories` [INFO] [stdout] --> src/main.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repositories` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `github_token` [INFO] [stdout] --> src/main.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_github_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_patch` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_patch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_to_origin` [INFO] [stdout] --> src/main.rs:37:77 [INFO] [stdout] | [INFO] [stdout] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch,... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:189:67 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_json` [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn write_json(filename: &String, json: &serde_json::Value) -> Result<(), serde_json::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `diff` [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn diff(a: &serde_yaml::Value, b: &serde_yaml::Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.08s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/patch_that_shit-35ff17cdb9f6081a) [INFO] running `Command { std: "docker" "inspect" "0244c467bc1671e43422d4d98108182100155bad284ffc6a42ab5ac45663e857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0244c467bc1671e43422d4d98108182100155bad284ffc6a42ab5ac45663e857", kill_on_drop: false }` [INFO] [stdout] 0244c467bc1671e43422d4d98108182100155bad284ffc6a42ab5ac45663e857 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 02af65e23eec5cd9a9e99857b091c7752cec368874bd0ff813b7f68cf15873df [INFO] running `Command { std: "docker" "start" "-a" "02af65e23eec5cd9a9e99857b091c7752cec368874bd0ff813b7f68cf15873df", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stderr] --> src/main.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `repositories` [INFO] [stderr] --> src/main.rs:37:34 [INFO] [stderr] | [INFO] [stderr] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_repositories` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `github_token` [INFO] [stderr] --> src/main.rs:37:48 [INFO] [stderr] | [INFO] [stderr] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_github_token` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path_to_patch` [INFO] [stderr] --> src/main.rs:37:62 [INFO] [stderr] | [INFO] [stderr] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_patch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path_to_origin` [INFO] [stderr] --> src/main.rs:37:77 [INFO] [stderr] | [INFO] [stderr] 37 | Command::DistributePatch(repositories, github_token, path_to_patch, path_to_origin) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_to_origin` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/main.rs:166:53 [INFO] [stderr] | [INFO] [stderr] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch,... [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/main.rs:189:67 [INFO] [stderr] | [INFO] [stderr] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `write_json` [INFO] [stderr] --> src/main.rs:122:4 [INFO] [stderr] | [INFO] [stderr] 122 | fn write_json(filename: &String, json: &serde_json::Value) -> Result<(), serde_json::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `diff` [INFO] [stderr] --> src/main.rs:174:4 [INFO] [stderr] | [INFO] [stderr] 174 | fn diff(a: &serde_yaml::Value, b: &serde_yaml::Value) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | json_patch::patch(&mut origin, &patch).map_err(|err| { ApplicationError(format!("Failed to apply patch from {} to {}", path_to_patch, path_to_origin)) }); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 189 | write_yaml(&String::from("fixtures/result.yaml"), b).map_err(|err| { ApplicationError(format!("Failed to write file")) } ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `patch-that-shit` (bin "patch-that-shit" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.42s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/patch_that_shit-35ff17cdb9f6081a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "02af65e23eec5cd9a9e99857b091c7752cec368874bd0ff813b7f68cf15873df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02af65e23eec5cd9a9e99857b091c7752cec368874bd0ff813b7f68cf15873df", kill_on_drop: false }` [INFO] [stdout] 02af65e23eec5cd9a9e99857b091c7752cec368874bd0ff813b7f68cf15873df