[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 against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCommunity-network%2Frust-tdf" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Community-network/rust-tdf on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f0061c7afedf33f5c13129c0eafea6ea445049a8a71d419ae1cfba06f29e20d [INFO] running `Command { std: "docker" "start" "-a" "5f0061c7afedf33f5c13129c0eafea6ea445049a8a71d419ae1cfba06f29e20d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f0061c7afedf33f5c13129c0eafea6ea445049a8a71d419ae1cfba06f29e20d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f0061c7afedf33f5c13129c0eafea6ea445049a8a71d419ae1cfba06f29e20d", kill_on_drop: false }` [INFO] [stdout] 5f0061c7afedf33f5c13129c0eafea6ea445049a8a71d419ae1cfba06f29e20d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b28df43d984c9c4363dc39f15a91e8299c038a3e96b7b24d93508b6d2fccbdf6 [INFO] running `Command { std: "docker" "start" "-a" "b28df43d984c9c4363dc39f15a91e8299c038a3e96b7b24d93508b6d2fccbdf6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling anyhow v1.0.42 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking peekread v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.14 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: struct `TestOptional` is never constructed [INFO] [stdout] --> src/lib.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | struct TestOptional { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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: `#[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: 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)]` (part of `#[warn(unused)]`) 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: `#[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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.78s [INFO] running `Command { std: "docker" "inspect" "b28df43d984c9c4363dc39f15a91e8299c038a3e96b7b24d93508b6d2fccbdf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b28df43d984c9c4363dc39f15a91e8299c038a3e96b7b24d93508b6d2fccbdf6", kill_on_drop: false }` [INFO] [stdout] b28df43d984c9c4363dc39f15a91e8299c038a3e96b7b24d93508b6d2fccbdf6