[INFO] fetching crate ethox 0.0.2... [INFO] building ethox-0.0.2 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate ethox 0.0.2 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate ethox 0.0.2 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 crates.io crate ethox 0.0.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate ethox 0.0.2 [INFO] tweaked toml for crates.io crate ethox 0.0.2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate crates.io crate ethox 0.0.2 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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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] b6395a44e112eb52236f501f11793bd1dff7be1dcf1d3cc54b333a42e34c62de [INFO] running `Command { std: "docker" "start" "-a" "b6395a44e112eb52236f501f11793bd1dff7be1dcf1d3cc54b333a42e34c62de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6395a44e112eb52236f501f11793bd1dff7be1dcf1d3cc54b333a42e34c62de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6395a44e112eb52236f501f11793bd1dff7be1dcf1d3cc54b333a42e34c62de", kill_on_drop: false }` [INFO] [stdout] b6395a44e112eb52236f501f11793bd1dff7be1dcf1d3cc54b333a42e34c62de [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] b284b6897400ab2364548ba3210c64a4069f099c6460417bc00fdfa347031387 [INFO] running `Command { std: "docker" "start" "-a" "b284b6897400ab2364548ba3210c64a4069f099c6460417bc00fdfa347031387", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling ethox v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/macros.rs:154:11 [INFO] [stdout] | [INFO] [stdout] 154 | #[cfg(all(feature = "log", DISABLED))] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `libc`, `std`, and `sys` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `DISABLED` [INFO] [stdout] --> src/macros.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | #[cfg(all(feature = "log", DISABLED))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(DISABLED)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(DISABLED)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/macros.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | #[cfg(not(all(feature = "log", DISABLED)))] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `libc`, `std`, and `sys` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `DISABLED` [INFO] [stdout] --> src/macros.rs:163:32 [INFO] [stdout] | [INFO] [stdout] 163 | #[cfg(not(all(feature = "log", DISABLED)))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(DISABLED)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(DISABLED)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `proto-dhcpv4` [INFO] [stdout] --> src/wire/mod.rs:353:7 [INFO] [stdout] | [INFO] [stdout] 353 | #[cfg(feature = "proto-dhcpv4")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `libc`, `std`, and `sys` [INFO] [stdout] = help: consider adding `proto-dhcpv4` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/wire/./ipv4.rs:622:17 [INFO] [stdout] | [INFO] [stdout] 622 | if cfg!(fuzzing) { return true } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/wire/./icmpv4.rs:298:17 [INFO] [stdout] | [INFO] [stdout] 298 | if cfg!(fuzzing) { return true } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/wire/./udp.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | if cfg!(fuzzing) { return true } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/wire/./tcp.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | if cfg!(fuzzing) { return true } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/wire/./tcp.rs:1013:13 [INFO] [stdout] | [INFO] [stdout] 1013 | (self.flags.syn() | self.flags.fin() | self.flags.rst()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1013 - (self.flags.syn() | self.flags.fin() | self.flags.rst()) [INFO] [stdout] 1013 + self.flags.syn() | self.flags.fin() | self.flags.rst() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `shown` [INFO] [stdout] --> src/macros.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | $($(#[$val_attr])* #[doc(shown)] $variant = $value ),+ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wire/./ethernet.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / enum_with_unknown! { [INFO] [stdout] 9 | | /// Ethernet protocol type. [INFO] [stdout] 10 | | pub enum EtherType(u16) { [INFO] [stdout] 11 | | Ipv4 = 0x0800, [INFO] [stdout] ... | [INFO] [stdout] 16 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_doc_attributes)]` on by default [INFO] [stdout] = note: this error originates in the macro `enum_with_unknown` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `shown` [INFO] [stdout] --> src/macros.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | $($(#[$val_attr])* #[doc(shown)] $variant = $value ),+ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wire/./arp.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / enum_with_unknown! { [INFO] [stdout] 12 | | /// ARP hardware type. [INFO] [stdout] 13 | | pub enum Hardware(u16) { [INFO] [stdout] 14 | | Ethernet = 1 [INFO] [stdout] 15 | | } [INFO] [stdout] 16 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `enum_with_unknown` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `shown` [INFO] [stdout] --> src/macros.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | $($(#[$val_attr])* #[doc(shown)] $variant = $value ),+ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wire/./arp.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / enum_with_unknown! { [INFO] [stdout] 19 | | /// ARP operation type. [INFO] [stdout] 20 | | pub enum Operation(u16) { [INFO] [stdout] 21 | | Request = 1, [INFO] [stdout] ... | [INFO] [stdout] 24 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `enum_with_unknown` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `shown` [INFO] [stdout] --> src/macros.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | $($(#[$val_attr])* #[doc(shown)] $variant = $value ),+ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wire/./ip.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / enum_with_unknown! { [INFO] [stdout] 58 | | /// IP datagram encapsulated protocol. [INFO] [stdout] 59 | | pub enum Protocol(u8) { [INFO] [stdout] 60 | | HopByHop = 0x00, [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `enum_with_unknown` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `shown` [INFO] [stdout] --> src/macros.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | $($(#[$val_attr])* #[doc(shown)] $variant = $value ),+ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/wire/./ipv6.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / enum_with_unknown! { [INFO] [stdout] 32 | | /// IPv6 multicast scope. [INFO] [stdout] 33 | | pub enum Scope(u8) { [INFO] [stdout] 34 | | /// The address is valid for the interface alone. [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `enum_with_unknown` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `silent_until` is never read [INFO] [stdout] --> src/layer/arp/neighbor.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Cache<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 108 | storage: Ordered<'a, Neighbor>, [INFO] [stdout] 109 | silent_until: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a method [INFO] [stdout] --> src/layer/ip/packet.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn control(&self) -> &Controller<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/wire/payload.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | core::mem::replace(self, inner); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 276 | let _ = core::mem::replace(self, inner); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ethox` (lib) due to 5 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b284b6897400ab2364548ba3210c64a4069f099c6460417bc00fdfa347031387", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b284b6897400ab2364548ba3210c64a4069f099c6460417bc00fdfa347031387", kill_on_drop: false }` [INFO] [stdout] b284b6897400ab2364548ba3210c64a4069f099c6460417bc00fdfa347031387