[INFO] cloning repository https://github.com/Community-network/rust-tdf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Community-network/rust-tdf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCommunity-network%2Frust-tdf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCommunity-network%2Frust-tdf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81ffb2f9da46371f9925e781bb81d089ca2e2a24 [INFO] checking Community-network/rust-tdf/81ffb2f9da46371f9925e781bb81d089ca2e2a24 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCommunity-network%2Frust-tdf" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Community-network/rust-tdf on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Community-network/rust-tdf [INFO] finished tweaking git repo https://github.com/Community-network/rust-tdf [INFO] tweaked toml for git repo https://github.com/Community-network/rust-tdf written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Community-network/rust-tdf 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89570a37e48afe3f38a2bfc8eccd59e9a9cde0167df3947aafa35f909b3d6eae [INFO] running `Command { std: "docker" "start" "-a" "89570a37e48afe3f38a2bfc8eccd59e9a9cde0167df3947aafa35f909b3d6eae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89570a37e48afe3f38a2bfc8eccd59e9a9cde0167df3947aafa35f909b3d6eae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89570a37e48afe3f38a2bfc8eccd59e9a9cde0167df3947aafa35f909b3d6eae", kill_on_drop: false }` [INFO] [stdout] 89570a37e48afe3f38a2bfc8eccd59e9a9cde0167df3947aafa35f909b3d6eae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16f92434e8d8e35e08f2b37707a6bd629fea68113e25063baa6d46f86d1d1f6b [INFO] running `Command { std: "docker" "start" "-a" "16f92434e8d8e35e08f2b37707a6bd629fea68113e25063baa6d46f86d1d1f6b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling anyhow v1.0.42 [INFO] [stderr] Checking peekread v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking time v0.3.9 [INFO] [stderr] Checking simple_logger v2.1.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling macro-tdf v0.1.0 (/opt/rustwide/workdir/macro-tdf) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> macro-tdf/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> macro-tdf/src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut fields = match data_struct_fields { [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: function `comp_ident` is never used [INFO] [stdout] --> macro-tdf/src/lib.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn comp_ident(path: &syn::Path, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ind_to_string` is never used [INFO] [stdout] --> macro-tdf/src/lib.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn ind_to_string(field: &Field) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tdf v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::des::Deserialize` [INFO] [stdout] --> src/rtdf/ser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::des::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/rtdf/des.rs:3:120 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rtdf::{GenericContent, GenericType, ObjectId, ObjectType, IntList, Union, IpAddress, Localization, Generic, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/json/ser.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigEndian` and `WriteBytesExt` [INFO] [stdout] --> src/json/ser.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{BigEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PeekRead` and `SeekPeekReader` [INFO] [stdout] --> src/json/des.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use peekread::{PeekRead, SeekPeekReader}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Seek` [INFO] [stdout] --> src/json/des.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Seek}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigEndian` and `ReadBytesExt` [INFO] [stdout] --> src/json/des.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{BigEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::des::Deserialize` [INFO] [stdout] --> src/rtdf/ser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::des::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/rtdf/des.rs:3:120 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rtdf::{GenericContent, GenericType, ObjectId, ObjectType, IntList, Union, IpAddress, Localization, Generic, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/json/ser.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigEndian` and `WriteBytesExt` [INFO] [stdout] --> src/json/ser.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{BigEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PeekRead` and `SeekPeekReader` [INFO] [stdout] --> src/json/des.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use peekread::{PeekRead, SeekPeekReader}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Seek` [INFO] [stdout] --> src/json/des.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Seek}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BigEndian` and `ReadBytesExt` [INFO] [stdout] --> src/json/des.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{BigEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_bug` [INFO] [stdout] --> src/btdf/des.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | let has_bug = self.des_label(reader)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_bug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_bug` [INFO] [stdout] --> src/btdf/des.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | let has_bug = self.des_label(reader)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_bug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/json/des.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let key = self.read_string()?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/token.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(Debug, Clone, PartialEq, FromPrimitive, 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_UnionType` [INFO] [stdout] 112 | pub enum UnionType { [INFO] [stdout] | --------- `UnionType` 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 lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/json/des.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let key = self.read_string()?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/token.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(Debug, Clone, PartialEq, FromPrimitive, 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_UnionType` [INFO] [stdout] 112 | pub enum UnionType { [INFO] [stdout] | --------- `UnionType` 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 lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.92s [INFO] running `Command { std: "docker" "inspect" "16f92434e8d8e35e08f2b37707a6bd629fea68113e25063baa6d46f86d1d1f6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16f92434e8d8e35e08f2b37707a6bd629fea68113e25063baa6d46f86d1d1f6b", kill_on_drop: false }` [INFO] [stdout] 16f92434e8d8e35e08f2b37707a6bd629fea68113e25063baa6d46f86d1d1f6b