[INFO] fetching crate json_repair_rs 1.1.1... [INFO] checking json_repair_rs-1.1.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate json_repair_rs 1.1.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate json_repair_rs 1.1.1 [INFO] finished tweaking crates.io crate json_repair_rs 1.1.1 [INFO] tweaked toml for crates.io crate json_repair_rs 1.1.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate json_repair_rs 1.1.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate json_repair_rs 1.1.1 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7cd61bb33cc5f7e74b6ae35ebcafd50dd0d906a8ac7696ac5a621b1d3f2bb37e [INFO] running `Command { std: "docker" "start" "-a" "7cd61bb33cc5f7e74b6ae35ebcafd50dd0d906a8ac7696ac5a621b1d3f2bb37e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cd61bb33cc5f7e74b6ae35ebcafd50dd0d906a8ac7696ac5a621b1d3f2bb37e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cd61bb33cc5f7e74b6ae35ebcafd50dd0d906a8ac7696ac5a621b1d3f2bb37e", kill_on_drop: false }` [INFO] [stdout] 7cd61bb33cc5f7e74b6ae35ebcafd50dd0d906a8ac7696ac5a621b1d3f2bb37e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85153cb17b317c2dfee8e3d396c5cbcb5163474739437e8bf52bedc6bd2eb310 [INFO] running `Command { std: "docker" "start" "-a" "85153cb17b317c2dfee8e3d396c5cbcb5163474739437e8bf52bedc6bd2eb310", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling pyo3-build-config v0.23.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling pyo3-macros-backend v0.23.4 [INFO] [stderr] Compiling pyo3-ffi v0.23.4 [INFO] [stderr] Compiling pyo3 v0.23.4 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling pyo3-macros v0.23.4 [INFO] [stderr] Checking json_repair_rs v1.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ContextValues` [INFO] [stdout] --> src/utils/json_parser.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils::json_content::{ContextValues, JsonContext } ; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::types::IntoPyDict` [INFO] [stdout] --> src/utils/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyo3::types::IntoPyDict; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_length` [INFO] [stdout] --> src/utils/string_utils.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn new(reader: R, chunk_length: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chunk_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContextValues` is never used [INFO] [stdout] --> src/utils/json_content.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ContextValues { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonContext` is never constructed [INFO] [stdout] --> src/utils/json_content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct JsonContext { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/utils/json_content.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl JsonContext { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 15 | pub(crate) fn default() -> JsonContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set`, and `reset` are never used [INFO] [stdout] --> src/utils/json_content.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | impl JsonContext { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set(&mut self, value: ContextValues) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/utils/json_content.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JSONReturnType` is never used [INFO] [stdout] --> src/utils/json_parser.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum JSONReturnType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JSONParser` is never constructed [INFO] [stdout] --> src/utils/json_parser.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct JSONParser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/utils/json_parser.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 30 | impl JSONParser { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 31 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn log(&self, message: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn parse_object(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn parse_array(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn parse_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn parse_boolean(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn parse_null(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | fn parse_number(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn json_value_to_serde_value(&self, value: JSONReturnType) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRepairError` is never constructed [INFO] [stdout] --> src/utils/json_repair_error.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct JsonRepairError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/utils/json_repair_error.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl JsonRepairError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(message: &str, position: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_repair_error` is never used [INFO] [stdout] --> src/utils/json_repair_error.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn json_repair_error(message: &str, position: usize) -> JsonRepairError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringFileWrapper` is never constructed [INFO] [stdout] --> src/utils/string_utils.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct StringFileWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_char`, `peek_char`, and `len` are never used [INFO] [stdout] --> src/utils/string_utils.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 102 | impl StringFileWrapper { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 103 | pub fn new(reader: R, chunk_length: usize) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn read_char(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn peek_char(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/json_parser.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | StringFileWrapper::new(fd.clone(), json_fd_chunk_length)? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `File` does not implement `Clone`, so calling `clone` on `&File` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 40 - StringFileWrapper::new(fd.clone(), json_fd_chunk_length)? [INFO] [stdout] 40 + StringFileWrapper::new(fd, json_fd_chunk_length)? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContextValues` [INFO] [stdout] --> src/utils/json_parser.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils::json_content::{ContextValues, JsonContext } ; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::types::IntoPyDict` [INFO] [stdout] --> src/utils/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyo3::types::IntoPyDict; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Display` [INFO] [stdout] --> src/bin/example.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `from_file_repair_json` [INFO] [stdout] --> src/bin/json_repair_cli.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use json_repair_rs::{from_file_repair_json, repair_and_save_to_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/bin/example.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dbg_print` is never used [INFO] [stdout] --> src/bin/example.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn dbg_print() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generics_demo` is never used [INFO] [stdout] --> src/bin/example.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn generics_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `newtype_for_孤儿规则` is never used [INFO] [stdout] --> src/bin/example.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn newtype_for_孤儿规则() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `demo` is never used [INFO] [stdout] --> src/bin/example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn demo() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_demo` is never used [INFO] [stdout] --> src/bin/example.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn trait_demo() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relational_type` is never used [INFO] [stdout] --> src/bin/example.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn relational_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_display` is never used [INFO] [stdout] --> src/bin/example.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn custom_display() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_traits` is never used [INFO] [stdout] --> src/bin/example.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn simple_traits() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelectBox` is never constructed [INFO] [stdout] --> src/bin/example.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct SelectBox { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/bin/example.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_object` is never used [INFO] [stdout] --> src/bin/example.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn trait_object() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/bin/example.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 224 | impl Screen { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 225 | fn run (& self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Display` [INFO] [stdout] --> src/bin/example.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `from_file_repair_json` [INFO] [stdout] --> src/bin/json_repair_cli.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use json_repair_rs::{from_file_repair_json, repair_and_save_to_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/bin/example.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dbg_print` is never used [INFO] [stdout] --> src/bin/example.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn dbg_print() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generics_demo` is never used [INFO] [stdout] --> src/bin/example.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn generics_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `newtype_for_孤儿规则` is never used [INFO] [stdout] --> src/bin/example.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn newtype_for_孤儿规则() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `demo` is never used [INFO] [stdout] --> src/bin/example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn demo() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_demo` is never used [INFO] [stdout] --> src/bin/example.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn trait_demo() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relational_type` is never used [INFO] [stdout] --> src/bin/example.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn relational_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_display` is never used [INFO] [stdout] --> src/bin/example.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn custom_display() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_traits` is never used [INFO] [stdout] --> src/bin/example.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn simple_traits() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelectBox` is never constructed [INFO] [stdout] --> src/bin/example.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct SelectBox { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/bin/example.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_object` is never used [INFO] [stdout] --> src/bin/example.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn trait_object() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/bin/example.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 224 | impl Screen { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 225 | fn run (& self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_length` [INFO] [stdout] --> src/utils/string_utils.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn new(reader: R, chunk_length: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chunk_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContextValues` is never used [INFO] [stdout] --> src/utils/json_content.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ContextValues { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonContext` is never constructed [INFO] [stdout] --> src/utils/json_content.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct JsonContext { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/utils/json_content.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl JsonContext { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 15 | pub(crate) fn default() -> JsonContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set`, and `reset` are never used [INFO] [stdout] --> src/utils/json_content.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | impl JsonContext { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set(&mut self, value: ContextValues) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/utils/json_content.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JSONReturnType` is never used [INFO] [stdout] --> src/utils/json_parser.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum JSONReturnType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JSONParser` is never constructed [INFO] [stdout] --> src/utils/json_parser.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct JSONParser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/utils/json_parser.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 30 | impl JSONParser { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 31 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn log(&self, message: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn parse_object(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn parse_array(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn parse_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn parse_boolean(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn parse_null(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | fn parse_number(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn json_value_to_serde_value(&self, value: JSONReturnType) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRepairError` is never constructed [INFO] [stdout] --> src/utils/json_repair_error.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct JsonRepairError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/utils/json_repair_error.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl JsonRepairError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(message: &str, position: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_repair_error` is never used [INFO] [stdout] --> src/utils/json_repair_error.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn json_repair_error(message: &str, position: usize) -> JsonRepairError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringFileWrapper` is never constructed [INFO] [stdout] --> src/utils/string_utils.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct StringFileWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_char`, `peek_char`, and `len` are never used [INFO] [stdout] --> src/utils/string_utils.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 102 | impl StringFileWrapper { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 103 | pub fn new(reader: R, chunk_length: usize) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn read_char(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn peek_char(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/json_parser.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | StringFileWrapper::new(fd.clone(), json_fd_chunk_length)? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `File` does not implement `Clone`, so calling `clone` on `&File` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 40 - StringFileWrapper::new(fd.clone(), json_fd_chunk_length)? [INFO] [stdout] 40 + StringFileWrapper::new(fd, json_fd_chunk_length)? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.33s [INFO] running `Command { std: "docker" "inspect" "85153cb17b317c2dfee8e3d396c5cbcb5163474739437e8bf52bedc6bd2eb310", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85153cb17b317c2dfee8e3d396c5cbcb5163474739437e8bf52bedc6bd2eb310", kill_on_drop: false }` [INFO] [stdout] 85153cb17b317c2dfee8e3d396c5cbcb5163474739437e8bf52bedc6bd2eb310