[INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c16d24d0d2e5cd395f4211041b1a05c220927b88 [INFO] testing dgsantana/rs-bin_patcher against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgsantana%2Frs-bin_patcher" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dgsantana/rs-bin_patcher on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "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-0/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" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-0/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" "+1.45.2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc4e4a4c0f66c52c169e8dfe94344af53ebe4cffc0bc7c55dd0d8f4d1d204d53 [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" "fc4e4a4c0f66c52c169e8dfe94344af53ebe4cffc0bc7c55dd0d8f4d1d204d53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc4e4a4c0f66c52c169e8dfe94344af53ebe4cffc0bc7c55dd0d8f4d1d204d53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc4e4a4c0f66c52c169e8dfe94344af53ebe4cffc0bc7c55dd0d8f4d1d204d53", kill_on_drop: false }` [INFO] [stdout] fc4e4a4c0f66c52c169e8dfe94344af53ebe4cffc0bc7c55dd0d8f4d1d204d53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08db71e01eb0fa2d039d4a123423bc91ea1c2f46b2c74141ac29800389c4e1ce [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" "08db71e01eb0fa2d039d4a123423bc91ea1c2f46b2c74141ac29800389c4e1ce", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling structopt-derive v0.4.9 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.2 [INFO] [stderr] Compiling structopt v0.3.16 [INFO] [stderr] Compiling 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[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 type 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: 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[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<_, 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: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: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 `std::convert::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] [stderr] error: could not compile `patcher`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "08db71e01eb0fa2d039d4a123423bc91ea1c2f46b2c74141ac29800389c4e1ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08db71e01eb0fa2d039d4a123423bc91ea1c2f46b2c74141ac29800389c4e1ce", kill_on_drop: false }` [INFO] [stdout] 08db71e01eb0fa2d039d4a123423bc91ea1c2f46b2c74141ac29800389c4e1ce