[INFO] fetching crate export-type 0.1.15... [INFO] linting export-type-0.1.15 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate export-type 0.1.15 into /workspace/builds/worker-6-tc1/source [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate export-type 0.1.15 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate export-type 0.1.15 [INFO] tweaked toml for crates.io crate export-type 0.1.15 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate export-type 0.1.15 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate export-type 0.1.15 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.92 [INFO] [stderr] Downloaded thiserror v2.0.3 [INFO] [stderr] Downloaded thiserror-impl v2.0.3 [INFO] [stderr] Downloaded unicode-ident v1.0.14 [INFO] [stderr] Downloaded sqlx-macros v0.8.2 [INFO] [stderr] Downloaded home v0.5.9 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.2 [INFO] [stderr] Downloaded pin-project-lite v0.2.15 [INFO] [stderr] Downloaded base64ct v1.6.0 [INFO] [stderr] Downloaded unicode-bidi v0.3.17 [INFO] [stderr] Downloaded rsa v0.9.7 [INFO] [stderr] Downloaded cc v1.2.2 [INFO] [stderr] Downloaded der v0.7.9 [INFO] [stderr] Downloaded num-bigint-dig v0.8.4 [INFO] [stderr] Downloaded serde_json v1.0.133 [INFO] [stderr] Downloaded sqlx v0.8.2 [INFO] [stderr] Downloaded sqlx-postgres v0.8.2 [INFO] [stderr] Downloaded libm v0.2.11 [INFO] [stderr] Downloaded sqlx-core v0.8.2 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.2 [INFO] [stderr] Downloaded syn v2.0.90 [INFO] [stderr] Downloaded indexmap v2.7.0 [INFO] [stderr] Downloaded rustix v0.38.41 [INFO] [stderr] Downloaded sqlx-mysql v0.8.2 [INFO] [stderr] Downloaded serde_derive v1.0.215 [INFO] [stderr] Downloaded whoami v1.5.2 [INFO] [stderr] Downloaded js-sys v0.3.74 [INFO] [stderr] Downloaded event-listener v5.3.1 [INFO] [stderr] Downloaded ahash v0.8.11 [INFO] [stderr] Downloaded serde v1.0.215 [INFO] [stderr] Downloaded unicode-properties v0.1.3 [INFO] [stderr] Downloaded pkg-config v0.3.31 [INFO] [stderr] Downloaded wasm-bindgen v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.97 [INFO] [stderr] Downloaded tempfile v3.14.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.97 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.97 [INFO] [stderr] Downloaded crc v3.2.1 [INFO] [stderr] Downloaded cpufeatures v0.2.16 [INFO] [stderr] Downloaded crossbeam-queue v0.3.11 [INFO] [stderr] Downloaded fastrand v2.2.0 [INFO] [stderr] Downloaded libc v0.2.167 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed2b9281c295b0579d1d88396c58d2806f96bbfc45703bb87b45ff3ffe794c64 [INFO] running `Command { std: "docker" "start" "-a" "ed2b9281c295b0579d1d88396c58d2806f96bbfc45703bb87b45ff3ffe794c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed2b9281c295b0579d1d88396c58d2806f96bbfc45703bb87b45ff3ffe794c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed2b9281c295b0579d1d88396c58d2806f96bbfc45703bb87b45ff3ffe794c64", kill_on_drop: false }` [INFO] [stdout] ed2b9281c295b0579d1d88396c58d2806f96bbfc45703bb87b45ff3ffe794c64 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4798824003e5385905dd31010f488d7e92eb74260b1fc5b3e319f32aa7c6da37 [INFO] running `Command { std: "docker" "start" "-a" "4798824003e5385905dd31010f488d7e92eb74260b1fc5b3e319f32aa7c6da37", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking export-type v0.1.15 (/opt/rustwide/workdir) [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | if std::env::var("CARGO_PUBLISH").is_err() && !std::env::var("OUT_DIR").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::env::var("OUT_DIR").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:57:63 [INFO] [stdout] | [INFO] [stdout] 57 | if std::env::var("CARGO_PUBLISH").is_err() && !std::env::var("OUT_DIR").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::env::var("OUT_DIR").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Compiling rsa v0.9.7 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking sqlx-core v0.8.2 [INFO] [stderr] Checking sqlx-mysql v0.8.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stdout] warning: all variants have the same postfix: `Case` [INFO] [stdout] --> src/case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub enum RenameRule { [INFO] [stdout] 5 | | CamelCase, [INFO] [stdout] 6 | | PascalCase, [INFO] [stdout] 7 | | SnakeCase, [INFO] [stdout] 8 | | ScreamingSnakeCase, [INFO] [stdout] 9 | | KebabCase, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/lang/typescript.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 132 - pub fn write_single_file(path: &PathBuf) -> TSTypeResult<()> { [INFO] [stdout] 132 + pub fn write_single_file(path: &Path) -> TSTypeResult<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parsers.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|v| parse_variant(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `parse_variant` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or_else` to construct default value [INFO] [stdout] --> src/parsers.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | .unwrap_or_else(|| "".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 195 | | ... return Ok(Type::Array(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 196 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 194 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/parsers.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | / ... if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] 224 | | ... return Ok(Type::Optional(Box::new(parse_type(inner_ty)?))); [INFO] [stdout] 225 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/parsers.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | if let Some(arg) = args.args.first() { [INFO] [stdout] | ^^^ replace this binding [INFO] [stdout] 223 | if let syn::GenericArgument::Type(inner_ty) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "4798824003e5385905dd31010f488d7e92eb74260b1fc5b3e319f32aa7c6da37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4798824003e5385905dd31010f488d7e92eb74260b1fc5b3e319f32aa7c6da37", kill_on_drop: false }` [INFO] [stdout] 4798824003e5385905dd31010f488d7e92eb74260b1fc5b3e319f32aa7c6da37