[INFO] cloning repository https://github.com/rauba-code/shin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rauba-code/shin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauba-code%2Fshin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauba-code%2Fshin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c94aee950da1716392abb8dda47549d4bd0c8dad [INFO] testing rauba-code/shin against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frauba-code%2Fshin" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rauba-code/shin [INFO] finished tweaking git repo https://github.com/rauba-code/shin [INFO] tweaked toml for git repo https://github.com/rauba-code/shin written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rauba-code/shin on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rauba-code/shin 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-task v0.3.18 [INFO] [stderr] Downloaded fastrand v1.5.0 [INFO] [stderr] Downloaded futures-sink v0.3.18 [INFO] [stderr] Downloaded futures-io v0.3.18 [INFO] [stderr] Downloaded futures-micro v0.5.0 [INFO] [stderr] Downloaded async-trait v0.1.51 [INFO] [stderr] Downloaded futures-macro v0.3.18 [INFO] [stderr] Downloaded blocking v1.1.0 [INFO] [stderr] Downloaded async-io v1.6.0 [INFO] [stderr] Downloaded async-oneshot v0.5.0 [INFO] [stderr] Downloaded signal-hook v0.3.10 [INFO] [stderr] Downloaded futures-channel v0.3.18 [INFO] [stderr] Downloaded futures v0.3.18 [INFO] [stderr] Downloaded futures-util v0.3.18 [INFO] [stderr] Downloaded async-process v1.3.0 [INFO] [stderr] Downloaded async-recursion v0.3.2 [INFO] [stderr] Downloaded async-thread v0.1.2 [INFO] [stderr] Downloaded async-task v4.0.3 [INFO] [stderr] Downloaded event-listener v2.5.1 [INFO] [stderr] Downloaded futures-executor v0.3.18 [INFO] [stderr] Downloaded futures-core v0.3.18 [INFO] [stderr] Downloaded libc v0.2.108 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96c22d7d2978c1ad62846248b939421fb4e24f59689b8a93d5b161eda1cef511 [INFO] running `Command { std: "docker" "start" "-a" "96c22d7d2978c1ad62846248b939421fb4e24f59689b8a93d5b161eda1cef511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96c22d7d2978c1ad62846248b939421fb4e24f59689b8a93d5b161eda1cef511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96c22d7d2978c1ad62846248b939421fb4e24f59689b8a93d5b161eda1cef511", kill_on_drop: false }` [INFO] [stdout] 96c22d7d2978c1ad62846248b939421fb4e24f59689b8a93d5b161eda1cef511 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de435d62cb8469db3337078bd1a55915042b955b8299a16a364b55605b980728 [INFO] running `Command { std: "docker" "start" "-a" "de435d62cb8469db3337078bd1a55915042b955b8299a16a364b55605b980728", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling futures-io v0.3.18 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling futures-sink v0.3.18 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling futures-micro v0.5.0 [INFO] [stderr] Compiling async-oneshot v0.5.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling async-thread v0.1.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling nix v0.23.0 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling async-process v1.3.0 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling async-recursion v0.3.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling futures-executor v0.3.18 [INFO] [stderr] Compiling futures v0.3.18 [INFO] [stderr] Compiling shin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: panic message is not a string literal [INFO] [stdout] --> src/busy_handle.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 38 | Err(_poison) => unreachable!(FPOISON), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(non_fmt_panics)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 38 | Err(_poison) => unreachable!("{}", FPOISON), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: panic message is not a string literal [INFO] [stdout] --> src/busy_handle.rs:50:42 [INFO] [stdout] | [INFO] [stdout] 50 | Err(_poison) => unreachable!(FPOISON), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 50 | Err(_poison) => unreachable!("{}", FPOISON), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: panic message is not a string literal [INFO] [stdout] --> src/lazy_channel.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | Err(_poison) => unreachable!(FPOISON), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 57 | Err(_poison) => unreachable!("{}", FPOISON), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: panic message is not a string literal [INFO] [stdout] --> src/lazy_channel.rs:69:42 [INFO] [stdout] | [INFO] [stdout] 69 | Err(_poison) => unreachable!(FPOISON), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 69 | Err(_poison) => unreachable!("{}", FPOISON), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: panic message is not a string literal [INFO] [stdout] --> src/lazy_channel.rs:75:46 [INFO] [stdout] | [INFO] [stdout] 75 | Err(_poison) => unreachable!(FPOISON), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 75 | Err(_poison) => unreachable!("{}", FPOISON), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `pid`, `uid`, `status`, `utime`, and `stime` are never read [INFO] [stdout] --> src/siginfo.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SigChldInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 11 | pub pid: c_int, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub uid: c_uint, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub status: c_int, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub utime: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub stime: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SigChldInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/siginfo.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(FromPrimitive, Debug, Clone, Copy)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Signum` [INFO] [stdout] 34 | #[allow(clippy::upper_case_acronyms)] [INFO] [stdout] 35 | pub enum Signum { [INFO] [stdout] | ------ `Signum` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[deny(non_local_definitions)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `count` is never read [INFO] [stdout] --> src/tracer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct WriteSyscall { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | count: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WriteSyscall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `count` is never read [INFO] [stdout] --> src/proto_tracer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct WriteSyscall { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | count: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WriteSyscall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `0` and `1` are never read [INFO] [stdout] --> src/tracer.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | Other(u64, [u64; 6]), [INFO] [stdout] | ----- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Syscall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 41 - Other(u64, [u64; 6]), [INFO] [stdout] 41 + Other((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `is_error` is never read [INFO] [stdout] --> src/ptrace_extras.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PtraceSyscallInfoExit { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 15 | pub rval: i64, [INFO] [stdout] 16 | pub is_error: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PtraceSyscallInfoExit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `0` and `1` are never read [INFO] [stdout] --> src/proto_tracer.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | Other(u64, [u64; 6]), [INFO] [stdout] | ----- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Syscall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 41 - Other(u64, [u64; 6]), [INFO] [stdout] 41 + Other((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/ptrace_extras.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PtraceSyscallInfoType` [INFO] [stdout] 60 | enum PtraceSyscallInfoType { [INFO] [stdout] | --------------------- `PtraceSyscallInfoType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `nr`, `args`, and `ret_data` are never read [INFO] [stdout] --> src/ptrace_extras.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PtraceSyscallInfoSeccomp { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 21 | pub nr: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 22 | pub args: [u64; 6], [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | pub ret_data: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PtraceSyscallInfoSeccomp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `0` is never read [INFO] [stdout] --> src/siginfo.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | SigChld(SigChldInfo), [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SigInfoType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - SigChld(SigChldInfo), [INFO] [stdout] 20 + SigChld(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `signo`, `errno`, `code`, and `stype` are never read [INFO] [stdout] --> src/siginfo.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct SigInfo { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 26 | pub signo: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | pub errno: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub code: c_int, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub stype: SigInfoType, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SigInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/ptrace_extras.rs:175:10 [INFO] [stdout] | [INFO] [stdout] 175 | #[derive(FromPrimitive, Debug, Clone, Copy)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PtraceEvent` [INFO] [stdout] 176 | pub enum PtraceEvent { [INFO] [stdout] | ----------- `PtraceEvent` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: field `0` is never read [INFO] [stdout] --> src/ptrace_extras.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | Seccomp(PtraceSyscallInfoSeccomp), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PtraceSyscallInfoData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 - Seccomp(PtraceSyscallInfoSeccomp), [INFO] [stdout] 48 + Seccomp(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: fields `arch`, `instruction_pointer`, and `stack_pointer` are never read [INFO] [stdout] --> src/ptrace_extras.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PtraceSyscallInfo { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 53 | pub arch: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | pub instruction_pointer: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | pub stack_pointer: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PtraceSyscallInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: enum `PtraceEvent` is never used [INFO] [stdout] --> src/ptrace_extras.rs:176:10 [INFO] [stdout] | [INFO] [stdout] 176 | pub enum PtraceEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `shin` (bin "shin") due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "de435d62cb8469db3337078bd1a55915042b955b8299a16a364b55605b980728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de435d62cb8469db3337078bd1a55915042b955b8299a16a364b55605b980728", kill_on_drop: false }` [INFO] [stdout] de435d62cb8469db3337078bd1a55915042b955b8299a16a364b55605b980728