[INFO] fetching crate cronus_generator 0.7.0... [INFO] checking cronus_generator-0.7.0 against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] extracting crate cronus_generator 0.7.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate cronus_generator 0.7.0 [INFO] finished tweaking crates.io crate cronus_generator 0.7.0 [INFO] tweaked toml for crates.io crate cronus_generator 0.7.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cronus_generator 0.7.0 on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cronus_generator 0.7.0 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea219bbf1abd45e0b449de889bb8cd470546cfb09f3cfa355a82697c5f39d72b [INFO] running `Command { std: "docker" "start" "-a" "ea219bbf1abd45e0b449de889bb8cd470546cfb09f3cfa355a82697c5f39d72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea219bbf1abd45e0b449de889bb8cd470546cfb09f3cfa355a82697c5f39d72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea219bbf1abd45e0b449de889bb8cd470546cfb09f3cfa355a82697c5f39d72b", kill_on_drop: false }` [INFO] [stdout] ea219bbf1abd45e0b449de889bb8cd470546cfb09f3cfa355a82697c5f39d72b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53426a0e461310ae97ce8b5e272065f5109618562905d2c61d6a7693c6f00258 [INFO] running `Command { std: "docker" "start" "-a" "53426a0e461310ae97ce8b5e272065f5109618562905d2c61d6a7693c6f00258", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling anyhow v1.0.80 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Checking pest v2.7.5 [INFO] [stderr] Compiling pest_meta v2.7.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pest_generator v2.7.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling pest_derive v2.7.5 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Checking cronus_spec v0.7.0 [INFO] [stderr] Checking cronus_parser v0.7.0 [INFO] [stderr] Checking cronus_generator v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/rust.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/rust.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | utils::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_t... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/rust.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Generator` [INFO] [stdout] --> src/rust.rs:365:38 [INFO] [stdout] | [INFO] [stdout] 365 | use crate::{run_generator, Ctxt, Generator}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash` and `path::PathBuf` [INFO] [stdout] --> src/rust_axum.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, hash::Hash, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/rust_axum.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use cronus_spec::{RawUsecase, RawUsecaseMethod, RawUsecaseMethodRestOption, RustAxumGeneratorOption}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `span` [INFO] [stdout] --> src/rust_axum.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{span, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/rust_axum.rs:403:15 [INFO] [stdout] | [INFO] [stdout] 403 | use std::{collections::HashMap, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/openapi.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::{HashMap, HashSet}, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `extract_url_variables` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/openapi.rs:8:231 [INFO] [stdout] | [INFO] [stdout] 8 | ...f, extract_url_variables, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, parse_map_type, spec_ty_to_openapi_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/openapi.rs:474:15 [INFO] [stdout] | [INFO] [stdout] 474 | use std::{collections::HashMap, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/python.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/python.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/python.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Generator` [INFO] [stdout] --> src/python.rs:313:38 [INFO] [stdout] | [INFO] [stdout] 313 | use crate::{run_generator, Ctxt, Generator}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/python_fastapi.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | PythonFastApiGeneratorOption, RawSchema, RawUsecaseMethod, RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/python_fastapi.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/python_fastapi.rs:11:73 [INFO] [stdout] | [INFO] [stdout] 11 | get_schema_by_name, get_usecase_name, spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/python_fastapi.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Generator` [INFO] [stdout] --> src/python_fastapi.rs:754:38 [INFO] [stdout] | [INFO] [stdout] 754 | use crate::{run_generator, Ctxt, Generator}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/python_redis.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{ bail, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PythonFastApiGeneratorOption` [INFO] [stdout] --> src/python_redis.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use cronus_spec::{PythonFastApiGeneratorOption, PythonRedisGeneratorOption}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::ser` [INFO] [stdout] --> src/python_redis.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::ser; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/golang.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/golang.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_to_golang_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/golang.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PythonFastApiGeneratorOption` and `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/golang_gin.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | GolangGinGeneratorOption, PythonFastApiGeneratorOption, RawSchema, RawUsecaseMethod, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `cell::RefCell`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/golang_gin.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_response_name`, `get_schema_by_name`, `spec_ty_to_py_builtin_ty`, and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/golang_gin.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | self, get_path_from_optional_parent, get_request_name, get_response_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | get_schema_by_name, get_usecase_name, spec_ty_to_golang_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/golang_gin.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/java.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashSet, path::{Path, PathBuf}, vec}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de` [INFO] [stdout] --> src/java.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::de; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/java.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Generator` [INFO] [stdout] --> src/java.rs:310:38 [INFO] [stdout] | [INFO] [stdout] 310 | use crate::{run_generator, Ctxt, Generator}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/java_springweb.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `cell::RefCell`, and `fmt::format` [INFO] [stdout] --> src/java_springweb.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_schema_by_name` [INFO] [stdout] --> src/java_springweb.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | get_schema_by_name, get_usecase_name, spec_ty_to_java_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/java_springweb.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `error::Error`, and `self` [INFO] [stdout] --> src/lib.rs:17:76 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{rc::Rc, cell::{RefCell}, collections::{HashMap, HashSet}, path::{Path, PathBuf}, error::Error, fs::{self, OpenOptions, Fil... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethod` [INFO] [stdout] --> src/lib.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | use cronus_spec::{RawSchema, RawSpec, RawUsecase, RawUsecaseMethod}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/rust.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/rust.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | utils::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_t... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/rust.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash` and `path::PathBuf` [INFO] [stdout] --> src/rust_axum.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, hash::Hash, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/rust_axum.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use cronus_spec::{RawUsecase, RawUsecaseMethod, RawUsecaseMethodRestOption, RustAxumGeneratorOption}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `span` [INFO] [stdout] --> src/rust_axum.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{span, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/openapi.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::{HashMap, HashSet}, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `extract_url_variables` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/openapi.rs:8:231 [INFO] [stdout] | [INFO] [stdout] 8 | ...f, extract_url_variables, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, parse_map_type, spec_ty_to_openapi_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/python.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/python.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/python.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/python_fastapi.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 4 | PythonFastApiGeneratorOption, RawSchema, RawUsecaseMethod, RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/python_fastapi.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/python_fastapi.rs:11:73 [INFO] [stdout] | [INFO] [stdout] 11 | get_schema_by_name, get_usecase_name, spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/python_fastapi.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/python_redis.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{ bail, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PythonFastApiGeneratorOption` [INFO] [stdout] --> src/python_redis.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use cronus_spec::{PythonFastApiGeneratorOption, PythonRedisGeneratorOption}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::ser` [INFO] [stdout] --> src/python_redis.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::ser; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/golang.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/golang.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{self, get_path_from_optional_parent, get_request_name, get_response_name, get_schema_by_name, get_usecase_name, spec_ty_to_golang_builtin_ty, spec_ty_to_rust_builtin_ty}, ... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/golang.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PythonFastApiGeneratorOption` and `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/golang_gin.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | GolangGinGeneratorOption, PythonFastApiGeneratorOption, RawSchema, RawUsecaseMethod, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `cell::RefCell`, `fmt::format`, and `path::PathBuf` [INFO] [stdout] --> src/golang_gin.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_response_name`, `get_schema_by_name`, `spec_ty_to_py_builtin_ty`, and `spec_ty_to_rust_builtin_ty` [INFO] [stdout] --> src/golang_gin.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | self, get_path_from_optional_parent, get_request_name, get_response_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | get_schema_by_name, get_usecase_name, spec_ty_to_golang_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | spec_ty_to_py_builtin_ty, spec_ty_to_rust_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/golang_gin.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/java.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashSet, path::{Path, PathBuf}, vec}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de` [INFO] [stdout] --> src/java.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::de; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/java.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethodRestOption` [INFO] [stdout] --> src/java_springweb.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | RawUsecaseMethodRestOption, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::type_name`, `cell::RefCell`, and `fmt::format` [INFO] [stdout] --> src/java_springweb.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any::type_name, cell::RefCell, collections::HashSet, fmt::format, path::PathBuf}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_schema_by_name` [INFO] [stdout] --> src/java_springweb.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | get_schema_by_name, get_usecase_name, spec_ty_to_java_builtin_ty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/java_springweb.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{self, debug, span, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `error::Error`, and `self` [INFO] [stdout] --> src/lib.rs:17:76 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{rc::Rc, cell::{RefCell}, collections::{HashMap, HashSet}, path::{Path, PathBuf}, error::Error, fs::{self, OpenOptions, Fil... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RawUsecaseMethod` [INFO] [stdout] --> src/lib.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | use cronus_spec::{RawSchema, RawSpec, RawUsecase, RawUsecaseMethod}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/python_fastapi.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let mut common_imports = vec![ [INFO] [stdout] | __________________________________^ [INFO] [stdout] 60 | | get_ctx_import, [INFO] [stdout] 61 | | "from pydantic import BaseModel", [INFO] [stdout] 62 | | "from fastapi import FastAPI, APIRouter, Depends, Request, status", [INFO] [stdout] 63 | | "from typing import Optional", [INFO] [stdout] 64 | | "from dataclasses import dataclass", [INFO] [stdout] 65 | | ]; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[&String; _]`, found `[&str; 5]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&std::string::String; _]` [INFO] [stdout] found array `[&str; 5]` [INFO] [stdout] help: the return type of this call is `[&str; 5]` due to the type of the argument passed [INFO] [stdout] --> src/python_fastapi.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let mut common_imports = vec![ [INFO] [stdout] | __________________________________^ [INFO] [stdout] 60 | | get_ctx_import, [INFO] [stdout] 61 | | "from pydantic import BaseModel", [INFO] [stdout] 62 | | "from fastapi import FastAPI, APIRouter, Depends, Request, status", [INFO] [stdout] 63 | | "from typing import Optional", [INFO] [stdout] 64 | | "from dataclasses import dataclass", [INFO] [stdout] 65 | | ]; [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `join` exists for struct `Vec<&std::string::String>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/python_fastapi.rs:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | let common_imports_str = common_imports.join("\n") + "\n"; [INFO] [stdout] | ^^^^ method cannot be called on `Vec<&std::string::String>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[&std::string::String]: Join<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/golang_gin.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let imports = vec![domain_import, "net/http", "github.com/gin-gonic/gin"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[&String; _]`, found `[&str; 3]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&std::string::String; _]` [INFO] [stdout] found array `[&str; 3]` [INFO] [stdout] help: the return type of this call is `[&str; 3]` due to the type of the argument passed [INFO] [stdout] --> src/golang_gin.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let imports = vec![domain_import, "net/http", "github.com/gin-gonic/gin"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/python_fastapi.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let mut common_imports = vec![ [INFO] [stdout] | __________________________________^ [INFO] [stdout] 60 | | get_ctx_import, [INFO] [stdout] 61 | | "from pydantic import BaseModel", [INFO] [stdout] 62 | | "from fastapi import FastAPI, APIRouter, Depends, Request, status", [INFO] [stdout] 63 | | "from typing import Optional", [INFO] [stdout] 64 | | "from dataclasses import dataclass", [INFO] [stdout] 65 | | ]; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[&String; _]`, found `[&str; 5]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&std::string::String; _]` [INFO] [stdout] found array `[&str; 5]` [INFO] [stdout] help: the return type of this call is `[&str; 5]` due to the type of the argument passed [INFO] [stdout] --> src/python_fastapi.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let mut common_imports = vec![ [INFO] [stdout] | __________________________________^ [INFO] [stdout] 60 | | get_ctx_import, [INFO] [stdout] 61 | | "from pydantic import BaseModel", [INFO] [stdout] 62 | | "from fastapi import FastAPI, APIRouter, Depends, Request, status", [INFO] [stdout] 63 | | "from typing import Optional", [INFO] [stdout] 64 | | "from dataclasses import dataclass", [INFO] [stdout] 65 | | ]; [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `join` exists for struct `Vec<&std::string::String>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/python_fastapi.rs:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | let common_imports_str = common_imports.join("\n") + "\n"; [INFO] [stdout] | ^^^^ method cannot be called on `Vec<&std::string::String>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[&std::string::String]: Join<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/golang_gin.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let imports = vec![domain_import, "net/http", "github.com/gin-gonic/gin"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[&String; _]`, found `[&str; 3]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&std::string::String; _]` [INFO] [stdout] found array `[&str; 3]` [INFO] [stdout] help: the return type of this call is `[&str; 3]` due to the type of the argument passed [INFO] [stdout] --> src/golang_gin.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let imports = vec![domain_import, "net/http", "github.com/gin-gonic/gin"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tys` [INFO] [stdout] --> src/rust_axum.rs:212:26 [INFO] [stdout] | [INFO] [stdout] 212 | Some((props, tys)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usecase` [INFO] [stdout] --> src/rust_axum.rs:362:27 [INFO] [stdout] | [INFO] [stdout] 362 | .for_each(|(name, usecase)|{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usecase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/rust_axum.rs:349:19 [INFO] [stdout] | [INFO] [stdout] 349 | .filter(|(name, usecase)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/rust_axum.rs:350:18 [INFO] [stdout] | [INFO] [stdout] 350 | for (method_name, method) in &usecase.methods { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/rust_axum.rs:353:37 [INFO] [stdout] | [INFO] [stdout] 353 | if let Some(rest) = &option.rest { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tys` [INFO] [stdout] --> src/rust_axum.rs:212:26 [INFO] [stdout] | [INFO] [stdout] 212 | Some((props, tys)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tys` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usecase` [INFO] [stdout] --> src/rust_axum.rs:362:27 [INFO] [stdout] | [INFO] [stdout] 362 | .for_each(|(name, usecase)|{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usecase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/rust_axum.rs:349:19 [INFO] [stdout] | [INFO] [stdout] 349 | .filter(|(name, usecase)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/rust_axum.rs:350:18 [INFO] [stdout] | [INFO] [stdout] 350 | for (method_name, method) in &usecase.methods { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/rust_axum.rs:353:37 [INFO] [stdout] | [INFO] [stdout] 353 | if let Some(rest) = &option.rest { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/utils.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | Some(query) => Some(name.clone()), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/ts_nestjs.rs:57:51 [INFO] [stdout] | [INFO] [stdout] 57 | fn generate_method(&self, usecase_name: &str, method: &RawUsecaseMethod, rest_option: &RawUsecaseMethodRestOption) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/ts_nestjs.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(ty) = &schema.ty { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_items` [INFO] [stdout] --> src/ts_nestjs.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | if let Some(enum_items) = &schema.enum_items { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rust_gen` [INFO] [stdout] --> src/python.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | Some(rust_gen) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rust_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_error_ty` [INFO] [stdout] --> src/python.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let default_error_ty: &str = "Box"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_error_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rust_gen` [INFO] [stdout] --> src/python.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(rust_gen) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rust_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_name` [INFO] [stdout] --> src/python_fastapi.rs:282:26 [INFO] [stdout] | [INFO] [stdout] 282 | for (prop_name, prop_schema) in cloned_req.properties.as_ref().unwrap() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_schema` [INFO] [stdout] --> src/python_fastapi.rs:419:33 [INFO] [stdout] | [INFO] [stdout] 419 | for (prop_name, prop_schema) in req.properties.as_ref().unwrap() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/python_redis.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | for (method_name, method, option) in methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/python_redis.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | for (method_name, method, option) in methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `option` [INFO] [stdout] --> src/python_redis.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | for (method_name, method, option) in &redis_methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/utils.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | Some(query) => Some(name.clone()), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/golang.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut imports = vec![ [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: `method` [INFO] [stdout] --> src/ts_nestjs.rs:57:51 [INFO] [stdout] | [INFO] [stdout] 57 | fn generate_method(&self, usecase_name: &str, method: &RawUsecaseMethod, rest_option: &RawUsecaseMethodRestOption) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/ts_nestjs.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(ty) = &schema.ty { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_items` [INFO] [stdout] --> src/ts_nestjs.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | if let Some(enum_items) = &schema.enum_items { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rust_gen` [INFO] [stdout] --> src/python.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | Some(rust_gen) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rust_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_error_ty` [INFO] [stdout] --> src/python.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let default_error_ty: &str = "Box"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_error_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rust_gen` [INFO] [stdout] --> src/python.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(rust_gen) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rust_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/golang_gin.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | ctx: &Ctxt, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/golang_gin.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | name: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain_pkg` [INFO] [stdout] --> src/golang_gin.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | domain_pkg: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain_pkg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/java.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | fn before_all(&self, ctx: &Ctxt) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_name` [INFO] [stdout] --> src/python_fastapi.rs:282:26 [INFO] [stdout] | [INFO] [stdout] 282 | for (prop_name, prop_schema) in cloned_req.properties.as_ref().unwrap() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prop_schema` [INFO] [stdout] --> src/python_fastapi.rs:419:33 [INFO] [stdout] | [INFO] [stdout] 419 | for (prop_name, prop_schema) in req.properties.as_ref().unwrap() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prop_schema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/java_springweb.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let rest = match method.option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/python_redis.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | for (method_name, method, option) in methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/python_redis.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | for (method_name, method, option) in methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `option` [INFO] [stdout] --> src/python_redis.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | for (method_name, method, option) in &redis_methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/golang.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut imports = vec![ [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: `g` [INFO] [stdout] --> src/lib.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | for (g, fs) in self.generator_fs.borrow().iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/golang_gin.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | ctx: &Ctxt, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/golang_gin.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | name: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain_pkg` [INFO] [stdout] --> src/golang_gin.rs:444:9 [INFO] [stdout] | [INFO] [stdout] 444 | domain_pkg: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain_pkg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/java.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | fn before_all(&self, ctx: &Ctxt) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cronus_generator` (lib) due to 3 previous errors; 58 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/java_springweb.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let rest = match method.option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/lib.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | for (g, fs) in self.generator_fs.borrow().iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cronus_generator` (lib test) due to 3 previous errors; 64 warnings emitted [INFO] running `Command { std: "docker" "inspect" "53426a0e461310ae97ce8b5e272065f5109618562905d2c61d6a7693c6f00258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53426a0e461310ae97ce8b5e272065f5109618562905d2c61d6a7693c6f00258", kill_on_drop: false }` [INFO] [stdout] 53426a0e461310ae97ce8b5e272065f5109618562905d2c61d6a7693c6f00258