[INFO] fetching crate scribe-analysis 0.5.0... [INFO] testing scribe-analysis-0.5.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate scribe-analysis 0.5.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate scribe-analysis 0.5.0 [INFO] finished tweaking crates.io crate scribe-analysis 0.5.0 [INFO] tweaked toml for crates.io crate scribe-analysis 0.5.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scribe-analysis 0.5.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate scribe-analysis 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.106 [INFO] [stderr] Downloaded tree-sitter-go v0.20.0 [INFO] [stderr] Downloaded clap_builder v4.5.47 [INFO] [stderr] Downloaded clap v4.5.47 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.4 [INFO] [stderr] Downloaded serde v1.0.224 [INFO] [stderr] Downloaded serde_derive v1.0.224 [INFO] [stderr] Downloaded tree-sitter-html v0.19.0 [INFO] [stderr] Downloaded tree-sitter-python v0.20.4 [INFO] [stderr] Downloaded tree-sitter-rust v0.20.4 [INFO] [stderr] Downloaded scribe-core v0.5.0 [INFO] [stderr] Downloaded serde_core v1.0.224 [INFO] [stderr] Downloaded tree-sitter-typescript v0.20.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 254fce2945f55a62598fedeacf71ff9acc967aa0ea43dc3aec706f3c905b2d3b [INFO] running `Command { std: "docker" "start" "-a" "254fce2945f55a62598fedeacf71ff9acc967aa0ea43dc3aec706f3c905b2d3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "254fce2945f55a62598fedeacf71ff9acc967aa0ea43dc3aec706f3c905b2d3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "254fce2945f55a62598fedeacf71ff9acc967aa0ea43dc3aec706f3c905b2d3b", kill_on_drop: false }` [INFO] [stdout] 254fce2945f55a62598fedeacf71ff9acc967aa0ea43dc3aec706f3c905b2d3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e145eb0625ae5f729116a6ab91f1ddf8f4c7e3b44212871d567669238aa696f2 [INFO] running `Command { std: "docker" "start" "-a" "e145eb0625ae5f729116a6ab91f1ddf8f4c7e3b44212871d567669238aa696f2", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.106 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde_core v1.0.224 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling serde v1.0.224 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-rust v0.20.4 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.5 [INFO] [stderr] Compiling tree-sitter-python v0.20.4 [INFO] [stderr] Compiling tree-sitter-html v0.19.0 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.4 [INFO] [stderr] Compiling tree-sitter-go v0.20.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.224 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tiktoken-rs v0.7.0 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling scribe-core v0.5.0 [INFO] [stderr] Compiling scribe-analysis v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tree` [INFO] [stdout] --> src/ast_import_parser.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | use tree_sitter::{Language, Node, Parser, Tree, TreeCursor}; [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: `super::scoring::RawScoreComponents` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::scoring::RawScoreComponents; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScribeError` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | use scribe_core::{Result, ScribeError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimpleImport` [INFO] [stdout] --> src/heuristics/import_analysis.rs:15:65 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::ast_import_parser::{ImportLanguage, SimpleAstParser, SimpleImport}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/heuristics/scoring/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeuristicWeights` [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use super::types::{HeuristicWeights, RawScoreComponents}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Language as TsLanguage` and `Tree` [INFO] [stdout] --> src/heuristics/template_detection.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | use tree_sitter::{Language as TsLanguage, Node, Parser, Tree}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functions` [INFO] [stdout] --> src/complexity.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | functions: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 482 | _functions: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 482 - functions: usize, [INFO] [stdout] 482 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_content` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | file_content: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:508:9 [INFO] [stdout] | [INFO] [stdout] 508 | file: &T, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import_graph` [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | import_graph: Option<&ImportGraph>, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_graph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_count` [INFO] [stdout] --> src/language_support/language_metrics.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | class_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 229 | _class_count: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 229 - class_count: usize, [INFO] [stdout] 229 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_complexity_keywords` and `get_nesting_chars` are never used [INFO] [stdout] --> src/complexity.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl ComplexityAnalyzer { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 325 | fn get_complexity_keywords(&self, language: &str) -> Vec<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn get_nesting_chars(&self, language: &str) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `import_builder` is never read [INFO] [stdout] --> src/heuristics/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct HeuristicSystem { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | import_builder: ImportGraphBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeuristicSystem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_likely_executable` is never used [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn is_likely_executable(file: &T) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `language` is never read [INFO] [stdout] --> src/language_support/function_extraction.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct FunctionExtractor { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 55 | language: AstLanguage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extract_parameters` and `extract_parent_classes` are never used [INFO] [stdout] --> src/language_support/function_extraction.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl FunctionExtractor { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | fn extract_parameters(&self, params_text: &str, _node: Node) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | fn extract_parent_classes(&self, parents_text: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.86s [INFO] running `Command { std: "docker" "inspect" "e145eb0625ae5f729116a6ab91f1ddf8f4c7e3b44212871d567669238aa696f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e145eb0625ae5f729116a6ab91f1ddf8f4c7e3b44212871d567669238aa696f2", kill_on_drop: false }` [INFO] [stdout] e145eb0625ae5f729116a6ab91f1ddf8f4c7e3b44212871d567669238aa696f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c04a1eba98ecac91f0a3d1f2140f192b5845b3f6c956831c60beb036bd6ba25a [INFO] running `Command { std: "docker" "start" "-a" "c04a1eba98ecac91f0a3d1f2140f192b5845b3f6c956831c60beb036bd6ba25a", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.224 [INFO] [stderr] Compiling serde v1.0.224 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling scribe-core v0.5.0 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling scribe-analysis v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tree` [INFO] [stdout] --> src/ast_import_parser.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | use tree_sitter::{Language, Node, Parser, Tree, TreeCursor}; [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: `super::scoring::RawScoreComponents` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::scoring::RawScoreComponents; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScribeError` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | use scribe_core::{Result, ScribeError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimpleImport` [INFO] [stdout] --> src/heuristics/import_analysis.rs:15:65 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::ast_import_parser::{ImportLanguage, SimpleAstParser, SimpleImport}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/heuristics/scoring/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeuristicWeights` [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use super::types::{HeuristicWeights, RawScoreComponents}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Language as TsLanguage` and `Tree` [INFO] [stdout] --> src/heuristics/template_detection.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | use tree_sitter::{Language as TsLanguage, Node, Parser, Tree}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functions` [INFO] [stdout] --> src/complexity.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | functions: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 482 | _functions: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 482 - functions: usize, [INFO] [stdout] 482 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_content` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | file_content: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:508:9 [INFO] [stdout] | [INFO] [stdout] 508 | file: &T, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import_graph` [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | import_graph: Option<&ImportGraph>, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_graph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_count` [INFO] [stdout] --> src/language_support/language_metrics.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | class_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 229 | _class_count: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 229 - class_count: usize, [INFO] [stdout] 229 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_complexity_keywords` and `get_nesting_chars` are never used [INFO] [stdout] --> src/complexity.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl ComplexityAnalyzer { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 325 | fn get_complexity_keywords(&self, language: &str) -> Vec<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn get_nesting_chars(&self, language: &str) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `import_builder` is never read [INFO] [stdout] --> src/heuristics/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct HeuristicSystem { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | import_builder: ImportGraphBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeuristicSystem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_likely_executable` is never used [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn is_likely_executable(file: &T) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `language` is never read [INFO] [stdout] --> src/language_support/function_extraction.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct FunctionExtractor { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 55 | language: AstLanguage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extract_parameters` and `extract_parent_classes` are never used [INFO] [stdout] --> src/language_support/function_extraction.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl FunctionExtractor { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | fn extract_parameters(&self, params_text: &str, _node: Node) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | fn extract_parent_classes(&self, parents_text: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tree` [INFO] [stdout] --> src/ast_import_parser.rs:12:43 [INFO] [stdout] | [INFO] [stdout] 12 | use tree_sitter::{Language, Node, Parser, Tree, TreeCursor}; [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: `super::scoring::RawScoreComponents` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use super::scoring::RawScoreComponents; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScribeError` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | use scribe_core::{Result, ScribeError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SimpleImport` [INFO] [stdout] --> src/heuristics/import_analysis.rs:15:65 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::ast_import_parser::{ImportLanguage, SimpleAstParser, SimpleImport}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/heuristics/scoring/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScoringFeatures` [INFO] [stdout] --> src/heuristics/scoring/final_scoring.rs:150:65 [INFO] [stdout] | [INFO] [stdout] 150 | use crate::heuristics::scoring::types::{RawScoreComponents, ScoringFeatures}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeuristicWeights` [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use super::types::{HeuristicWeights, RawScoreComponents}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/heuristics/scoring/mod.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Language as TsLanguage` and `Tree` [INFO] [stdout] --> src/heuristics/template_detection.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | use tree_sitter::{Language as TsLanguage, Node, Parser, Tree}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/heuristics/template_detection.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functions` [INFO] [stdout] --> src/complexity.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | functions: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 482 | _functions: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 482 - functions: usize, [INFO] [stdout] 482 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_content` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | file_content: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/heuristics/enhanced_scoring.rs:508:9 [INFO] [stdout] | [INFO] [stdout] 508 | file: &T, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import_graph` [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | import_graph: Option<&ImportGraph>, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_graph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree` [INFO] [stdout] --> src/language_support/function_extraction.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | tree: &Tree, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_count` [INFO] [stdout] --> src/language_support/language_metrics.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | class_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 229 | _class_count: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stdout] | [INFO] [stdout] 229 - class_count: usize, [INFO] [stdout] 229 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_complexity_keywords` and `get_nesting_chars` are never used [INFO] [stdout] --> src/complexity.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl ComplexityAnalyzer { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 325 | fn get_complexity_keywords(&self, language: &str) -> Vec<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn get_nesting_chars(&self, language: &str) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `import_builder` is never read [INFO] [stdout] --> src/heuristics/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct HeuristicSystem { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | import_builder: ImportGraphBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeuristicSystem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 146 | struct MockFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 151 | content: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_likely_executable` is never used [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn is_likely_executable(file: &T) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/heuristics/scoring/raw_scores.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 130 | struct MockFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 135 | content: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_file` is never used [INFO] [stdout] --> src/heuristics/template_detection.rs:677:8 [INFO] [stdout] | [INFO] [stdout] 677 | fn create_test_file(content: &str, extension: &str) -> NamedTempFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `language` is never read [INFO] [stdout] --> src/language_support/function_extraction.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct FunctionExtractor { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 55 | language: AstLanguage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `extract_parameters` and `extract_parent_classes` are never used [INFO] [stdout] --> src/language_support/function_extraction.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl FunctionExtractor { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | fn extract_parameters(&self, params_text: &str, _node: Node) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | fn extract_parent_classes(&self, parents_text: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 20.69s [INFO] running `Command { std: "docker" "inspect" "c04a1eba98ecac91f0a3d1f2140f192b5845b3f6c956831c60beb036bd6ba25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c04a1eba98ecac91f0a3d1f2140f192b5845b3f6c956831c60beb036bd6ba25a", kill_on_drop: false }` [INFO] [stdout] c04a1eba98ecac91f0a3d1f2140f192b5845b3f6c956831c60beb036bd6ba25a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c43eae5938a1c8e13f63d1315270bc04facd6373df971d98974c43444b539c31 [INFO] running `Command { std: "docker" "start" "-a" "c43eae5938a1c8e13f63d1315270bc04facd6373df971d98974c43444b539c31", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Tree` [INFO] [stderr] --> src/ast_import_parser.rs:12:43 [INFO] [stderr] | [INFO] [stderr] 12 | use tree_sitter::{Language, Node, Parser, Tree, TreeCursor}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::scoring::RawScoreComponents` [INFO] [stderr] --> src/heuristics/enhanced_scoring.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use super::scoring::RawScoreComponents; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ScribeError` [INFO] [stderr] --> src/heuristics/enhanced_scoring.rs:18:27 [INFO] [stderr] | [INFO] [stderr] 18 | use scribe_core::{Result, ScribeError}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SimpleImport` [INFO] [stderr] --> src/heuristics/import_analysis.rs:15:65 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::ast_import_parser::{ImportLanguage, SimpleAstParser, SimpleImport}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/heuristics/scoring/mod.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HeuristicWeights` [INFO] [stderr] --> src/heuristics/scoring/normalization.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use super::types::{HeuristicWeights, RawScoreComponents}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Language as TsLanguage` and `Tree` [INFO] [stderr] --> src/heuristics/template_detection.rs:18:19 [INFO] [stderr] | [INFO] [stderr] 18 | use tree_sitter::{Language as TsLanguage, Node, Parser, Tree}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `functions` [INFO] [stderr] --> src/complexity.rs:482:9 [INFO] [stderr] | [INFO] [stderr] 482 | functions: usize, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 482 | _functions: usize, [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stderr] | [INFO] [stderr] 482 - functions: usize, [INFO] [stderr] 482 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_content` [INFO] [stderr] --> src/heuristics/enhanced_scoring.rs:372:9 [INFO] [stderr] | [INFO] [stderr] 372 | file_content: &str, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_content` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/heuristics/enhanced_scoring.rs:508:9 [INFO] [stderr] | [INFO] [stderr] 508 | file: &T, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `import_graph` [INFO] [stderr] --> src/heuristics/scoring/raw_scores.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | import_graph: Option<&ImportGraph>, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_graph` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tree` [INFO] [stderr] --> src/language_support/function_extraction.rs:272:9 [INFO] [stderr] | [INFO] [stderr] 272 | tree: &Tree, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tree` [INFO] [stderr] --> src/language_support/function_extraction.rs:305:9 [INFO] [stderr] | [INFO] [stderr] 305 | tree: &Tree, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tree` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `class_count` [INFO] [stderr] --> src/language_support/language_metrics.rs:229:9 [INFO] [stderr] | [INFO] [stderr] 229 | class_count: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 229 | _class_count: usize, [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `MAX_READ_SIZE` [INFO] [stderr] | [INFO] [stderr] 229 - class_count: usize, [INFO] [stderr] 229 + heuristics::template_detection::TemplateDetector::read_file_content::MAX_READ_SIZE: usize, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods `get_complexity_keywords` and `get_nesting_chars` are never used [INFO] [stderr] --> src/complexity.rs:325:8 [INFO] [stderr] | [INFO] [stderr] 158 | impl ComplexityAnalyzer { [INFO] [stderr] | ----------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 325 | fn get_complexity_keywords(&self, language: &str) -> Vec<&'static str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 378 | fn get_nesting_chars(&self, language: &str) -> (Vec, Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `import_builder` is never read [INFO] [stderr] --> src/heuristics/mod.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct HeuristicSystem { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 58 | import_builder: ImportGraphBuilder, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `HeuristicSystem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `is_likely_executable` is never used [INFO] [stderr] --> src/heuristics/scoring/raw_scores.rs:102:4 [INFO] [stderr] | [INFO] [stderr] 102 | fn is_likely_executable(file: &T) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `language` is never read [INFO] [stderr] --> src/language_support/function_extraction.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 54 | pub struct FunctionExtractor { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] 55 | language: AstLanguage, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `extract_parameters` and `extract_parent_classes` are never used [INFO] [stderr] --> src/language_support/function_extraction.rs:459:8 [INFO] [stderr] | [INFO] [stderr] 61 | impl FunctionExtractor { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 459 | fn extract_parameters(&self, params_text: &str, _node: Node) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 481 | fn extract_parent_classes(&self, parents_text: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `scribe-analysis` (lib) generated 19 warnings (run `cargo fix --lib -p scribe-analysis` to apply 9 suggestions) [INFO] [stderr] warning: unused import: `ScoringFeatures` [INFO] [stderr] --> src/heuristics/scoring/final_scoring.rs:150:65 [INFO] [stderr] | [INFO] [stderr] 150 | use crate::heuristics::scoring::types::{RawScoreComponents, ScoringFeatures}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/heuristics/scoring/normalization.rs:143:9 [INFO] [stderr] | [INFO] [stderr] 143 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/heuristics/scoring/raw_scores.rs:127:9 [INFO] [stderr] | [INFO] [stderr] 127 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/heuristics/scoring/mod.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs` [INFO] [stderr] --> src/heuristics/template_detection.rs:673:9 [INFO] [stderr] | [INFO] [stderr] 673 | use std::fs; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `content` is never read [INFO] [stderr] --> src/heuristics/scoring/normalization.rs:151:9 [INFO] [stderr] | [INFO] [stderr] 146 | struct MockFile { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 151 | content: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `content` is never read [INFO] [stderr] --> src/heuristics/scoring/raw_scores.rs:135:9 [INFO] [stderr] | [INFO] [stderr] 130 | struct MockFile { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 135 | content: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_test_file` is never used [INFO] [stderr] --> src/heuristics/template_detection.rs:677:8 [INFO] [stderr] | [INFO] [stderr] 677 | fn create_test_file(content: &str, extension: &str) -> NamedTempFile { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `scribe-analysis` (lib test) generated 27 warnings (19 duplicates) (run `cargo fix --lib -p scribe-analysis --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scribe_analysis-3e12d9f18b915b48) [INFO] [stdout] running 56 tests [INFO] [stdout] test complexity::tests::test_analyzer_creation ... ok [INFO] [stdout] test complexity::tests::test_language_specific_analysis ... ok [INFO] [stdout] test complexity::tests::test_simple_rust_analysis ... ok [INFO] [stdout] test complexity::tests::test_complexity_score ... ok [INFO] [stdout] test complexity::tests::test_metrics_summary ... ok [INFO] [stdout] test complexity::tests::test_threshold_warnings ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_enhanced_scorer_creation ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_enhanced_file_scoring ... ok [INFO] [stdout] test complexity::tests::test_line_analysis ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_adaptive_weights ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_graph_creation ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_matching ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_graph_statistics ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_complexity_vs_simple_code ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_score_breakdown ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_language_detection ... ok [INFO] [stdout] test heuristics::enhanced_scoring::tests::test_repository_characteristics_update ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_centrality_calculator ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_graph_builder ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_path_normalization ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_pagerank_calculation ... ok [INFO] [stdout] test heuristics::scoring::final_scoring::tests::test_final_score_calculation ... ok [INFO] [stdout] test heuristics::scoring::normalization::tests::test_normalization_stats ... ok [INFO] [stdout] test heuristics::scoring::normalization::tests::test_path_score_inversion ... ok [INFO] [stdout] test heuristics::scoring::final_scoring::tests::test_score_explanation ... ok [INFO] [stdout] test complexity::tests::test_complex_code_analysis ... ok [INFO] [stdout] test heuristics::scoring::tests::test_score_explanation ... ok [INFO] [stdout] test heuristics::scoring::tests::test_weight_presets ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_directory_context_detection ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_template_score_boost ... ok [INFO] [stdout] test heuristics::tests::test_document_analysis ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_extension_based_detection ... ok [INFO] [stdout] test heuristics::tests::test_heuristic_system_creation ... ok [INFO] [stdout] test heuristics::tests::test_metrics ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_count ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_detection ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_features ... ok [INFO] [stdout] test heuristics::scoring::raw_scores::tests::test_entrypoint_detection ... ok [INFO] [stdout] test language_support::documentation_analysis::tests::test_python_documentation_analysis ... ok [INFO] [stdout] test heuristics::scoring::raw_scores::tests::test_examples_counting ... ok [INFO] [stdout] test heuristics::scoring::tests::test_basic_scoring ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_tiers ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_stats ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_pattern_counting ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_engine_score_boost ... ok [INFO] [stdout] test language_support::language_metrics::tests::test_python_metrics ... ok [INFO] [stdout] test language_support::language_metrics::tests::test_rust_metrics ... ok [INFO] [stdout] test language_support::function_extraction::tests::test_python_function_extraction ... ok [INFO] [stdout] test language_support::function_extraction::tests::test_javascript_function_extraction ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_extraction ... ok [INFO] [stdout] test language_support::function_extraction::tests::test_python_class_extraction ... ok [INFO] [stdout] test language_support::function_extraction::tests::test_function_extractor_creation ... ok [INFO] [stdout] test language_support::tests::test_supported_languages ... ok [INFO] [stdout] test language_support::tests::test_language_support_creation ... ok [INFO] [stdout] test language_support::tests::test_language_analysis ... ok [INFO] [stdout] test language_support::tests::test_python_function_extraction ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s [INFO] [stdout] [INFO] [stderr] Doc-tests scribe_analysis [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/complexity.rs - complexity (line 17) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c43eae5938a1c8e13f63d1315270bc04facd6373df971d98974c43444b539c31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c43eae5938a1c8e13f63d1315270bc04facd6373df971d98974c43444b539c31", kill_on_drop: false }` [INFO] [stdout] c43eae5938a1c8e13f63d1315270bc04facd6373df971d98974c43444b539c31