[INFO] cloning repository https://github.com/penguin-wwy/BitcodeRecompiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/penguin-wwy/BitcodeRecompiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpenguin-wwy%2FBitcodeRecompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpenguin-wwy%2FBitcodeRecompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1cdc3dc565191e036e00525283babddff4446942 [INFO] building penguin-wwy/BitcodeRecompiler against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpenguin-wwy%2FBitcodeRecompiler" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/penguin-wwy/BitcodeRecompiler on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/penguin-wwy/BitcodeRecompiler [INFO] finished tweaking git repo https://github.com/penguin-wwy/BitcodeRecompiler [INFO] tweaked toml for git repo https://github.com/penguin-wwy/BitcodeRecompiler written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/penguin-wwy/BitcodeRecompiler 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v0.6.3 [INFO] [stderr] Downloaded cc v1.0.10 [INFO] [stderr] Downloaded backtrace v0.3.6 [INFO] [stderr] Downloaded mach_object v0.1.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ee3055a1a9800680a5be83cc665e568ed197e9ccb24e02f549e9d4a091dbe10 [INFO] running `Command { std: "docker" "start" "-a" "7ee3055a1a9800680a5be83cc665e568ed197e9ccb24e02f549e9d4a091dbe10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ee3055a1a9800680a5be83cc665e568ed197e9ccb24e02f549e9d4a091dbe10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ee3055a1a9800680a5be83cc665e568ed197e9ccb24e02f549e9d4a091dbe10", kill_on_drop: false }` [INFO] [stdout] 7ee3055a1a9800680a5be83cc665e568ed197e9ccb24e02f549e9d4a091dbe10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 064dea9c51776e706b6532c0868608fb5f5e79d47257e172d113c71f403034da [INFO] running `Command { std: "docker" "start" "-a" "064dea9c51776e706b6532c0868608fb5f5e79d47257e172d113c71f403034da", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cc v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling rustc-demangle v0.1.7 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling uuid v0.6.3 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling byteorder v1.2.2 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling getopts v0.2.17 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling backtrace v0.3.6 [INFO] [stderr] Compiling failure v0.1.1 [INFO] [stderr] Compiling mach_object v0.1.10 [INFO] [stderr] Compiling BitcodeRecompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | try!(self.cur.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit` [INFO] [stdout] --> src/process.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process::{Command, Stdio, exit}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/process.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 259 | ... return Ok(true); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 264 | ... break 'outer; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `magic` [INFO] [stdout] --> src/process.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | &OFile::FatFile { magic, ref files } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `magic: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/process.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | &OFile::FatFile { magic, ref files } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/process.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | &OFile::ArFile { ref files } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ranlibs` [INFO] [stdout] --> src/process.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | &OFile::SymDef { ref ranlibs } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `ranlibs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:80:48 [INFO] [stdout] | [INFO] [stdout] 80 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:94:48 [INFO] [stdout] | [INFO] [stdout] 94 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:124:48 [INFO] [stdout] | [INFO] [stdout] 124 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:139:48 [INFO] [stdout] | [INFO] [stdout] 139 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:174:40 [INFO] [stdout] | [INFO] [stdout] 174 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process_compile` [INFO] [stdout] --> src/process.rs:211:25 [INFO] [stdout] | [INFO] [stdout] 211 | let mut process_compile = Command::new("clang").arg("-cc1").args(v).spawn().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process_compile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/process.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | let mut process_compile = Command::new("clang").arg("-cc1").args(v).spawn().unwrap(); [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: unused variable: `header` [INFO] [stdout] --> src/process.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | fn handle_macho_file(&mut self, header: &MachHeader, commands: &[MachCommand], ctxt: &mut FileContext) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/process.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | let mut search = Command::new("find") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hexdump` is never used [INFO] [stdout] --> src/context.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> FileContext<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn hexdump(&mut self, addr: usize, size: usize) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | mach_process.handle_ofile(&ofile, &mut filectx, matchs.opt_str("sdk"), matchs.opt_str("tool")); [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] 61 | let _ = mach_process.handle_ofile(&ofile, &mut filectx, matchs.opt_str("sdk"), matchs.opt_str("tool")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | writeln!(stderr(), "no support platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | writeln!(stderr(), "sdk path is not exist."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | writeln!(stderr(), "the sdk is inconsistent with the platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | writeln!(stderr(), "no support platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | writeln!(stderr(), "no sdk path."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:177:21 [INFO] [stdout] | [INFO] [stdout] 177 | writeln!(stderr(), "ToolChain path is not exist."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | writeln!(stderr(), "no ToolChain path."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | writeln!(stderr(), "find libclang_rt error."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:324:13 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(stderr(), "find libclang_rt failed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | writeln!(stderr(), "ld error!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.09s [INFO] running `Command { std: "docker" "inspect" "064dea9c51776e706b6532c0868608fb5f5e79d47257e172d113c71f403034da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "064dea9c51776e706b6532c0868608fb5f5e79d47257e172d113c71f403034da", kill_on_drop: false }` [INFO] [stdout] 064dea9c51776e706b6532c0868608fb5f5e79d47257e172d113c71f403034da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd0893998625d7b7e0d45e9eb91fdaa9c27723d80b14613d4d0556a526becd15 [INFO] running `Command { std: "docker" "start" "-a" "dd0893998625d7b7e0d45e9eb91fdaa9c27723d80b14613d4d0556a526becd15", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling BitcodeRecompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/context.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | try!(self.cur.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit` [INFO] [stdout] --> src/process.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process::{Command, Stdio, exit}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/process.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 259 | ... return Ok(true); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 264 | ... break 'outer; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `magic` [INFO] [stdout] --> src/process.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | &OFile::FatFile { magic, ref files } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `magic: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/process.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | &OFile::FatFile { magic, ref files } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/process.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | &OFile::ArFile { ref files } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ranlibs` [INFO] [stdout] --> src/process.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | &OFile::SymDef { ref ranlibs } => { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `ranlibs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:80:48 [INFO] [stdout] | [INFO] [stdout] 80 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:94:48 [INFO] [stdout] | [INFO] [stdout] 94 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:124:48 [INFO] [stdout] | [INFO] [stdout] 124 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:139:48 [INFO] [stdout] | [INFO] [stdout] 139 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/process.rs:174:40 [INFO] [stdout] | [INFO] [stdout] 174 | XmlEvent::EndElement { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process_compile` [INFO] [stdout] --> src/process.rs:211:25 [INFO] [stdout] | [INFO] [stdout] 211 | let mut process_compile = Command::new("clang").arg("-cc1").args(v).spawn().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process_compile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/process.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | let mut process_compile = Command::new("clang").arg("-cc1").args(v).spawn().unwrap(); [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: unused variable: `header` [INFO] [stdout] --> src/process.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | fn handle_macho_file(&mut self, header: &MachHeader, commands: &[MachCommand], ctxt: &mut FileContext) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/process.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | let mut search = Command::new("find") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hexdump` is never used [INFO] [stdout] --> src/context.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> FileContext<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn hexdump(&mut self, addr: usize, size: usize) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | mach_process.handle_ofile(&ofile, &mut filectx, matchs.opt_str("sdk"), matchs.opt_str("tool")); [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] 61 | let _ = mach_process.handle_ofile(&ofile, &mut filectx, matchs.opt_str("sdk"), matchs.opt_str("tool")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | writeln!(stderr(), "no support platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | writeln!(stderr(), "sdk path is not exist."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | writeln!(stderr(), "the sdk is inconsistent with the platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | writeln!(stderr(), "no support platform."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | writeln!(stderr(), "no sdk path."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:177:21 [INFO] [stdout] | [INFO] [stdout] 177 | writeln!(stderr(), "ToolChain path is not exist."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/context.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | writeln!(stderr(), "no ToolChain path."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | writeln!(stderr(), "No support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | writeln!(stderr(), "find libclang_rt error."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:324:13 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(stderr(), "find libclang_rt failed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/process.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | writeln!(stderr(), "ld error!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "dd0893998625d7b7e0d45e9eb91fdaa9c27723d80b14613d4d0556a526becd15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd0893998625d7b7e0d45e9eb91fdaa9c27723d80b14613d4d0556a526becd15", kill_on_drop: false }` [INFO] [stdout] dd0893998625d7b7e0d45e9eb91fdaa9c27723d80b14613d4d0556a526becd15