[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] 2a207ddabc3b2a3136e8b581d1cbb95f30c91e1b
[INFO] testing davidRoussov/document-to-json against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdavidRoussov%2Fdocument-to-json" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/davidRoussov/document-to-json on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Updating crates.io index
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded simple-logging v2.0.2
[INFO] [stderr] Downloaded quick-js v0.4.1
[INFO] [stderr] Downloaded toml_write v0.1.1
[INFO] [stderr] Downloaded pathetic v0.3.0
[INFO] [stderr] Downloaded copy_dir v0.1.3
[INFO] [stderr] Downloaded errno v0.3.11
[INFO] [stderr] Downloaded dot v0.1.4
[INFO] [stderr] Downloaded webdriver v0.50.0
[INFO] [stderr] Downloaded tempfile v3.19.1
[INFO] [stderr] Downloaded textwrap v0.16.2
[INFO] [stderr] Downloaded fantoccini v0.21.5
[INFO] [stderr] Downloaded toml v0.8.22
[INFO] [stderr] Downloaded hyper-util v0.1.11
[INFO] [stderr] Downloaded fern v0.7.1
[INFO] [stderr] Downloaded libquickjs-sys v0.9.0
[INFO] [stderr] Downloaded sled v0.34.7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3572868605a0e1ced2367480ddb65f53d663077854e03fa093bb148aa6b788fc
[INFO] running `Command { std: "docker" "start" "-a" "3572868605a0e1ced2367480ddb65f53d663077854e03fa093bb148aa6b788fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3572868605a0e1ced2367480ddb65f53d663077854e03fa093bb148aa6b788fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3572868605a0e1ced2367480ddb65f53d663077854e03fa093bb148aa6b788fc", kill_on_drop: false }`
[INFO] [stdout] 3572868605a0e1ced2367480ddb65f53d663077854e03fa093bb148aa6b788fc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 053d948cfd870ce5906148b3a31cb53c5efcd6b11a83c5a8dfc9f4ea783506f3
[INFO] running `Command { std: "docker" "start" "-a" "053d948cfd870ce5906148b3a31cb53c5efcd6b11a83c5a8dfc9f4ea783506f3", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.172
[INFO] [stderr] Compiling smallvec v1.15.0
[INFO] [stderr] Compiling serde v1.0.219
[INFO] [stderr] Compiling cc v1.2.22
[INFO] [stderr] Compiling siphasher v1.0.1
[INFO] [stderr] Compiling syn v2.0.101
[INFO] [stderr] Compiling rand v0.8.5
[INFO] [stderr] Compiling new_debug_unreachable v1.0.6
[INFO] [stderr] Compiling mac v0.1.1
[INFO] [stderr] Compiling same-file v1.0.6
[INFO] [stderr] Compiling time-core v0.1.4
[INFO] [stderr] Compiling deranged v0.4.0
[INFO] [stderr] Compiling rustls v0.21.12
[INFO] [stderr] Compiling precomputed-hash v0.1.1
[INFO] [stderr] Compiling cookie v0.16.2
[INFO] [stderr] Compiling cookie v0.18.1
[INFO] [stderr] Compiling futf v0.1.5
[INFO] [stderr] Compiling walkdir v2.5.0
[INFO] [stderr] Compiling time-macros v0.2.22
[INFO] [stderr] Compiling num-traits v0.2.19
[INFO] [stderr] Compiling indexmap v1.9.3
[INFO] [stderr] Compiling getrandom v0.3.3
[INFO] [stderr] Compiling unicode-segmentation v1.12.0
[INFO] [stderr] Compiling os_str_bytes v6.6.1
[INFO] [stderr] Compiling toml_write v0.1.1
[INFO] [stderr] Compiling winnow v0.7.10
[INFO] [stderr] Compiling tendril v0.4.3
[INFO] [stderr] Compiling phf_shared v0.11.3
[INFO] [stderr] Compiling copy_dir v0.1.3
[INFO] [stderr] Compiling clap_lex v0.2.4
[INFO] [stderr] Compiling regex-automata v0.4.9
[INFO] [stderr] Compiling digest v0.10.7
[INFO] [stderr] Compiling phf v0.11.3
[INFO] [stderr] Compiling textwrap v0.16.2
[INFO] [stderr] Compiling phf_generator v0.11.3
[INFO] [stderr] Compiling unsafe-libyaml v0.2.11
[INFO] [stderr] Compiling string_cache_codegen v0.5.4
[INFO] [stderr] Compiling phf_codegen v0.11.3
[INFO] [stderr] Compiling webpki-roots v0.25.4
[INFO] [stderr] Compiling xml-rs v0.8.26
[INFO] [stderr] Compiling sha2 v0.10.9
[INFO] [stderr] Compiling fern v0.7.1
[INFO] [stderr] Compiling dotenv v0.15.0
[INFO] [stderr] Compiling dot v0.1.4
[INFO] [stderr] Compiling parking_lot_core v0.9.10
[INFO] [stderr] Compiling mio v1.0.3
[INFO] [stderr] Compiling signal-hook-registry v1.4.5
[INFO] [stderr] Compiling socket2 v0.5.9
[INFO] [stderr] Compiling getrandom v0.2.16
[INFO] [stderr] Compiling markup5ever v0.12.1
[INFO] [stderr] Compiling parking_lot v0.12.3
[INFO] [stderr] Compiling time v0.3.41
[INFO] [stderr] Compiling openssl-sys v0.9.108
[INFO] [stderr] Compiling ring v0.17.14
[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 simple-logging v2.0.2
[INFO] [stderr] Compiling clap v3.2.25
[INFO] [stderr] Compiling chrono v0.4.41
[INFO] [stderr] Compiling xmltree v0.10.3
[INFO] [stderr] Compiling uuid v1.16.0
[INFO] [stderr] Compiling openssl v0.10.72
[INFO] [stderr] Compiling native-tls v0.2.14
[INFO] [stderr] Compiling regex v1.11.1
[INFO] [stderr] Compiling synstructure v0.13.2
[INFO] [stderr] Compiling zerofrom-derive v0.1.6
[INFO] [stderr] Compiling yoke-derive v0.8.0
[INFO] [stderr] Compiling serde_derive v1.0.219
[INFO] [stderr] Compiling zerovec-derive v0.11.1
[INFO] [stderr] Compiling displaydoc v0.2.5
[INFO] [stderr] Compiling tokio-macros v2.5.0
[INFO] [stderr] Compiling futures-macro v0.3.31
[INFO] [stderr] Compiling openssl-macros v0.1.1
[INFO] [stderr] Compiling thiserror-impl v1.0.69
[INFO] [stderr] Compiling html5ever v0.27.0
[INFO] [stderr] Compiling async-trait v0.1.88
[INFO] [stderr] Compiling tokio v1.45.0
[INFO] [stderr] Compiling futures-util v0.3.31
[INFO] [stderr] Compiling zerofrom v0.1.6
[INFO] [stderr] Compiling yoke v0.8.0
[INFO] [stderr] Compiling thiserror v1.0.69
[INFO] [stderr] Compiling sct v0.7.1
[INFO] [stderr] Compiling rustls-webpki v0.101.7
[INFO] [stderr] Compiling zerovec v0.11.2
[INFO] [stderr] Compiling zerotrie v0.2.2
[INFO] [stderr] Compiling tinystr v0.8.1
[INFO] [stderr] Compiling potential_utf v0.1.2
[INFO] [stderr] Compiling icu_locale_core v2.0.0
[INFO] [stderr] Compiling icu_collections v2.0.0
[INFO] [stderr] Compiling icu_provider v2.0.0
[INFO] [stderr] Compiling icu_properties v2.0.0
[INFO] [stderr] Compiling icu_normalizer v2.0.0
[INFO] [stderr] Compiling idna_adapter v1.2.1
[INFO] [stderr] Compiling idna v1.0.3
[INFO] [stderr] Compiling futures-executor v0.3.31
[INFO] [stderr] Compiling url v2.5.4
[INFO] [stderr] Compiling futures v0.3.31
[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 webdriver v0.50.0
[INFO] [stderr] Compiling tokio-util v0.7.15
[INFO] [stderr] Compiling tokio-native-tls v0.3.1
[INFO] [stderr] Compiling hyper v1.6.0
[INFO] [stderr] Compiling tokio-rustls v0.24.1
[INFO] [stderr] Compiling xml5ever v0.18.1
[INFO] [stderr] Compiling h2 v0.3.26
[INFO] [stderr] Compiling markup5ever_rcdom v0.3.0
[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 hyper v0.14.32
[INFO] [stderr] Compiling fantoccini v0.21.5
[INFO] [stderr] Compiling hyper-tls v0.5.0
[INFO] [stderr] Compiling hyper-rustls v0.24.2
[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 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: unused variable: `schema_node`
[INFO] [stdout] --> src/document.rs:506:21
[INFO] [stdout] |
[INFO] [stdout] 506 | let schema_node: SchemaNode = {
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:673:29
[INFO] [stdout] |
[INFO] [stdout] 673 | 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: `is_array`
[INFO] [stdout] --> src/schema_node.rs:108:9
[INFO] [stdout] |
[INFO] [stdout] 108 | is_array: bool
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `current_position`
[INFO] [stdout] --> src/path.rs:163:17
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout] --> src/path.rs:161:9
[INFO] [stdout] |
[INFO] [stdout] 161 | value: String,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/path.rs:163:13
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ----^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[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 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: unused variable: `schema_node`
[INFO] [stdout] --> src/document.rs:506:21
[INFO] [stdout] |
[INFO] [stdout] 506 | let schema_node: SchemaNode = {
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:673:29
[INFO] [stdout] |
[INFO] [stdout] 673 | 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: `is_array`
[INFO] [stdout] --> src/schema_node.rs:108:9
[INFO] [stdout] |
[INFO] [stdout] 108 | is_array: bool
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `current_position`
[INFO] [stdout] --> src/path.rs:163:17
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout] --> src/path.rs:161:9
[INFO] [stdout] |
[INFO] [stdout] 161 | value: String,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/path.rs:163:13
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ----^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[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 `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/path.rs:43:12
[INFO] [stdout] |
[INFO] [stdout] 15 | impl PathSegment {
[INFO] [stdout] | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `to_string` and `with_index_segment_increment` are never used
[INFO] [stdout] --> src/path.rs:80:12
[INFO] [stdout] |
[INFO] [stdout] 67 | impl Path {
[INFO] [stdout] | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 80 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 | 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 40s
[INFO] running `Command { std: "docker" "inspect" "053d948cfd870ce5906148b3a31cb53c5efcd6b11a83c5a8dfc9f4ea783506f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "053d948cfd870ce5906148b3a31cb53c5efcd6b11a83c5a8dfc9f4ea783506f3", kill_on_drop: false }`
[INFO] [stdout] 053d948cfd870ce5906148b3a31cb53c5efcd6b11a83c5a8dfc9f4ea783506f3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6286bf193675d7a0d9fd8de8e67aecb510f89e482a20ec28dd44f5ccc54bb07b
[INFO] running `Command { std: "docker" "start" "-a" "6286bf193675d7a0d9fd8de8e67aecb510f89e482a20ec28dd44f5ccc54bb07b", kill_on_drop: false }`
[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 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] [stderr] Compiling parversion v0.1.0 (/opt/rustwide/workdir)
[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: unused variable: `schema_node`
[INFO] [stdout] --> src/document.rs:506:21
[INFO] [stdout] |
[INFO] [stdout] 506 | let schema_node: SchemaNode = {
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:673:29
[INFO] [stdout] |
[INFO] [stdout] 673 | 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: `is_array`
[INFO] [stdout] --> src/schema_node.rs:108:9
[INFO] [stdout] |
[INFO] [stdout] 108 | is_array: bool
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `current_position`
[INFO] [stdout] --> src/path.rs:163:17
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout] --> src/path.rs:161:9
[INFO] [stdout] |
[INFO] [stdout] 161 | value: String,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/path.rs:163:13
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ----^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[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: 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: `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 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: unused variable: `schema_node`
[INFO] [stdout] --> src/document.rs:506:21
[INFO] [stdout] |
[INFO] [stdout] 506 | let schema_node: SchemaNode = {
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:673:29
[INFO] [stdout] |
[INFO] [stdout] 673 | 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: unused variable: `schema_node`
[INFO] [stdout] --> src/document.rs:506:21
[INFO] [stdout] |
[INFO] [stdout] 506 | let schema_node: SchemaNode = {
[INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/document.rs:673:29
[INFO] [stdout] |
[INFO] [stdout] 673 | 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: `is_array`
[INFO] [stdout] --> src/schema_node.rs:108:9
[INFO] [stdout] |
[INFO] [stdout] 108 | is_array: bool
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `current_position`
[INFO] [stdout] --> src/path.rs:163:17
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout] --> src/path.rs:161:9
[INFO] [stdout] |
[INFO] [stdout] 161 | value: String,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/path.rs:163:13
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ----^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[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 variable: `is_array`
[INFO] [stdout] --> src/schema_node.rs:108:9
[INFO] [stdout] |
[INFO] [stdout] 108 | is_array: bool
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `current_position`
[INFO] [stdout] --> src/path.rs:163:17
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout] --> src/path.rs:161:9
[INFO] [stdout] |
[INFO] [stdout] 161 | value: String,
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/path.rs:163:13
[INFO] [stdout] |
[INFO] [stdout] 163 | let mut current_position = hashmap;
[INFO] [stdout] | ----^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[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 `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/path.rs:43:12
[INFO] [stdout] |
[INFO] [stdout] 15 | impl PathSegment {
[INFO] [stdout] | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `to_string` and `with_index_segment_increment` are never used
[INFO] [stdout] --> src/path.rs:80:12
[INFO] [stdout] |
[INFO] [stdout] 67 | impl Path {
[INFO] [stdout] | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 80 | pub fn to_string(&self) -> String {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 | pub fn with_index_segment_increment(&self, index: usize) -> Self {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.02s
[INFO] running `Command { std: "docker" "inspect" "6286bf193675d7a0d9fd8de8e67aecb510f89e482a20ec28dd44f5ccc54bb07b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6286bf193675d7a0d9fd8de8e67aecb510f89e482a20ec28dd44f5ccc54bb07b", kill_on_drop: false }`
[INFO] [stdout] 6286bf193675d7a0d9fd8de8e67aecb510f89e482a20ec28dd44f5ccc54bb07b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 5fada5d8e3ebba4fe32b05dcdd9266e967e1da2de6a2961e2b4cdf6fd282a9d2
[INFO] running `Command { std: "docker" "start" "-a" "5fada5d8e3ebba4fe32b05dcdd9266e967e1da2de6a2961e2b4cdf6fd282a9d2", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `crate::basis_node::BasisNode`
[INFO] [stderr] --> src/document.rs:27:5
[INFO] [stderr] |
[INFO] [stderr] 27 | use crate::basis_node::BasisNode;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `crate::basis_network::BasisNetwork`
[INFO] [stderr] --> src/document.rs:28:5
[INFO] [stderr] |
[INFO] [stderr] 28 | use crate::basis_network::BasisNetwork;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
[INFO] [stderr] --> src/prelude.rs:5:9
[INFO] [stderr] |
[INFO] [stderr] 5 | pub use crate::macros::*;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: the most public imported item is `pub(crate)`
[INFO] [stderr] --> src/prelude.rs:5:9
[INFO] [stderr] |
[INFO] [stderr] 5 | pub use crate::macros::*;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: reduce the glob import's visibility or increase visibility of imported items
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `provider`
[INFO] [stderr] --> src/context.rs:27:9
[INFO] [stderr] |
[INFO] [stderr] 27 | provider: Arc,
[INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `index`
[INFO] [stderr] --> src/llm/openai.rs:494:24
[INFO] [stderr] |
[INFO] [stderr] 494 | |mut acc, (index, (subgraph_hash, json))| {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `hash`
[INFO] [stderr] --> src/llm/openai.rs:990:39
[INFO] [stderr] |
[INFO] [stderr] 990 | async fn get_or_set_cache(hash: Hash, fetch_data: F) -> Option
[INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `document_format`
[INFO] [stderr] --> src/document.rs:271:29
[INFO] [stderr] |
[INFO] [stderr] 271 | pub fn to_string(&self, document_format: &Option) -> String {
[INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document_format`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `schema_node`
[INFO] [stderr] --> src/document.rs:506:21
[INFO] [stderr] |
[INFO] [stderr] 506 | let schema_node: SchemaNode = {
[INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_schema_node`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> src/document.rs:673:29
[INFO] [stderr] |
[INFO] [stderr] 673 | let mut existing_schema_node = schema.get_mut(&schema_node.name).unwrap();
[INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `lineage`
[INFO] [stderr] --> src/provider/yaml.rs:224:38
[INFO] [stderr] |
[INFO] [stderr] 224 | async fn save_basis_graph(&self, lineage: &Lineage, basis_graph: BasisGraph) -> Result<(), Errors> {
[INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `lineage`
[INFO] [stderr] --> src/provider/yaml.rs:267:48
[INFO] [stderr] |
[INFO] [stderr] 267 | async fn save_schema_transformation(&self, lineage: &Lineage, schema_transformation: SchemaTransformation) -> Result<(), Errors> {
[INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineage`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `is_array`
[INFO] [stderr] --> src/schema_node.rs:108:9
[INFO] [stderr] |
[INFO] [stderr] 108 | is_array: bool
[INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_array`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `current_position`
[INFO] [stderr] --> src/path.rs:163:17
[INFO] [stderr] |
[INFO] [stderr] 163 | let mut current_position = hashmap;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_position`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `value`
[INFO] [stderr] --> src/path.rs:161:9
[INFO] [stderr] |
[INFO] [stderr] 161 | value: String,
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> src/path.rs:163:13
[INFO] [stderr] |
[INFO] [stderr] 163 | let mut current_position = hashmap;
[INFO] [stderr] | ----^^^^^^^^^^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stderr] --> src/config.rs:16:5
[INFO] [stderr] |
[INFO] [stderr] 16 | pub llm_provider: LlmProvider,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub`
[INFO] [stderr] |
[INFO] [stderr] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stderr] --> src/config.rs:8:1
[INFO] [stderr] |
[INFO] [stderr] 8 | enum LlmProvider {
[INFO] [stderr] | ^^^^^^^^^^^^^^^^
[INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variants `Simple`, `Flattened`, and `Nested` are never constructed
[INFO] [stderr] --> src/document_format.rs:5:5
[INFO] [stderr] |
[INFO] [stderr] 4 | enum FormatStrategy {
[INFO] [stderr] | -------------- variants in this enum
[INFO] [stderr] 5 | Simple,
[INFO] [stderr] | ^^^^^^
[INFO] [stderr] 6 | Flattened,
[INFO] [stderr] | ^^^^^^^^^
[INFO] [stderr] 7 | Nested,
[INFO] [stderr] | ^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `FormatStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr]
[INFO] [stderr] warning: `parversion` (lib) generated 17 warnings (run `cargo fix --lib -p parversion` to apply 4 suggestions)
[INFO] [stderr] warning: unused import: `crate::config::Config`
[INFO] [stderr] --> src/prelude.rs:4:9
[INFO] [stderr] |
[INFO] [stderr] 4 | pub use crate::config::Config;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: type `LlmProvider` is more private than the item `LlmConfig::llm_provider`
[INFO] [stderr] --> src/config.rs:16:5
[INFO] [stderr] |
[INFO] [stderr] 16 | pub llm_provider: LlmProvider,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `LlmConfig::llm_provider` is reachable at visibility `pub(crate)`
[INFO] [stderr] |
[INFO] [stderr] note: but type `LlmProvider` is only usable at visibility `pub(self)`
[INFO] [stderr] --> src/config.rs:8:1
[INFO] [stderr] |
[INFO] [stderr] 8 | enum LlmProvider {
[INFO] [stderr] | ^^^^^^^^^^^^^^^^
[INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: struct `VoidProvider` is never constructed
[INFO] [stderr] --> src/provider/mod.rs:62:12
[INFO] [stderr] |
[INFO] [stderr] 62 | pub struct VoidProvider;
[INFO] [stderr] | ^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: variant `FileReadError` is never constructed
[INFO] [stderr] --> src/types.rs:12:5
[INFO] [stderr] |
[INFO] [stderr] 11 | pub enum Errors {
[INFO] [stderr] | ------ variant in this enum
[INFO] [stderr] 12 | FileReadError,
[INFO] [stderr] | ^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `Errors` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]
[INFO] [stderr] warning: method `to_string` is never used
[INFO] [stderr] --> src/path.rs:43:12
[INFO] [stderr] |
[INFO] [stderr] 15 | impl PathSegment {
[INFO] [stderr] | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 43 | pub fn to_string(&self) -> String {
[INFO] [stderr] | ^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: methods `to_string` and `with_index_segment_increment` are never used
[INFO] [stderr] --> src/path.rs:80:12
[INFO] [stderr] |
[INFO] [stderr] 67 | impl Path {
[INFO] [stderr] | --------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 80 | pub fn to_string(&self) -> String {
[INFO] [stderr] | ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 100 | pub fn with_index_segment_increment(&self, index: usize) -> Self {
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: `parversion` (bin "parversion" test) generated 22 warnings (16 duplicates) (run `cargo fix --bin "parversion" --tests` to apply 1 suggestion)
[INFO] [stderr] warning: `parversion` (lib test) generated 17 warnings (17 duplicates)
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s
[INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/parversion-acd12a593ee69f6d)
[INFO] [stdout]
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/parversion-869c3222e119ca03)
[INFO] [stdout]
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] [stderr] Doc-tests parversion
[INFO] [stdout]
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "5fada5d8e3ebba4fe32b05dcdd9266e967e1da2de6a2961e2b4cdf6fd282a9d2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5fada5d8e3ebba4fe32b05dcdd9266e967e1da2de6a2961e2b4cdf6fd282a9d2", kill_on_drop: false }`
[INFO] [stdout] 5fada5d8e3ebba4fe32b05dcdd9266e967e1da2de6a2961e2b4cdf6fd282a9d2