[INFO] cloning repository https://github.com/LukeThoma5/mortar-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LukeThoma5/mortar-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Fmortar-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Fmortar-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3a12bab8840a2db052e7f0483fb447295a340ba [INFO] building LukeThoma5/mortar-rs against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeThoma5%2Fmortar-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LukeThoma5/mortar-rs [INFO] finished tweaking git repo https://github.com/LukeThoma5/mortar-rs [INFO] tweaked toml for git repo https://github.com/LukeThoma5/mortar-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LukeThoma5/mortar-rs on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LukeThoma5/mortar-rs 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Downloaded text_lines v0.6.0 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.39 [INFO] [stderr] Downloaded better_scoped_tls v0.1.1 [INFO] [stderr] Downloaded deno_ast v0.43.3 [INFO] [stderr] Downloaded clap_lex v0.7.3 [INFO] [stderr] Downloaded string_enum v0.4.4 [INFO] [stderr] Downloaded clap v4.5.21 [INFO] [stderr] Downloaded pest_meta v2.7.5 [INFO] [stderr] Downloaded pest_generator v2.7.5 [INFO] [stderr] Downloaded dprint-core-macros v0.1.0 [INFO] [stderr] Downloaded deno_terminal v0.1.1 [INFO] [stderr] Downloaded dprint-swc-ext v0.20.0 [INFO] [stderr] Downloaded ast_node v0.9.9 [INFO] [stderr] Downloaded anstyle-query v1.0.1 [INFO] [stderr] Downloaded pest v2.7.5 [INFO] [stderr] Downloaded swc_common v0.37.5 [INFO] [stderr] Downloaded dprint-plugin-typescript v0.93.2 [INFO] [stderr] Downloaded swc_ecma_parser v0.149.1 [INFO] [stderr] Downloaded from_variant v0.1.9 [INFO] [stderr] Downloaded clap_builder v4.5.21 [INFO] [stderr] Downloaded swc_atoms v0.6.7 [INFO] [stderr] Downloaded swc_visit v0.6.2 [INFO] [stderr] Downloaded swc_ecma_ast v0.118.2 [INFO] [stderr] Downloaded pest_derive v2.7.5 [INFO] [stderr] Downloaded deno_media_type v0.2.1 [INFO] [stderr] Downloaded swc_macros_common v0.3.14 [INFO] [stderr] Downloaded swc_allocator v0.1.7 [INFO] [stderr] Downloaded dprint-core v0.66.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c68c728212a03227fa7be67f6b3e23065676fbcc7b4ccee7b12352dce062e771 [INFO] running `Command { std: "docker" "start" "-a" "c68c728212a03227fa7be67f6b3e23065676fbcc7b4ccee7b12352dce062e771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c68c728212a03227fa7be67f6b3e23065676fbcc7b4ccee7b12352dce062e771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c68c728212a03227fa7be67f6b3e23065676fbcc7b4ccee7b12352dce062e771", kill_on_drop: false }` [INFO] [stdout] c68c728212a03227fa7be67f6b3e23065676fbcc7b4ccee7b12352dce062e771 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0959e8aa4a1b84a63dde5d4cd46f6ae9658bb202fbf495d46b23bee94715f7f8 [INFO] running `Command { std: "docker" "start" "-a" "0959e8aa4a1b84a63dde5d4cd46f6ae9658bb202fbf495d46b23bee94715f7f8", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling libc v0.2.165 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling swc_visit v0.6.2 [INFO] [stderr] Compiling better_scoped_tls v0.1.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling rustls v0.23.13 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling unicode-id-start v1.3.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling anstyle-query v1.0.1 [INFO] [stderr] Compiling data-url v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling deno_terminal v0.1.1 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling webpki-roots v0.26.1 [INFO] [stderr] Compiling clap_lex v0.7.3 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling clap_builder v4.5.21 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling dprint-core-macros v0.1.0 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling swc_macros_common v0.3.14 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling from_variant v0.1.9 [INFO] [stderr] Compiling ast_node v0.9.9 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Compiling is-macro v0.3.7 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling pest v2.7.5 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling clap v4.5.21 [INFO] [stderr] Compiling pest_meta v2.7.5 [INFO] [stderr] Compiling pest_generator v2.7.5 [INFO] [stderr] Compiling pest_derive v2.7.5 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling text_lines v0.6.0 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hstr v0.2.12 [INFO] [stderr] Compiling swc_allocator v0.1.7 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling swc_atoms v0.6.7 [INFO] [stderr] Compiling toml_edit v0.22.20 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling deno_media_type v0.2.1 [INFO] [stderr] Compiling dprint-core v0.66.2 [INFO] [stderr] Compiling swc_common v0.37.5 [INFO] [stderr] Compiling swc_ecma_ast v0.118.2 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.5 [INFO] [stderr] Compiling hyper-rustls v0.27.3 [INFO] [stderr] Compiling reqwest v0.12.9 [INFO] [stderr] Compiling swc_ecma_parser v0.149.1 [INFO] [stderr] Compiling dprint-swc-ext v0.20.0 [INFO] [stderr] Compiling deno_ast v0.43.3 [INFO] [stderr] Compiling dprint-plugin-typescript v0.93.2 [INFO] [stderr] Compiling mortar v0.1.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MortarTypeReference`, `ensure_camel_case`, `ensure_pascal_case`, and `mortar_module` [INFO] [stdout] --> src/module_codegen/mod.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | parser::{mortar_module, MortarTypeReference}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | string_tools::{ensure_camel_case, ensure_pascal_case}, [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 imports: `Context`, `Error`, and `anyhow` [INFO] [stdout] --> src/module_codegen/mod.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Context, Error}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `any::type_name`, `fmt::Write`, and `rc::Rc` [INFO] [stdout] --> src/module_codegen/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] 9 | fmt::Write, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EndpointType`, `MortarEndpoint`, and `MortarParam` [INFO] [stdout] --> src/module_codegen/mod.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::parser::endpoint::{EndpointType, MortarEndpoint, MortarParam}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnumElement`, `GenericParameterInfoType`, and `MortarConcreteTypeType` [INFO] [stdout] --> src/module_codegen/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | EnumElement, GenericParameterInfoType, MortarConcreteType, MortarConcreteTypeType, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::mortar_module::MortarModule` [INFO] [stdout] --> src/module_codegen/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::parser::mortar_module::MortarModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema_resolver::SchemaResolver` [INFO] [stdout] --> src/module_codegen/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::schema_resolver::SchemaResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnonymousObjectDefinition` and `AnonymousPropertyValue` [INFO] [stdout] --> src/module_codegen/mod.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | use anon_object_definition::{AnonymousObjectDefinition, AnonymousPropertyValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeDefinitionProperty` [INFO] [stdout] --> src/module_codegen/mod.rs:21:53 [INFO] [stdout] | [INFO] [stdout] 21 | use anon_type_definition::{AnonymousTypeDefinition, TypeDefinitionProperty}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `import_tracker::ImportTracker` [INFO] [stdout] --> src/module_codegen/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use import_tracker::ImportTracker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedTypeDefinitionDefinition`, `NamedTypeDefinition`, and `WriteableTypeDefinition` [INFO] [stdout] --> src/module_codegen/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | NamedTypeDefinition, NamedTypeDefinitionDefinition, WriteableTypeDefinition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> src/module_codegen/import_tracker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EndpointType` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::parser::endpoint::{EndpointType, MortarEndpoint, MortarParam}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::mortar_type::MortarType` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::mortar_type::MortarType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use anyhow::{anyhow, Context}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/swagger.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool` and `Ordering` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema_resolver::SchemaResolver` [INFO] [stdout] --> src/parser/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema_resolver::SchemaResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/parser/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> src/parser/mortar_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/parser/mortar_type.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | return match (value [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 80 | .and_then(|x| x.as_str())) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 ~ return match value [INFO] [stdout] 77 | .get("x-mtr") [INFO] [stdout] 78 | .and_then(|x| x.as_object()) [INFO] [stdout] 79 | .and_then(|x| x.get("ne")) [INFO] [stdout] 80 ~ .and_then(|x| x.as_str()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::ReadDir` [INFO] [stdout] --> src/run_emit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::ReadDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/run_emit.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/run_emit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/run_emit.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `module_codegen` [INFO] [stdout] --> src/run_emit.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | formatter, module_codegen, parser::SwaggerParser, settings::Settings, swagger::SwaggerApi, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::SwaggerParser` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::parser::SwaggerParser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `config::Config::merge`: please use 'ConfigBuilder' instead [INFO] [stdout] --> src/settings.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | .merge(config::File::with_name("mortar"))? [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `config::Config::merge`: please use 'ConfigBuilder' instead [INFO] [stdout] --> src/settings.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | .merge(config::Environment::with_prefix("MORTAR"))?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/module_codegen/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut concrete = MortarConcreteType { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/parser/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | description, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `description: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tags` [INFO] [stdout] --> src/parser/mod.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | tags, [INFO] [stdout] | ^^^^ help: try ignoring the field: `tags: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | mut fields, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Anon` is never constructed [INFO] [stdout] --> src/module_codegen/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum MortarTypeOrAnon { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 43 | Type(MortarType), [INFO] [stdout] 44 | Anon(AnonymousTypeDefinition), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `track_ref` is never used [INFO] [stdout] --> src/module_codegen/import_tracker.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ImportTracker { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn track_ref(&mut self, reference: MortarTypeReference) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `open_api` and `info` are never read [INFO] [stdout] --> src/swagger.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Swagger { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 7 | #[serde(rename = "openapi")] [INFO] [stdout] 8 | pub open_api: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub info: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Swagger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwaggerSchema` is never constructed [INFO] [stdout] --> src/swagger.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SwaggerSchema { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `requests` and `responses` are never read [INFO] [stdout] --> src/parser/mortar_module.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MortarModule { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub requests: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub responses: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MortarModule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/main.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | last_build_id.insert(next_build_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [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] 94 | let _ = last_build_id.insert(next_build_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 40s [INFO] running `Command { std: "docker" "inspect" "0959e8aa4a1b84a63dde5d4cd46f6ae9658bb202fbf495d46b23bee94715f7f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0959e8aa4a1b84a63dde5d4cd46f6ae9658bb202fbf495d46b23bee94715f7f8", kill_on_drop: false }` [INFO] [stdout] 0959e8aa4a1b84a63dde5d4cd46f6ae9658bb202fbf495d46b23bee94715f7f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51ac0d99181a336ffa84c5abd3ad0baed5b53078348428147469c97bb9afef80 [INFO] running `Command { std: "docker" "start" "-a" "51ac0d99181a336ffa84c5abd3ad0baed5b53078348428147469c97bb9afef80", kill_on_drop: false }` [INFO] [stderr] Compiling mortar v0.1.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MortarTypeReference`, `ensure_camel_case`, `ensure_pascal_case`, and `mortar_module` [INFO] [stdout] --> src/module_codegen/mod.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | parser::{mortar_module, MortarTypeReference}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | string_tools::{ensure_camel_case, ensure_pascal_case}, [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 imports: `Context`, `Error`, and `anyhow` [INFO] [stdout] --> src/module_codegen/mod.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{anyhow, Context, Error}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `any::type_name`, `fmt::Write`, and `rc::Rc` [INFO] [stdout] --> src/module_codegen/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | any::type_name, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] 9 | fmt::Write, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EndpointType`, `MortarEndpoint`, and `MortarParam` [INFO] [stdout] --> src/module_codegen/mod.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::parser::endpoint::{EndpointType, MortarEndpoint, MortarParam}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnumElement`, `GenericParameterInfoType`, and `MortarConcreteTypeType` [INFO] [stdout] --> src/module_codegen/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | EnumElement, GenericParameterInfoType, MortarConcreteType, MortarConcreteTypeType, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::mortar_module::MortarModule` [INFO] [stdout] --> src/module_codegen/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::parser::mortar_module::MortarModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema_resolver::SchemaResolver` [INFO] [stdout] --> src/module_codegen/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::schema_resolver::SchemaResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnonymousObjectDefinition` and `AnonymousPropertyValue` [INFO] [stdout] --> src/module_codegen/mod.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | use anon_object_definition::{AnonymousObjectDefinition, AnonymousPropertyValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeDefinitionProperty` [INFO] [stdout] --> src/module_codegen/mod.rs:21:53 [INFO] [stdout] | [INFO] [stdout] 21 | use anon_type_definition::{AnonymousTypeDefinition, TypeDefinitionProperty}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `import_tracker::ImportTracker` [INFO] [stdout] --> src/module_codegen/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use import_tracker::ImportTracker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedTypeDefinitionDefinition`, `NamedTypeDefinition`, and `WriteableTypeDefinition` [INFO] [stdout] --> src/module_codegen/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | NamedTypeDefinition, NamedTypeDefinitionDefinition, WriteableTypeDefinition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> src/module_codegen/import_tracker.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EndpointType` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::parser::endpoint::{EndpointType, MortarEndpoint, MortarParam}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::mortar_type::MortarType` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::mortar_type::MortarType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/module_codegen/standalone_request_gen.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use anyhow::{anyhow, Context}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/swagger.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool` and `Ordering` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema_resolver::SchemaResolver` [INFO] [stdout] --> src/parser/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema_resolver::SchemaResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/parser/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> src/parser/mortar_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/parser/mortar_type.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | return match (value [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 80 | .and_then(|x| x.as_str())) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 ~ return match value [INFO] [stdout] 77 | .get("x-mtr") [INFO] [stdout] 78 | .and_then(|x| x.as_object()) [INFO] [stdout] 79 | .and_then(|x| x.get("ne")) [INFO] [stdout] 80 ~ .and_then(|x| x.as_str()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::ReadDir` [INFO] [stdout] --> src/run_emit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::ReadDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/run_emit.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/run_emit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/run_emit.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `module_codegen` [INFO] [stdout] --> src/run_emit.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | formatter, module_codegen, parser::SwaggerParser, settings::Settings, swagger::SwaggerApi, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::SwaggerParser` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::parser::SwaggerParser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `config::Config::merge`: please use 'ConfigBuilder' instead [INFO] [stdout] --> src/settings.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | .merge(config::File::with_name("mortar"))? [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `config::Config::merge`: please use 'ConfigBuilder' instead [INFO] [stdout] --> src/settings.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | .merge(config::Environment::with_prefix("MORTAR"))?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/module_codegen/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut concrete = MortarConcreteType { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/parser/mod.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | description, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `description: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tags` [INFO] [stdout] --> src/parser/mod.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | tags, [INFO] [stdout] | ^^^^ help: try ignoring the field: `tags: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | mut fields, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Anon` is never constructed [INFO] [stdout] --> src/module_codegen/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum MortarTypeOrAnon { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 43 | Type(MortarType), [INFO] [stdout] 44 | Anon(AnonymousTypeDefinition), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `track_ref` is never used [INFO] [stdout] --> src/module_codegen/import_tracker.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ImportTracker { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn track_ref(&mut self, reference: MortarTypeReference) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `open_api` and `info` are never read [INFO] [stdout] --> src/swagger.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Swagger { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 7 | #[serde(rename = "openapi")] [INFO] [stdout] 8 | pub open_api: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub info: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Swagger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwaggerSchema` is never constructed [INFO] [stdout] --> src/swagger.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SwaggerSchema { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `requests` and `responses` are never read [INFO] [stdout] --> src/parser/mortar_module.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MortarModule { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub requests: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub responses: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MortarModule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::option::Option::::insert` that must be used [INFO] [stdout] --> src/main.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | last_build_id.insert(next_build_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to set a value, consider assignment instead [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] 94 | let _ = last_build_id.insert(next_build_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.12s [INFO] running `Command { std: "docker" "inspect" "51ac0d99181a336ffa84c5abd3ad0baed5b53078348428147469c97bb9afef80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51ac0d99181a336ffa84c5abd3ad0baed5b53078348428147469c97bb9afef80", kill_on_drop: false }` [INFO] [stdout] 51ac0d99181a336ffa84c5abd3ad0baed5b53078348428147469c97bb9afef80