[INFO] cloning repository https://github.com/dgsantana/rs-bin_patcher [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dgsantana/rs-bin_patcher" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgsantana%2Frs-bin_patcher", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgsantana%2Frs-bin_patcher'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c16d24d0d2e5cd395f4211041b1a05c220927b88 [INFO] checking dgsantana/rs-bin_patcher against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgsantana%2Frs-bin_patcher" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dgsantana/rs-bin_patcher on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dgsantana/rs-bin_patcher [INFO] finished tweaking git repo https://github.com/dgsantana/rs-bin_patcher [INFO] tweaked toml for git repo https://github.com/dgsantana/rs-bin_patcher written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/dgsantana/rs-bin_patcher already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 93e2b7ac4338a59ef1b8933f35ebcb0f02986cf51a4741e26f1b5baf888deb92 [INFO] running `Command { std: "docker" "start" "-a" "93e2b7ac4338a59ef1b8933f35ebcb0f02986cf51a4741e26f1b5baf888deb92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93e2b7ac4338a59ef1b8933f35ebcb0f02986cf51a4741e26f1b5baf888deb92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93e2b7ac4338a59ef1b8933f35ebcb0f02986cf51a4741e26f1b5baf888deb92", kill_on_drop: false }` [INFO] [stdout] 93e2b7ac4338a59ef1b8933f35ebcb0f02986cf51a4741e26f1b5baf888deb92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ba83b33fcc8009505cf47fdf4ce32ba359ddf444e273a60258199588857caf8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4ba83b33fcc8009505cf47fdf4ce32ba359ddf444e273a60258199588857caf8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking patcher v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0252]: the name `arg_enum` is defined multiple times [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::arg_enum; [INFO] [stdout] | -------------- previous import of the macro `arg_enum` here [INFO] [stdout] ... [INFO] [stdout] 7 | use clap::arg_enum; [INFO] [stdout] | ^^^^^^^^^^^^^^ `arg_enum` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `arg_enum` must be defined only once in the macro namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `arg_enum` is defined multiple times [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::arg_enum; [INFO] [stdout] | -------------- previous import of the macro `arg_enum` here [INFO] [stdout] ... [INFO] [stdout] 7 | use clap::arg_enum; [INFO] [stdout] | ^^^^^^^^^^^^^^ `arg_enum` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `arg_enum` must be defined only once in the macro namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `snafu` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use snafu::{ResultExt, Snafu}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `snafu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Snafu` [INFO] [stdout] --> src/main.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug, Snafu)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[snafu(display("Unable to read source file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `snafu` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use snafu::{ResultExt, Snafu}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `snafu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Snafu` [INFO] [stdout] --> src/main.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug, Snafu)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | #[snafu(display("Unable to read transformed file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | #[snafu(display("Unable to read test file for growing search data {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | #[snafu(display( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | #[snafu(display("Unable to read patch file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | #[snafu(display("Error converting path to json {:?}: {}", patch, source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:100:7 [INFO] [stdout] | [INFO] [stdout] 100 | #[snafu(display("Unable to write patch file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[snafu(display("Unable to write patched file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[snafu(display("Unable to read source file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | #[snafu(display("Unable to read transformed file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | #[snafu(display("Unable to read test file for growing search data {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | #[snafu(display( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | #[snafu(display("Unable to read patch file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | #[snafu(display("Error converting path to json {:?}: {}", patch, source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:100:7 [INFO] [stdout] | [INFO] [stdout] 100 | #[snafu(display("Unable to write patch file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `snafu` in this scope [INFO] [stdout] --> src/main.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[snafu(display("Unable to write patched file {}: {}", path.display(), source))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:128:55 [INFO] [stdout] | [INFO] [stdout] 128 | let input_size = fs::metadata(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTarget` in this scope [INFO] [stdout] --> src/main.rs:129:57 [INFO] [stdout] | [INFO] [stdout] 129 | let patched_size = fs::metadata(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTarget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SizeMismatch` in this scope [INFO] [stdout] --> src/main.rs:137:18 [INFO] [stdout] | [INFO] [stdout] 137 | .context(SizeMismatch { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::SizeMismatch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:143:46 [INFO] [stdout] | [INFO] [stdout] 143 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTarget` in this scope [INFO] [stdout] --> src/main.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | let patched = fs::read(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTarget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTest` in this scope [INFO] [stdout] --> src/main.rs:251:40 [INFO] [stdout] | [INFO] [stdout] 251 | Some(x) => fs::read(x).context(ReadTest { path: x })?, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:406:46 [INFO] [stdout] | [INFO] [stdout] 406 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadPatch` in this scope [INFO] [stdout] --> src/main.rs:408:48 [INFO] [stdout] | [INFO] [stdout] 408 | let patched = fs::read(&opt.patch).context(ReadPatch { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadPatch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | 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 import: `clap::arg_enum` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use clap::arg_enum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:128:55 [INFO] [stdout] | [INFO] [stdout] 128 | let input_size = fs::metadata(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTarget` in this scope [INFO] [stdout] --> src/main.rs:129:57 [INFO] [stdout] | [INFO] [stdout] 129 | let patched_size = fs::metadata(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTarget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SizeMismatch` in this scope [INFO] [stdout] --> src/main.rs:137:18 [INFO] [stdout] | [INFO] [stdout] 137 | .context(SizeMismatch { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::SizeMismatch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:143:46 [INFO] [stdout] | [INFO] [stdout] 143 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTarget` in this scope [INFO] [stdout] --> src/main.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | let patched = fs::read(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTarget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadTest` in this scope [INFO] [stdout] --> src/main.rs:251:40 [INFO] [stdout] | [INFO] [stdout] 251 | Some(x) => fs::read(x).context(ReadTest { path: x })?, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadTest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadSource` in this scope [INFO] [stdout] --> src/main.rs:406:46 [INFO] [stdout] | [INFO] [stdout] 406 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadSource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadPatch` in this scope [INFO] [stdout] --> src/main.rs:408:48 [INFO] [stdout] | [INFO] [stdout] 408 | let patched = fs::read(&opt.patch).context(ReadPatch { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Error::ReadPatch; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | 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 import: `clap::arg_enum` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use clap::arg_enum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/main.rs:128:47 [INFO] [stdout] | [INFO] [stdout] 128 | let input_size = fs::metadata(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/main.rs:128:47 [INFO] [stdout] | [INFO] [stdout] 128 | let input_size = fs::metadata(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/main.rs:129:49 [INFO] [stdout] | [INFO] [stdout] 129 | let patched_size = fs::metadata(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/main.rs:129:49 [INFO] [stdout] | [INFO] [stdout] 129 | let patched_size = fs::metadata(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result<_, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | .context(SizeMismatch { [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result<_, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result<_, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | .context(SizeMismatch { [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result<_, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:143:38 [INFO] [stdout] | [INFO] [stdout] 143 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:143:38 [INFO] [stdout] | [INFO] [stdout] 143 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:144:40 [INFO] [stdout] | [INFO] [stdout] 144 | let patched = fs::read(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:144:40 [INFO] [stdout] | [INFO] [stdout] 144 | let patched = fs::read(&opt.patch).context(ReadTarget { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | Some(x) => fs::read(x).context(ReadTest { path: x })?, [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | Some(x) => fs::read(x).context(ReadTest { path: x })?, [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:406:38 [INFO] [stdout] | [INFO] [stdout] 406 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:408:40 [INFO] [stdout] | [INFO] [stdout] 408 | let patched = fs::read(&opt.patch).context(ReadPatch { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:406:38 [INFO] [stdout] | [INFO] [stdout] 406 | let input = fs::read(&opt.input).context(ReadSource { path: &opt.input })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `std::result::Result, std::io::Error>` in the current scope [INFO] [stdout] --> src/main.rs:408:40 [INFO] [stdout] | [INFO] [stdout] 408 | let patched = fs::read(&opt.patch).context(ReadPatch { path: &opt.patch })?; [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result, std::io::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `Error` [INFO] [stdout] --> src/main.rs:500:44 [INFO] [stdout] | [INFO] [stdout] 405 | fn apply_patch(opt: &Options) -> Result<()> { [INFO] [stdout] | ---------- expected `Error` because of this [INFO] [stdout] ... [INFO] [stdout] 500 | fs::write(&patch_filename, &result)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required by `std::convert::From::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `Error` [INFO] [stdout] --> src/main.rs:500:44 [INFO] [stdout] | [INFO] [stdout] 405 | fn apply_patch(opt: &Options) -> Result<()> { [INFO] [stdout] | ---------- expected `Error` because of this [INFO] [stdout] ... [INFO] [stdout] 500 | fs::write(&patch_filename, &result)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `Error` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required by `std::convert::From::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0422, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0422, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `patcher` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4ba83b33fcc8009505cf47fdf4ce32ba359ddf444e273a60258199588857caf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ba83b33fcc8009505cf47fdf4ce32ba359ddf444e273a60258199588857caf8", kill_on_drop: false }` [INFO] [stdout] 4ba83b33fcc8009505cf47fdf4ce32ba359ddf444e273a60258199588857caf8