[INFO] cloning repository https://github.com/robsaunders/cdd-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robsaunders/cdd-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobsaunders%2Fcdd-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobsaunders%2Fcdd-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d140ffd8e712e3675917f1bc3cb153b3ea2f58c9 [INFO] checking robsaunders/cdd-rust against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobsaunders%2Fcdd-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/robsaunders/cdd-rust [INFO] finished tweaking git repo https://github.com/robsaunders/cdd-rust [INFO] tweaked toml for git repo https://github.com/robsaunders/cdd-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/robsaunders/cdd-rust 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/robsaunders/cdd-rust 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-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b8a749340eb829cb9f06790abf03ef5308cc5e2592f1b0bd9aa2e1be72a8e11 [INFO] running `Command { std: "docker" "start" "-a" "5b8a749340eb829cb9f06790abf03ef5308cc5e2592f1b0bd9aa2e1be72a8e11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b8a749340eb829cb9f06790abf03ef5308cc5e2592f1b0bd9aa2e1be72a8e11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b8a749340eb829cb9f06790abf03ef5308cc5e2592f1b0bd9aa2e1be72a8e11", kill_on_drop: false }` [INFO] [stdout] 5b8a749340eb829cb9f06790abf03ef5308cc5e2592f1b0bd9aa2e1be72a8e11 [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" "-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] 5945fb36d4e276dd56424e2e72031daf5d68c805b810af98056fcff85ca9fd4a [INFO] running `Command { std: "docker" "start" "-a" "5945fb36d4e276dd56424e2e72031daf5d68c805b810af98056fcff85ca9fd4a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking lock_api v0.3.3 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking aho-corasick v0.7.9 [INFO] [stderr] Checking unicode-xid v0.2.0 [INFO] [stderr] Checking regex-syntax v0.6.14 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.6 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking bstr v0.2.11 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking parking_lot_core v0.7.0 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking backtrace v0.3.44 [INFO] [stderr] Checking parking_lot v0.10.0 [INFO] [stderr] Checking ws v0.9.1 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking globset v0.4.4 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking failure v0.1.6 [INFO] [stderr] Checking serde_json v1.0.48 [INFO] [stderr] Checking cdd v0.1.0 (https://github.com/offscale/cdd-core#afe87035) [INFO] [stderr] Checking jsonrpc-core v14.0.5 [INFO] [stderr] Checking syn-serde v0.2.0 [INFO] [stderr] Checking jsonrpc-server-utils v14.0.5 [INFO] [stderr] Checking jsonrpc-ws-server v14.0.6 [INFO] [stderr] Checking cdd-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/models.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/rustfmt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [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: `Variable` [INFO] [stdout] --> src/visitors/functions.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use cdd::{Variable, VariableType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/visitors/functions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Fields` and `Type` [INFO] [stdout] --> src/visitors/functions.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Fields, Item, Type}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VariableType` and `Variable` [INFO] [stdout] --> src/visitors/variables.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use cdd::{Variable, VariableType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/visitors/variables.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::visit::Visit` [INFO] [stdout] --> src/visitors/variables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::visit::Visit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Fields`, `Item`, and `Type` [INFO] [stdout] --> src/visitors/variables.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Fields, Item, Type}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenericArgument` and `PathArguments` [INFO] [stdout] --> src/visitors/variables.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | use syn::{GenericArgument, Path, PathArguments, PathSegment}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `variables::*` [INFO] [stdout] --> src/visitors/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) use variables::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `requests::*` [INFO] [stdout] --> src/writers/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use requests::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/rustfmt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [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: `Variable` [INFO] [stdout] --> src/visitors/functions.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use cdd::{Variable, VariableType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/visitors/functions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Fields` and `Type` [INFO] [stdout] --> src/visitors/functions.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Fields, Item, Type}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VariableType` and `Variable` [INFO] [stdout] --> src/visitors/variables.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use cdd::{Variable, VariableType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/visitors/variables.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::visit::Visit` [INFO] [stdout] --> src/visitors/variables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::visit::Visit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Fields`, `Item`, and `Type` [INFO] [stdout] --> src/visitors/variables.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Fields, Item, Type}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenericArgument` and `PathArguments` [INFO] [stdout] --> src/visitors/variables.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | use syn::{GenericArgument, Path, PathArguments, PathSegment}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `variables::*` [INFO] [stdout] --> src/visitors/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) use variables::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `requests::*` [INFO] [stdout] --> src/writers/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use requests::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/server/mod.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let project: Project = crate::parser::parse_code_to_project(¶ms.code) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/server/mod.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let project: Project = crate::parser::parse_code_to_project(¶ms.code) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vt` [INFO] [stdout] --> src/writers/variable_type.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | VariableType::ArrayType(vt) => "Vec<_>".to_string(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_to_request` is never used [INFO] [stdout] --> src/extractor/requests.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn struct_to_request(structure: (String, Vec)) -> Option { [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 `read_file` is never used [INFO] [stdout] --> src/util/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_file(pathbuf: PathBuf) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/util/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn write_file(pathbuf: PathBuf, content: &str) -> Result<(), failure::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_structures_from_code` is never used [INFO] [stdout] --> src/visitors/structs.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn extract_structures_from_code( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `params` and `variable_declarations` are never read [INFO] [stdout] --> src/visitors/functions.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | pub name: String, [INFO] [stdout] 12 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub return_type: Option, [INFO] [stdout] 14 | pub variable_declarations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_typepath_in_type` is never used [INFO] [stdout] --> src/visitors/variables.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn find_typepath_in_type(ty: &syn::Type) -> Option<&Path> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_path_segment` is never used [INFO] [stdout] --> src/visitors/variables.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) fn find_path_segment(path: &Path, matches: Vec<&str>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMPLATE` is never used [INFO] [stdout] --> src/writers/requests.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const TEMPLATE: &str = r#"use actix_web::{web, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `METHOD_TEMPLATE` is never used [INFO] [stdout] --> src/writers/requests.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const METHOD_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_requests` is never used [INFO] [stdout] --> src/writers/requests.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn print_requests(requests: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_routes` is never used [INFO] [stdout] --> src/writers/requests.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn print_routes(requests: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_methods` is never used [INFO] [stdout] --> src/writers/requests.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn print_methods(requests: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `request_to_route_call` is never used [INFO] [stdout] --> src/writers/requests.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn request_to_route_call(request: &Request) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `request_to_string` is never used [INFO] [stdout] --> src/writers/requests.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn request_to_string(request: &Request) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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/models.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ParseRequest` [INFO] [stdout] 5 | pub struct ParseRequest { [INFO] [stdout] | ------------ `ParseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UpdateRequest` [INFO] [stdout] 10 | pub struct UpdateRequest { [INFO] [stdout] | ------------- `UpdateRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SerialiseRequest` [INFO] [stdout] 16 | pub struct SerialiseRequest { [INFO] [stdout] | ---------------- `SerialiseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DeserialiseRequest` [INFO] [stdout] 21 | pub struct DeserialiseRequest { [INFO] [stdout] | ------------------ `DeserialiseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vt` [INFO] [stdout] --> src/writers/variable_type.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | VariableType::ArrayType(vt) => "Vec<_>".to_string(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rustfmt.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / child.stdin [INFO] [stdout] 12 | | .as_mut() [INFO] [stdout] 13 | | .map(|child| child.write_all(&input.as_bytes())).expect("rustfmt"); [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | let _ = child.stdin [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_to_request` is never used [INFO] [stdout] --> src/extractor/requests.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn struct_to_request(structure: (String, Vec)) -> Option { [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 `read_file` is never used [INFO] [stdout] --> src/util/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_file(pathbuf: PathBuf) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/util/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn write_file(pathbuf: PathBuf, content: &str) -> Result<(), failure::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_structures_from_code` is never used [INFO] [stdout] --> src/visitors/structs.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn extract_structures_from_code( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `params` and `variable_declarations` are never read [INFO] [stdout] --> src/visitors/functions.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | pub name: String, [INFO] [stdout] 12 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub return_type: Option, [INFO] [stdout] 14 | pub variable_declarations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_typepath_in_type` is never used [INFO] [stdout] --> src/visitors/variables.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn find_typepath_in_type(ty: &syn::Type) -> Option<&Path> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_path_segment` is never used [INFO] [stdout] --> src/visitors/variables.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) fn find_path_segment(path: &Path, matches: Vec<&str>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMPLATE` is never used [INFO] [stdout] --> src/writers/requests.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const TEMPLATE: &str = r#"use actix_web::{web, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `METHOD_TEMPLATE` is never used [INFO] [stdout] --> src/writers/requests.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const METHOD_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_requests` is never used [INFO] [stdout] --> src/writers/requests.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn print_requests(requests: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_routes` is never used [INFO] [stdout] --> src/writers/requests.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn print_routes(requests: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_methods` is never used [INFO] [stdout] --> src/writers/requests.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn print_methods(requests: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `request_to_route_call` is never used [INFO] [stdout] --> src/writers/requests.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn request_to_route_call(request: &Request) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `request_to_string` is never used [INFO] [stdout] --> src/writers/requests.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn request_to_string(request: &Request) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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/models.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ParseRequest` [INFO] [stdout] 5 | pub struct ParseRequest { [INFO] [stdout] | ------------ `ParseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UpdateRequest` [INFO] [stdout] 10 | pub struct UpdateRequest { [INFO] [stdout] | ------------- `UpdateRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SerialiseRequest` [INFO] [stdout] 16 | pub struct SerialiseRequest { [INFO] [stdout] | ---------------- `SerialiseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/models.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DeserialiseRequest` [INFO] [stdout] 21 | pub struct DeserialiseRequest { [INFO] [stdout] | ------------------ `DeserialiseRequest` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rustfmt.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / child.stdin [INFO] [stdout] 12 | | .as_mut() [INFO] [stdout] 13 | | .map(|child| child.write_all(&input.as_bytes())).expect("rustfmt"); [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | let _ = child.stdin [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.65s [INFO] running `Command { std: "docker" "inspect" "5945fb36d4e276dd56424e2e72031daf5d68c805b810af98056fcff85ca9fd4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5945fb36d4e276dd56424e2e72031daf5d68c805b810af98056fcff85ca9fd4a", kill_on_drop: false }` [INFO] [stdout] 5945fb36d4e276dd56424e2e72031daf5d68c805b810af98056fcff85ca9fd4a