[INFO] cloning repository https://github.com/davidRoussov/document-to-json
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/davidRoussov/document-to-json" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdavidRoussov%2Fdocument-to-json", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdavidRoussov%2Fdocument-to-json'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6f620d7d316d354388cbcbb95738729d71d5537e
[INFO] building davidRoussov/document-to-json against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdavidRoussov%2Fdocument-to-json" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/davidRoussov/document-to-json
[INFO] finished tweaking git repo https://github.com/davidRoussov/document-to-json
[INFO] tweaked toml for git repo https://github.com/davidRoussov/document-to-json written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/davidRoussov/document-to-json on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/davidRoussov/document-to-json already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Updating crates.io index
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded xmltree v0.10.3
[INFO] [stderr] Downloaded xml-rs v0.8.26
[INFO] [stderr] Downloaded quick-js v0.4.1
[INFO] [stderr] Downloaded pathetic v0.3.0
[INFO] [stderr] Downloaded copy_dir v0.1.3
[INFO] [stderr] Downloaded thread-id v3.3.0
[INFO] [stderr] Downloaded simple-logging v2.0.2
[INFO] [stderr] Downloaded dot v0.1.4
[INFO] [stderr] Downloaded markup5ever v0.12.1
[INFO] [stderr] Downloaded webdriver v0.50.0
[INFO] [stderr] Downloaded markup5ever_rcdom v0.3.0
[INFO] [stderr] Downloaded fantoccini v0.21.5
[INFO] [stderr] Downloaded html5ever v0.27.0
[INFO] [stderr] Downloaded xml5ever v0.18.1
[INFO] [stderr] Downloaded fern v0.7.1
[INFO] [stderr] Downloaded sled v0.34.7
[INFO] [stderr] Downloaded libquickjs-sys v0.9.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ba8f4bd6b818293047dc9d26105f49a837ee8df452b2333e409b380b72060054
[INFO] running `Command { std: "docker" "start" "-a" "ba8f4bd6b818293047dc9d26105f49a837ee8df452b2333e409b380b72060054", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ba8f4bd6b818293047dc9d26105f49a837ee8df452b2333e409b380b72060054", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ba8f4bd6b818293047dc9d26105f49a837ee8df452b2333e409b380b72060054", kill_on_drop: false }`
[INFO] [stdout] ba8f4bd6b818293047dc9d26105f49a837ee8df452b2333e409b380b72060054
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3d3431f0a1bec25eba539f18fc77a3523b6ee9429d81759d2915f3bce83d0951
[INFO] running `Command { std: "docker" "start" "-a" "3d3431f0a1bec25eba539f18fc77a3523b6ee9429d81759d2915f3bce83d0951", kill_on_drop: false }`
[INFO] [stderr] Compiling phf_shared v0.11.3
[INFO] [stderr] Compiling rand_core v0.6.4
[INFO] [stderr] Compiling ring v0.17.14
[INFO] [stderr] Compiling futures-macro v0.3.31
[INFO] [stderr] Compiling serde v1.0.219
[INFO] [stderr] Compiling tokio v1.45.0
[INFO] [stderr] Compiling new_debug_unreachable v1.0.6
[INFO] [stderr] Compiling openssl v0.10.72
[INFO] [stderr] Compiling mac v0.1.1
[INFO] [stderr] Compiling same-file v1.0.6
[INFO] [stderr] Compiling precomputed-hash v0.1.1
[INFO] [stderr] Compiling rustls v0.21.12
[INFO] [stderr] Compiling icu_normalizer v2.0.0
[INFO] [stderr] Compiling icu_properties v2.0.0
[INFO] [stderr] Compiling cookie v0.16.2
[INFO] [stderr] Compiling html5ever v0.27.0
[INFO] [stderr] Compiling indexmap v1.9.3
[INFO] [stderr] Compiling num-traits v0.2.19
[INFO] [stderr] Compiling futf v0.1.5
[INFO] [stderr] Compiling getrandom v0.3.3
[INFO] [stderr] Compiling walkdir v2.5.0
[INFO] [stderr] Compiling tendril v0.4.3
[INFO] [stderr] Compiling rand v0.8.5
[INFO] [stderr] Compiling phf v0.11.3
[INFO] [stderr] Compiling os_str_bytes v6.6.1
[INFO] [stderr] Compiling copy_dir v0.1.3
[INFO] [stderr] Compiling unicode-segmentation v1.12.0
[INFO] [stderr] Compiling winnow v0.7.10
[INFO] [stderr] Compiling clap_lex v0.2.4
[INFO] [stderr] Compiling libquickjs-sys v0.9.0
[INFO] [stderr] Compiling thread-id v3.3.0
[INFO] [stderr] Compiling atty v0.2.14
[INFO] [stderr] Compiling phf_generator v0.11.3
[INFO] [stderr] Compiling unsafe-libyaml v0.2.11
[INFO] [stderr] Compiling xml-rs v0.8.26
[INFO] [stderr] Compiling webpki-roots v0.25.4
[INFO] [stderr] Compiling futures-util v0.3.31
[INFO] [stderr] Compiling phf_codegen v0.11.3
[INFO] [stderr] Compiling string_cache_codegen v0.5.4
[INFO] [stderr] Compiling textwrap v0.16.2
[INFO] [stderr] Compiling iana-time-zone v0.1.63
[INFO] [stderr] Compiling sha2 v0.10.9
[INFO] [stderr] Compiling simple-logging v2.0.2
[INFO] [stderr] Compiling idna_adapter v1.2.1
[INFO] [stderr] Compiling clap v3.2.25
[INFO] [stderr] Compiling idna v1.0.3
[INFO] [stderr] Compiling xmltree v0.10.3
[INFO] [stderr] Compiling chrono v0.4.41
[INFO] [stderr] Compiling markup5ever v0.12.1
[INFO] [stderr] Compiling uuid v1.16.0
[INFO] [stderr] Compiling fern v0.7.1
[INFO] [stderr] Compiling dot v0.1.4
[INFO] [stderr] Compiling url v2.5.4
[INFO] [stderr] Compiling pathetic v0.3.0
[INFO] [stderr] Compiling string_cache v0.8.9
[INFO] [stderr] Compiling serde_json v1.0.140
[INFO] [stderr] Compiling serde_spanned v0.6.8
[INFO] [stderr] Compiling toml_datetime v0.6.9
[INFO] [stderr] Compiling serde_urlencoded v0.7.1
[INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr] Compiling bincode v1.3.3
[INFO] [stderr] Compiling toml_edit v0.22.26
[INFO] [stderr] Compiling native-tls v0.2.14
[INFO] [stderr] Compiling sct v0.7.1
[INFO] [stderr] Compiling rustls-webpki v0.101.7
[INFO] [stderr] Compiling tokio-util v0.7.15
[INFO] [stderr] Compiling tokio-native-tls v0.3.1
[INFO] [stderr] Compiling webdriver v0.50.0
[INFO] [stderr] Compiling xml5ever v0.18.1
[INFO] [stderr] Compiling markup5ever_rcdom v0.3.0
[INFO] [stderr] Compiling h2 v0.3.26
[INFO] [stderr] Compiling hyper v1.6.0
[INFO] [stderr] Compiling futures-executor v0.3.31
[INFO] [stderr] Compiling futures v0.3.31
[INFO] [stderr] Compiling toml v0.8.22
[INFO] [stderr] Compiling hyper-util v0.1.11
[INFO] [stderr] Compiling hyper-tls v0.6.0
[INFO] [stderr] Compiling fantoccini v0.21.5
[INFO] [stderr] Compiling tokio-rustls v0.24.1
[INFO] [stderr] Compiling hyper v0.14.32
[INFO] [stderr] Compiling hyper-rustls v0.24.2
[INFO] [stderr] Compiling hyper-tls v0.5.0
[INFO] [stderr] Compiling reqwest v0.11.27
[INFO] [stderr] Compiling quick-js v0.4.1
[INFO] [stderr] Compiling parversion v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stdout] --> src/document.rs:27:5
[INFO] [stdout] |
[INFO] [stdout] 27 | use crate::basis_node::BasisNode;
[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: `crate::basis_network::BasisNetwork`
[INFO] [stdout] --> src/document.rs:28:5
[INFO] [stdout] |
[INFO] [stdout] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: the most public imported item is `pub(crate)`
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout] --> src/path.rs:2:18
[INFO] [stdout] |
[INFO] [stdout] 2 | use serde_json::{json, Value, Map};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/path.rs:3:24
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::{HashMap};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `provider`
[INFO] [stdout] --> src/context.rs:27:9
[INFO] [stdout] |
[INFO] [stdout] 27 | provider: Arc
,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout] --> src/llm/openai.rs:494:24
[INFO] [stdout] |
[INFO] [stdout] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout] --> src/llm/openai.rs:990:39
[INFO] [stdout] |
[INFO] [stdout] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `document_format`
[INFO] [stdout] --> src/document.rs:271:29
[INFO] [stdout] |
[INFO] [stdout] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:685:29
[INFO] [stdout] |
[INFO] [stdout] 685 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[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: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:224:38
[INFO] [stdout] |
[INFO] [stdout] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:267:48
[INFO] [stdout] |
[INFO] [stdout] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout] --> src/schema.rs:225:22
[INFO] [stdout] |
[INFO] [stdout] 225 | for (key, child) in &node.properties {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout] --> src/path.rs:153:30
[INFO] [stdout] |
[INFO] [stdout] 153 | pub fn merge_path(&self, path: Path) -> Self {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stdout] --> src/config.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 16 | pub llm_provider: LlmProvider,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stdout] --> src/config.rs:8:1
[INFO] [stdout] |
[INFO] [stdout] 8 | enum LlmProvider {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stdout] --> src/document_format.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 4 | enum FormatStrategy {
[INFO] [stdout] | -------------- variants in this enum
[INFO] [stdout] 5 | Simple,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 6 | Flattened,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 7 | Nested,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stdout] --> src/document.rs:27:5
[INFO] [stdout] |
[INFO] [stdout] 27 | use crate::basis_node::BasisNode;
[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: `crate::basis_network::BasisNetwork`
[INFO] [stdout] --> src/document.rs:28:5
[INFO] [stdout] |
[INFO] [stdout] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::config::Config`
[INFO] [stdout] --> src/prelude.rs:4:9
[INFO] [stdout] |
[INFO] [stdout] 4 | pub use crate::config::Config;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: the most public imported item is `pub(crate)`
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout] --> src/path.rs:2:18
[INFO] [stdout] |
[INFO] [stdout] 2 | use serde_json::{json, Value, Map};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/path.rs:3:24
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::{HashMap};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `provider`
[INFO] [stdout] --> src/context.rs:27:9
[INFO] [stdout] |
[INFO] [stdout] 27 | provider: Arc,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout] --> src/llm/openai.rs:494:24
[INFO] [stdout] |
[INFO] [stdout] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout] --> src/llm/openai.rs:990:39
[INFO] [stdout] |
[INFO] [stdout] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `document_format`
[INFO] [stdout] --> src/document.rs:271:29
[INFO] [stdout] |
[INFO] [stdout] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:685:29
[INFO] [stdout] |
[INFO] [stdout] 685 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[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: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:224:38
[INFO] [stdout] |
[INFO] [stdout] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:267:48
[INFO] [stdout] |
[INFO] [stdout] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout] --> src/schema.rs:225:22
[INFO] [stdout] |
[INFO] [stdout] 225 | for (key, child) in &node.properties {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout] --> src/path.rs:153:30
[INFO] [stdout] |
[INFO] [stdout] 153 | pub fn merge_path(&self, path: Path) -> Self {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stdout] --> src/config.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 16 | pub llm_provider: LlmProvider,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub(crate)`
[INFO] [stdout] |
[INFO] [stdout] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stdout] --> src/config.rs:8:1
[INFO] [stdout] |
[INFO] [stdout] 8 | enum LlmProvider {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stdout] --> src/document_format.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 4 | enum FormatStrategy {
[INFO] [stdout] | -------------- variants in this enum
[INFO] [stdout] 5 | Simple,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 6 | Flattened,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 7 | Nested,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `VoidProvider` is never constructed
[INFO] [stdout] --> src/provider/mod.rs:62:12
[INFO] [stdout] |
[INFO] [stdout] 62 | pub struct VoidProvider;
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `NormalizedDocument` is never constructed
[INFO] [stdout] --> src/types.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 4 | pub enum DocumentVersion {
[INFO] [stdout] | --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 7 | NormalizedDocument
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `DocumentVersion` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `FileReadError` is never constructed
[INFO] [stdout] --> src/types.rs:12:5
[INFO] [stdout] |
[INFO] [stdout] 11 | pub enum Errors {
[INFO] [stdout] | ------ variant in this enum
[INFO] [stdout] 12 | FileReadError,
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Errors` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `to_string` is never used
[INFO] [stdout] --> src/schema.rs:215:12
[INFO] [stdout] |
[INFO] [stdout] 24 | impl Schema {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 215 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `with_index_segment_increment` is never used
[INFO] [stdout] --> src/path.rs:103:12
[INFO] [stdout] |
[INFO] [stdout] 70 | impl Path {
[INFO] [stdout] | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 | pub fn with_index_segment_increment(&self, index: usize) -> Self {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 52s
[INFO] running `Command { std: "docker" "inspect" "3d3431f0a1bec25eba539f18fc77a3523b6ee9429d81759d2915f3bce83d0951", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3d3431f0a1bec25eba539f18fc77a3523b6ee9429d81759d2915f3bce83d0951", kill_on_drop: false }`
[INFO] [stdout] 3d3431f0a1bec25eba539f18fc77a3523b6ee9429d81759d2915f3bce83d0951
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ed6ccadc76379fcbb81e647c0c67353e4fd7bba01651e1f0f4009cb3be7d0cee
[INFO] running `Command { std: "docker" "start" "-a" "ed6ccadc76379fcbb81e647c0c67353e4fd7bba01651e1f0f4009cb3be7d0cee", kill_on_drop: false }`
[INFO] [stderr] Compiling parversion v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stdout] --> src/document.rs:27:5
[INFO] [stdout] |
[INFO] [stdout] 27 | use crate::basis_node::BasisNode;
[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: `crate::basis_network::BasisNetwork`
[INFO] [stdout] --> src/document.rs:28:5
[INFO] [stdout] |
[INFO] [stdout] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: the most public imported item is `pub(crate)`
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout] --> src/path.rs:2:18
[INFO] [stdout] |
[INFO] [stdout] 2 | use serde_json::{json, Value, Map};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/path.rs:3:24
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::{HashMap};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `provider`
[INFO] [stdout] --> src/context.rs:27:9
[INFO] [stdout] |
[INFO] [stdout] 27 | provider: Arc,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout] --> src/llm/openai.rs:494:24
[INFO] [stdout] |
[INFO] [stdout] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout] --> src/llm/openai.rs:990:39
[INFO] [stdout] |
[INFO] [stdout] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `document_format`
[INFO] [stdout] --> src/document.rs:271:29
[INFO] [stdout] |
[INFO] [stdout] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:685:29
[INFO] [stdout] |
[INFO] [stdout] 685 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[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: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:224:38
[INFO] [stdout] |
[INFO] [stdout] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:267:48
[INFO] [stdout] |
[INFO] [stdout] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout] --> src/schema.rs:225:22
[INFO] [stdout] |
[INFO] [stdout] 225 | for (key, child) in &node.properties {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout] --> src/path.rs:153:30
[INFO] [stdout] |
[INFO] [stdout] 153 | pub fn merge_path(&self, path: Path) -> Self {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stdout] --> src/config.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 16 | pub llm_provider: LlmProvider,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stdout] --> src/config.rs:8:1
[INFO] [stdout] |
[INFO] [stdout] 8 | enum LlmProvider {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stdout] --> src/document_format.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 4 | enum FormatStrategy {
[INFO] [stdout] | -------------- variants in this enum
[INFO] [stdout] 5 | Simple,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 6 | Flattened,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 7 | Nested,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stdout] --> src/document.rs:27:5
[INFO] [stdout] |
[INFO] [stdout] 27 | use crate::basis_node::BasisNode;
[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: `crate::basis_network::BasisNetwork`
[INFO] [stdout] --> src/document.rs:28:5
[INFO] [stdout] |
[INFO] [stdout] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stdout] --> src/document.rs:27:5
[INFO] [stdout] |
[INFO] [stdout] 27 | use crate::basis_node::BasisNode;
[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: `crate::basis_network::BasisNetwork`
[INFO] [stdout] --> src/document.rs:28:5
[INFO] [stdout] |
[INFO] [stdout] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `crate::config::Config`
[INFO] [stdout] --> src/prelude.rs:4:9
[INFO] [stdout] |
[INFO] [stdout] 4 | pub use crate::config::Config;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: the most public imported item is `pub(crate)`
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: the most public imported item is `pub(crate)`
[INFO] [stdout] --> src/prelude.rs:5:9
[INFO] [stdout] |
[INFO] [stdout] 5 | pub use crate::macros::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout] --> src/path.rs:2:18
[INFO] [stdout] |
[INFO] [stdout] 2 | use serde_json::{json, Value, Map};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/path.rs:3:24
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::{HashMap};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout] --> src/path.rs:2:18
[INFO] [stdout] |
[INFO] [stdout] 2 | use serde_json::{json, Value, Map};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout] --> src/path.rs:3:24
[INFO] [stdout] |
[INFO] [stdout] 3 | use std::collections::{HashMap};
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `provider`
[INFO] [stdout] --> src/context.rs:27:9
[INFO] [stdout] |
[INFO] [stdout] 27 | provider: Arc,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `provider`
[INFO] [stdout] --> src/context.rs:27:9
[INFO] [stdout] |
[INFO] [stdout] 27 | provider: Arc
,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout] --> src/llm/openai.rs:494:24
[INFO] [stdout] |
[INFO] [stdout] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout] --> src/llm/openai.rs:494:24
[INFO] [stdout] |
[INFO] [stdout] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout] --> src/llm/openai.rs:990:39
[INFO] [stdout] |
[INFO] [stdout] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `hash`
[INFO] [stdout] --> src/llm/openai.rs:990:39
[INFO] [stdout] |
[INFO] [stdout] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `document_format`
[INFO] [stdout] --> src/document.rs:271:29
[INFO] [stdout] |
[INFO] [stdout] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:685:29
[INFO] [stdout] |
[INFO] [stdout] 685 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[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: `document_format`
[INFO] [stdout] --> src/document.rs:271:29
[INFO] [stdout] |
[INFO] [stdout] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:685:29
[INFO] [stdout] |
[INFO] [stdout] 685 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[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: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:224:38
[INFO] [stdout] |
[INFO] [stdout] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:267:48
[INFO] [stdout] |
[INFO] [stdout] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:224:38
[INFO] [stdout] |
[INFO] [stdout] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `lineage`
[INFO] [stdout] --> src/provider/yaml.rs:267:48
[INFO] [stdout] |
[INFO] [stdout] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout] --> src/schema.rs:225:22
[INFO] [stdout] |
[INFO] [stdout] 225 | for (key, child) in &node.properties {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout] --> src/schema.rs:225:22
[INFO] [stdout] |
[INFO] [stdout] 225 | for (key, child) in &node.properties {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout] --> src/path.rs:153:30
[INFO] [stdout] |
[INFO] [stdout] 153 | pub fn merge_path(&self, path: Path) -> Self {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stdout] --> src/config.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 16 | pub llm_provider: LlmProvider,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub(crate)`
[INFO] [stdout] |
[INFO] [stdout] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stdout] --> src/config.rs:8:1
[INFO] [stdout] |
[INFO] [stdout] 8 | enum LlmProvider {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stdout] --> src/document_format.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 4 | enum FormatStrategy {
[INFO] [stdout] | -------------- variants in this enum
[INFO] [stdout] 5 | Simple,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 6 | Flattened,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 7 | Nested,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `VoidProvider` is never constructed
[INFO] [stdout] --> src/provider/mod.rs:62:12
[INFO] [stdout] |
[INFO] [stdout] 62 | pub struct VoidProvider;
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `NormalizedDocument` is never constructed
[INFO] [stdout] --> src/types.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 4 | pub enum DocumentVersion {
[INFO] [stdout] | --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 7 | NormalizedDocument
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `DocumentVersion` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `FileReadError` is never constructed
[INFO] [stdout] --> src/types.rs:12:5
[INFO] [stdout] |
[INFO] [stdout] 11 | pub enum Errors {
[INFO] [stdout] | ------ variant in this enum
[INFO] [stdout] 12 | FileReadError,
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `Errors` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `to_string` is never used
[INFO] [stdout] --> src/schema.rs:215:12
[INFO] [stdout] |
[INFO] [stdout] 24 | impl Schema {
[INFO] [stdout] | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 215 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `with_index_segment_increment` is never used
[INFO] [stdout] --> src/path.rs:103:12
[INFO] [stdout] |
[INFO] [stdout] 70 | impl Path {
[INFO] [stdout] | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 | pub fn with_index_segment_increment(&self, index: usize) -> Self {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout] --> src/path.rs:153:30
[INFO] [stdout] |
[INFO] [stdout] 153 | pub fn merge_path(&self, path: Path) -> Self {
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stdout] --> src/config.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 16 | pub llm_provider: LlmProvider,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stdout] --> src/config.rs:8:1
[INFO] [stdout] |
[INFO] [stdout] 8 | enum LlmProvider {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stdout] --> src/document_format.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 4 | enum FormatStrategy {
[INFO] [stdout] | -------------- variants in this enum
[INFO] [stdout] 5 | Simple,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 6 | Flattened,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] 7 | Nested,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.19s
[INFO] running `Command { std: "docker" "inspect" "ed6ccadc76379fcbb81e647c0c67353e4fd7bba01651e1f0f4009cb3be7d0cee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ed6ccadc76379fcbb81e647c0c67353e4fd7bba01651e1f0f4009cb3be7d0cee", kill_on_drop: false }`
[INFO] [stdout] ed6ccadc76379fcbb81e647c0c67353e4fd7bba01651e1f0f4009cb3be7d0cee