[INFO] fetching crate scribe-analysis 0.5.1... [INFO] testing scribe-analysis-0.5.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate scribe-analysis 0.5.1 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate scribe-analysis 0.5.1 [INFO] finished tweaking crates.io crate scribe-analysis 0.5.1 [INFO] tweaked toml for crates.io crate scribe-analysis 0.5.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scribe-analysis 0.5.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate scribe-analysis 0.5.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tree-sitter-html v0.19.0 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.101 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.101 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.101 [INFO] [stderr] Downloaded js-sys v0.3.78 [INFO] [stderr] Downloaded scribe-core v0.5.1 [INFO] [stderr] Downloaded serde_derive v1.0.224 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.101 [INFO] [stderr] Downloaded serde_core v1.0.224 [INFO] [stderr] Downloaded cc v1.0.106 [INFO] [stderr] Downloaded indexmap v2.11.1 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [INFO] [stderr] Downloaded tree-sitter-go v0.20.0 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.4 [INFO] [stderr] Downloaded wasm-bindgen v0.2.101 [INFO] [stderr] Downloaded tree-sitter-rust v0.20.4 [INFO] [stderr] Downloaded tree-sitter-python v0.20.4 [INFO] [stderr] Downloaded wasi v0.14.6+wasi-0.2.4 [INFO] [stderr] Downloaded web-sys v0.3.78 [INFO] [stderr] Downloaded tree-sitter-typescript v0.20.5 [INFO] [stderr] Downloaded tiktoken-rs v0.7.0 [INFO] [stderr] Downloaded serde v1.0.224 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d61b77d42e0f8384889499204490d37d432bcd2ece2307a72cb928106c80284 [INFO] running `Command { std: "docker" "start" "-a" "3d61b77d42e0f8384889499204490d37d432bcd2ece2307a72cb928106c80284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d61b77d42e0f8384889499204490d37d432bcd2ece2307a72cb928106c80284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d61b77d42e0f8384889499204490d37d432bcd2ece2307a72cb928106c80284", kill_on_drop: false }` [INFO] [stdout] 3d61b77d42e0f8384889499204490d37d432bcd2ece2307a72cb928106c80284 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4cc7eb7ee5b7bd5062f321db35749dfaae8fc5d3470a953e7895126a85310259 [INFO] running `Command { std: "docker" "start" "-a" "4cc7eb7ee5b7bd5062f321db35749dfaae8fc5d3470a953e7895126a85310259", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde_core v1.0.224 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde v1.0.224 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-rust v0.20.4 [INFO] [stderr] Compiling tree-sitter-html v0.19.0 [INFO] [stderr] Compiling tree-sitter-go v0.20.0 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.5 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.4 [INFO] [stderr] Compiling tree-sitter-python v0.20.4 [INFO] [stderr] Compiling tree_magic_mini v3.2.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.224 [INFO] [stderr] Compiling async-trait v0.1.89 [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 tokio v1.47.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tiktoken-rs v0.7.0 [INFO] [stderr] Compiling thiserror v1.0.69 [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.1 [INFO] [stderr] Compiling scribe-analysis v0.5.1 (/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: `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:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::collections::HashMap; [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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_count` [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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 37.38s [INFO] running `Command { std: "docker" "inspect" "4cc7eb7ee5b7bd5062f321db35749dfaae8fc5d3470a953e7895126a85310259", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cc7eb7ee5b7bd5062f321db35749dfaae8fc5d3470a953e7895126a85310259", kill_on_drop: false }` [INFO] [stdout] 4cc7eb7ee5b7bd5062f321db35749dfaae8fc5d3470a953e7895126a85310259 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e369bd1f66ee262d8c8d44f28f474640e5eda7a39cbeb020f3acea9cde33e59 [INFO] running `Command { std: "docker" "start" "-a" "4e369bd1f66ee262d8c8d44f28f474640e5eda7a39cbeb020f3acea9cde33e59", 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 rustix v1.1.2 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling scribe-core v0.5.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling scribe-analysis v0.5.1 (/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: `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:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::collections::HashMap; [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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_count` [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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: `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:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | 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:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | 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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/heuristics/scoring/normalization.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 193 | struct MockFile { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 198 | content: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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 18.83s [INFO] running `Command { std: "docker" "inspect" "4e369bd1f66ee262d8c8d44f28f474640e5eda7a39cbeb020f3acea9cde33e59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e369bd1f66ee262d8c8d44f28f474640e5eda7a39cbeb020f3acea9cde33e59", kill_on_drop: false }` [INFO] [stdout] 4e369bd1f66ee262d8c8d44f28f474640e5eda7a39cbeb020f3acea9cde33e59 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 41344a42f586ec1986e5e94fd69c90310735b143daad14d1be3ad5b156445af4 [INFO] running `Command { std: "docker" "start" "-a" "41344a42f586ec1986e5e94fd69c90310735b143daad14d1be3ad5b156445af4", 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: `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:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use std::collections::HashMap; [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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_count` [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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 9 warnings (run `cargo fix --lib -p scribe-analysis` to apply 7 suggestions) [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/heuristics/scoring/normalization.rs:190:9 [INFO] [stderr] | [INFO] [stderr] 190 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/heuristics/scoring/mod.rs:191:9 [INFO] [stderr] | [INFO] [stderr] 191 | 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:198:9 [INFO] [stderr] | [INFO] [stderr] 193 | struct MockFile { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 198 | content: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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: 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: `scribe-analysis` (lib test) generated 14 warnings (8 duplicates) (run `cargo fix --lib -p scribe-analysis --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scribe_analysis-3dcb9d30f460cf5f) [INFO] [stdout] [INFO] [stdout] running 39 tests [INFO] [stdout] test heuristics::import_analysis::tests::test_centrality_calculator ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_graph_statistics ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_graph_creation ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_pagerank_calculation ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_graph_builder ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_matching ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_path_normalization ... ok [INFO] [stdout] test heuristics::import_analysis::tests::test_import_extraction ... 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::final_scoring::tests::test_score_explanation ... ok [INFO] [stdout] test heuristics::scoring::normalization::tests::test_path_score_inversion ... ok [INFO] [stdout] test heuristics::scoring::tests::test_basic_scoring ... 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_engine_score_boost ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_extension_based_detection ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_pattern_counting ... ok [INFO] [stdout] test heuristics::tests::test_document_analysis ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_count ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_features ... ok [INFO] [stdout] test heuristics::tests::test_heuristic_system_creation ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_detection ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_stats ... ok [INFO] [stdout] test heuristics::tests::test_metrics ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_directory_context_detection ... ok [INFO] [stdout] test language_support::documentation_analysis::tests::test_python_documentation_analysis ... ok [INFO] [stdout] test language_support::ast_language::tests::test_language_tiers ... ok [INFO] [stdout] test language_support::language_metrics::tests::test_rust_metrics ... ok [INFO] [stdout] test language_support::language_metrics::tests::test_python_metrics ... ok [INFO] [stdout] test heuristics::template_detection::tests::test_template_score_boost ... 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 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_language_analysis ... ok [INFO] [stdout] test language_support::tests::test_language_support_creation ... ok [INFO] [stdout] test language_support::tests::test_supported_languages ... ok [INFO] [stdout] test language_support::tests::test_python_function_extraction ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 39 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s [INFO] [stdout] [INFO] [stderr] Doc-tests scribe_analysis [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" "41344a42f586ec1986e5e94fd69c90310735b143daad14d1be3ad5b156445af4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41344a42f586ec1986e5e94fd69c90310735b143daad14d1be3ad5b156445af4", kill_on_drop: false }` [INFO] [stdout] 41344a42f586ec1986e5e94fd69c90310735b143daad14d1be3ad5b156445af4