[INFO] cloning repository https://github.com/Swiiz/needle-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Swiiz/needle-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwiiz%2Fneedle-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwiiz%2Fneedle-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee22d1d18e4ca6697cd44a56213288b738773c11 [INFO] testing Swiiz/needle-rs against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSwiiz%2Fneedle-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Swiiz/needle-rs [INFO] finished tweaking git repo https://github.com/Swiiz/needle-rs [INFO] tweaked toml for git repo https://github.com/Swiiz/needle-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Swiiz/needle-rs on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Swiiz/needle-rs 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/Swiiz/cyphres-rs.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d09d45bcc25d77518813fb78beed75fe8ec2b49a96b2c51fbbb93af016d8083 [INFO] running `Command { std: "docker" "start" "-a" "2d09d45bcc25d77518813fb78beed75fe8ec2b49a96b2c51fbbb93af016d8083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d09d45bcc25d77518813fb78beed75fe8ec2b49a96b2c51fbbb93af016d8083", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d09d45bcc25d77518813fb78beed75fe8ec2b49a96b2c51fbbb93af016d8083", kill_on_drop: false }` [INFO] [stdout] 2d09d45bcc25d77518813fb78beed75fe8ec2b49a96b2c51fbbb93af016d8083 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 5a9bee422c33d96ed063c8e134bda4418316070f386b3135ef2eb1c14116ae0d [INFO] running `Command { std: "docker" "start" "-a" "5a9bee422c33d96ed063c8e134bda4418316070f386b3135ef2eb1c14116ae0d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling cyphres v0.1.0 (https://github.com/Swiiz/cyphres-rs.git#f0aefe81) [INFO] [stderr] Compiling needle v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `name` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `pid` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shellcode` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `shellcode` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (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 3.90s [INFO] running `Command { std: "docker" "inspect" "5a9bee422c33d96ed063c8e134bda4418316070f386b3135ef2eb1c14116ae0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a9bee422c33d96ed063c8e134bda4418316070f386b3135ef2eb1c14116ae0d", kill_on_drop: false }` [INFO] [stdout] 5a9bee422c33d96ed063c8e134bda4418316070f386b3135ef2eb1c14116ae0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 877368a3ff95e4c474f398ee4aa9a7343e0757917eaf3a3bed41f2c3b25fd684 [INFO] running `Command { std: "docker" "start" "-a" "877368a3ff95e4c474f398ee4aa9a7343e0757917eaf3a3bed41f2c3b25fd684", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `name` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `pid` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shellcode` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `shellcode` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling needle v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `name` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `pid` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shellcode` [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `shellcode` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/lib.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 35 | / platform_impl! { [INFO] [stdout] 36 | | fn find_process(name: &str) -> Result; [INFO] [stdout] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `platform_impl` (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.86s [INFO] running `Command { std: "docker" "inspect" "877368a3ff95e4c474f398ee4aa9a7343e0757917eaf3a3bed41f2c3b25fd684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "877368a3ff95e4c474f398ee4aa9a7343e0757917eaf3a3bed41f2c3b25fd684", kill_on_drop: false }` [INFO] [stdout] 877368a3ff95e4c474f398ee4aa9a7343e0757917eaf3a3bed41f2c3b25fd684 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 7a904f88eadb5d7e158963bfd6a2d121b331a8e96b13c008e04086b4af2eee45 [INFO] running `Command { std: "docker" "start" "-a" "7a904f88eadb5d7e158963bfd6a2d121b331a8e96b13c008e04086b4af2eee45", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `name` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pid` [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `pid` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shellcode` [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `shellcode` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/lib.rs:45:53 [INFO] [stderr] | [INFO] [stderr] 35 | / platform_impl! { [INFO] [stderr] 36 | | fn find_process(name: &str) -> Result; [INFO] [stderr] 37 | | fn inject(pid: ProcessId, shellcode: Shellcode) -> Result<(), InjectionError>; [INFO] [stderr] 38 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn $fn$(<$($name$(: $type)?),*>)?($($argname: $argtype),*) $( -> $ret )? { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: this warning originates in the macro `platform_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `needle` (lib) generated 3 warnings [INFO] [stderr] warning: `needle` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/needle/9bbf49b00aa1102f/deps/needle-9bbf49b00aa1102f) [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] [stderr] Doc-tests needle [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" "7a904f88eadb5d7e158963bfd6a2d121b331a8e96b13c008e04086b4af2eee45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a904f88eadb5d7e158963bfd6a2d121b331a8e96b13c008e04086b4af2eee45", kill_on_drop: false }` [INFO] [stdout] 7a904f88eadb5d7e158963bfd6a2d121b331a8e96b13c008e04086b4af2eee45