[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] testing robsaunders/cdd-rust against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobsaunders%2Fcdd-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/robsaunders/cdd-rust on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/offscale/cdd-core` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jsonrpc-server-utils v14.0.5 [INFO] [stderr] Downloaded tokio-uds v0.2.6 [INFO] [stderr] Downloaded syn-serde v0.2.0 [INFO] [stderr] Downloaded jsonrpc-core v14.0.5 [INFO] [stderr] Downloaded globset v0.4.4 [INFO] [stderr] Downloaded jsonrpc-ws-server v14.0.6 [INFO] [stderr] Downloaded backtrace v0.3.44 [INFO] [stderr] Downloaded ws v0.9.1 [INFO] [stderr] Downloaded bstr v0.2.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ac46ae270284b23d49a4a60845422f3e74e44182f4b84720afafff2fb260466 [INFO] running `Command { std: "docker" "start" "-a" "2ac46ae270284b23d49a4a60845422f3e74e44182f4b84720afafff2fb260466", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ac46ae270284b23d49a4a60845422f3e74e44182f4b84720afafff2fb260466", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ac46ae270284b23d49a4a60845422f3e74e44182f4b84720afafff2fb260466", kill_on_drop: false }` [INFO] [stdout] 2ac46ae270284b23d49a4a60845422f3e74e44182f4b84720afafff2fb260466 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] cddf901c42d2bfce6fbddb3ca42d87004e58022f87de979ff917c6d7efd22715 [INFO] running `Command { std: "docker" "start" "-a" "cddf901c42d2bfce6fbddb3ca42d87004e58022f87de979ff917c6d7efd22715", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling futures v0.1.29 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling aho-corasick v0.7.9 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.14 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling bstr v0.2.11 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling tokio-fs v0.1.7 [INFO] [stderr] Compiling parking_lot_core v0.7.0 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling tokio-uds v0.2.6 [INFO] [stderr] Compiling parking_lot v0.10.0 [INFO] [stderr] Compiling backtrace v0.3.44 [INFO] [stderr] Compiling ws v0.9.1 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling globset v0.4.4 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling cdd v0.1.0 (https://github.com/offscale/cdd-core#afe87035) [INFO] [stderr] Compiling jsonrpc-core v14.0.5 [INFO] [stderr] Compiling syn-serde v0.2.0 [INFO] [stderr] Compiling jsonrpc-server-utils v14.0.5 [INFO] [stderr] Compiling jsonrpc-ws-server v14.0.6 [INFO] [stderr] Compiling 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: 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)]` 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)]` 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)]` 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)]` 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 43.50s [INFO] running `Command { std: "docker" "inspect" "cddf901c42d2bfce6fbddb3ca42d87004e58022f87de979ff917c6d7efd22715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cddf901c42d2bfce6fbddb3ca42d87004e58022f87de979ff917c6d7efd22715", kill_on_drop: false }` [INFO] [stdout] cddf901c42d2bfce6fbddb3ca42d87004e58022f87de979ff917c6d7efd22715 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b73e599f1284fd7670499311f9bb7c15baabbbf3d78405c3c4a03ea0ca238f74 [INFO] running `Command { std: "docker" "start" "-a" "b73e599f1284fd7670499311f9bb7c15baabbbf3d78405c3c4a03ea0ca238f74", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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)]` 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)]` 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)]` 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)]` 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 `test` profile [unoptimized + debuginfo] target(s) in 1.77s [INFO] running `Command { std: "docker" "inspect" "b73e599f1284fd7670499311f9bb7c15baabbbf3d78405c3c4a03ea0ca238f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b73e599f1284fd7670499311f9bb7c15baabbbf3d78405c3c4a03ea0ca238f74", kill_on_drop: false }` [INFO] [stdout] b73e599f1284fd7670499311f9bb7c15baabbbf3d78405c3c4a03ea0ca238f74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1cf35fca0e1fe07d52f9afbe1190f6136b7beab87869f538b0c8d100deae3673 [INFO] running `Command { std: "docker" "start" "-a" "1cf35fca0e1fe07d52f9afbe1190f6136b7beab87869f538b0c8d100deae3673", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/models.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = 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] [stderr] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = 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] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/models.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = 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] [stderr] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = 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] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/models.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = 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] [stderr] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = 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] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/models.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = 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] [stderr] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = 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] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashSet` [INFO] [stderr] --> src/rustfmt.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Variable` [INFO] [stderr] --> src/visitors/functions.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use cdd::{Variable, VariableType}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/visitors/functions.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Fields` and `Type` [INFO] [stderr] --> src/visitors/functions.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use syn::{Fields, Item, Type}; [INFO] [stderr] | ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `VariableType` and `Variable` [INFO] [stderr] --> src/visitors/variables.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use cdd::{Variable, VariableType}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/visitors/variables.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syn::visit::Visit` [INFO] [stderr] --> src/visitors/variables.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use syn::visit::Visit; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Fields`, `Item`, and `Type` [INFO] [stderr] --> src/visitors/variables.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use syn::{Fields, Item, Type}; [INFO] [stderr] | ^^^^^^ ^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GenericArgument` and `PathArguments` [INFO] [stderr] --> src/visitors/variables.rs:29:11 [INFO] [stderr] | [INFO] [stderr] 29 | use syn::{GenericArgument, Path, PathArguments, PathSegment}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `variables::*` [INFO] [stderr] --> src/visitors/mod.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | pub(crate) use variables::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `requests::*` [INFO] [stderr] --> src/writers/mod.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub use requests::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `project` [INFO] [stderr] --> src/server/mod.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | let project: Project = crate::parser::parse_code_to_project(¶ms.code) [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vt` [INFO] [stderr] --> src/writers/variable_type.rs:9:33 [INFO] [stderr] | [INFO] [stderr] 9 | VariableType::ArrayType(vt) => "Vec<_>".to_string(), [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_vt` [INFO] [stderr] [INFO] [stderr] warning: function `struct_to_request` is never used [INFO] [stderr] --> src/extractor/requests.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn struct_to_request(structure: (String, Vec)) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `read_file` is never used [INFO] [stderr] --> src/util/mod.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn read_file(pathbuf: PathBuf) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_file` is never used [INFO] [stderr] --> src/util/mod.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn write_file(pathbuf: PathBuf, content: &str) -> Result<(), failure::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_structures_from_code` is never used [INFO] [stderr] --> src/visitors/structs.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn extract_structures_from_code( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `params` and `variable_declarations` are never read [INFO] [stderr] --> src/visitors/functions.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub(crate) struct Function { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 11 | pub name: String, [INFO] [stderr] 12 | pub params: Vec, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 13 | pub return_type: Option, [INFO] [stderr] 14 | pub variable_declarations: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_typepath_in_type` is never used [INFO] [stderr] --> src/visitors/variables.rs:6:15 [INFO] [stderr] | [INFO] [stderr] 6 | pub(crate) fn find_typepath_in_type(ty: &syn::Type) -> Option<&Path> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_path_segment` is never used [INFO] [stderr] --> src/visitors/variables.rs:32:15 [INFO] [stderr] | [INFO] [stderr] 32 | pub(crate) fn find_path_segment(path: &Path, matches: Vec<&str>) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TEMPLATE` is never used [INFO] [stderr] --> src/writers/requests.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | const TEMPLATE: &str = r#"use actix_web::{web, HttpRequest, HttpResponse, Responder}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `METHOD_TEMPLATE` is never used [INFO] [stderr] --> src/writers/requests.rs:21:7 [INFO] [stderr] | [INFO] [stderr] 21 | const METHOD_TEMPLATE: &str = r#" [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print_requests` is never used [INFO] [stderr] --> src/writers/requests.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn print_requests(requests: Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print_routes` is never used [INFO] [stderr] --> src/writers/requests.rs:36:8 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn print_routes(requests: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print_methods` is never used [INFO] [stderr] --> src/writers/requests.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn print_methods(requests: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `request_to_route_call` is never used [INFO] [stderr] --> src/writers/requests.rs:52:4 [INFO] [stderr] | [INFO] [stderr] 52 | fn request_to_route_call(request: &Request) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `request_to_string` is never used [INFO] [stderr] --> src/writers/requests.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn request_to_string(request: &Request) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/models.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ParseRequest` [INFO] [stderr] 5 | pub struct ParseRequest { [INFO] [stderr] | ------------ `ParseRequest` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/models.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UpdateRequest` [INFO] [stderr] 10 | pub struct UpdateRequest { [INFO] [stderr] | ------------- `UpdateRequest` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/models.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SerialiseRequest` [INFO] [stderr] 16 | pub struct SerialiseRequest { [INFO] [stderr] | ---------------- `SerialiseRequest` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/models.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Deserialize, Debug, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DeserialiseRequest` [INFO] [stderr] 21 | pub struct DeserialiseRequest { [INFO] [stderr] | ------------------ `DeserialiseRequest` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/rustfmt.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / child.stdin [INFO] [stderr] 12 | | .as_mut() [INFO] [stderr] 13 | | .map(|child| child.write_all(&input.as_bytes())).expect("rustfmt"); [INFO] [stderr] | |__________________________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 11 | let _ = child.stdin [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `cdd-rust` (bin "cdd-rust" test) generated 36 warnings (run `cargo fix --bin "cdd-rust" --tests` to apply 11 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cdd_rust-8544ab2ec86d7207) [INFO] [stdout] test visitors::structs::test_var_parse ... ok [INFO] [stdout] test visitors::structs::test_expr_parse ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1cf35fca0e1fe07d52f9afbe1190f6136b7beab87869f538b0c8d100deae3673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cf35fca0e1fe07d52f9afbe1190f6136b7beab87869f538b0c8d100deae3673", kill_on_drop: false }` [INFO] [stdout] 1cf35fca0e1fe07d52f9afbe1190f6136b7beab87869f538b0c8d100deae3673