[INFO] cloning repository https://github.com/JorgeV92/minisearch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JorgeV92/minisearch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJorgeV92%2Fminisearch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJorgeV92%2Fminisearch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f69d1893f8861b786392bb1ded1a335ed2c66f69 [INFO] checking JorgeV92/minisearch against try#2c4819a380dbddb1f2a0f4405a49fb6ed90983ae for pr-152996 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJorgeV92%2Fminisearch" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JorgeV92/minisearch [INFO] finished tweaking git repo https://github.com/JorgeV92/minisearch [INFO] tweaked toml for git repo https://github.com/JorgeV92/minisearch written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JorgeV92/minisearch on toolchain 2c4819a380dbddb1f2a0f4405a49fb6ed90983ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JorgeV92/minisearch 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" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bcd0b0d0b1f8b5d4159707a60e5f3a1fed23d0be0eaa46537991e8de4ce2c035 [INFO] running `Command { std: "docker" "start" "-a" "bcd0b0d0b1f8b5d4159707a60e5f3a1fed23d0be0eaa46537991e8de4ce2c035", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bcd0b0d0b1f8b5d4159707a60e5f3a1fed23d0be0eaa46537991e8de4ce2c035", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcd0b0d0b1f8b5d4159707a60e5f3a1fed23d0be0eaa46537991e8de4ce2c035", kill_on_drop: false }` [INFO] [stdout] bcd0b0d0b1f8b5d4159707a60e5f3a1fed23d0be0eaa46537991e8de4ce2c035 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52dce49340cd7a4b61c4933f3a358d27d3517efd981d3266ae334f7afdc2aaa2 [INFO] running `Command { std: "docker" "start" "-a" "52dce49340cd7a4b61c4933f3a358d27d3517efd981d3266ae334f7afdc2aaa2", kill_on_drop: false }` [INFO] [stderr] Checking minisearch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `{`, found `,` [INFO] [stdout] --> src/index.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 235 | if !terms,.iter().any(|term| term == required) { [INFO] [stdout] | ^ expected `{` [INFO] [stdout] | [INFO] [stdout] note: the `if` expression is missing a block after this condition [INFO] [stdout] --> src/index.rs:235:20 [INFO] [stdout] | [INFO] [stdout] 235 | if !terms,.iter().any(|term| term == required) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `,` [INFO] [stdout] --> src/index.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 235 | if !terms,.iter().any(|term| term == required) { [INFO] [stdout] | ^ expected `{` [INFO] [stdout] | [INFO] [stdout] note: the `if` expression is missing a block after this condition [INFO] [stdout] --> src/index.rs:235:20 [INFO] [stdout] | [INFO] [stdout] 235 | if !terms,.iter().any(|term| term == required) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/index.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [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: `PhraseQuery` [INFO] [stdout] --> src/index.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::query::{parse_query, ParsedQuery, PhraseQuery}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::storage` [INFO] [stdout] --> src/index.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::storage; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/index.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | 'doc_loop: for (doc_id, mut score) in scores { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/index.rs:231:38 [INFO] [stdout] | [INFO] [stdout] 231 | .collect::>();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::process::parent_id` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::unix::process::parent_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/index.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [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: `PhraseQuery` [INFO] [stdout] --> src/index.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::query::{parse_query, ParsedQuery, PhraseQuery}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::storage` [INFO] [stdout] --> src/index.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::storage; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/index.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | 'doc_loop: for (doc_id, mut score) in scores { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/index.rs:231:38 [INFO] [stdout] | [INFO] [stdout] 231 | .collect::>();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::process::parent_id` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::unix::process::parent_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `recompute_average_length` found for mutable reference `&mut SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | self.recompute_average_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `recompute_average_length` found for mutable reference `&mut SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | self.recompute_average_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/index.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(engine) [INFO] [stdout] | -- ^^^^^^ expected `usize`, found `SearchEngine` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `SearchEngine` due to the type of the argument passed [INFO] [stdout] --> src/index.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(engine) [INFO] [stdout] | ^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2c4819a380dbddb1f2a0f4405a49fb6ed90983ae/library/core/src/result.rs:561:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/index.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(engine) [INFO] [stdout] | -- ^^^^^^ expected `usize`, found `SearchEngine` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `SearchEngine` due to the type of the argument passed [INFO] [stdout] --> src/index.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(engine) [INFO] [stdout] | ^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2c4819a380dbddb1f2a0f4405a49fb6ed90983ae/library/core/src/result.rs:561:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_text_files` in this scope [INFO] [stdout] --> src/index.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | collect_text_files(dir, &mut files)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_text_files` in this scope [INFO] [stdout] --> src/index.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | collect_text_files(dir, &mut files)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bm25_score` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | let score = self.bm25_score(posting.doc_id, posting.term_frequency(), document_frequency); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bm25_score` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:182:34 [INFO] [stdout] | [INFO] [stdout] 182 | let score = self.bm25_score(posting.doc_id, posting.term_frequency(), document_frequency); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `doc_has_phrase` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | if self.doc_has_phrase(doc.id, phrase) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `doc_has_phrase` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | if self.doc_has_phrase(doc.id, phrase) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `satisfies_required_terms` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:214:22 [INFO] [stdout] | [INFO] [stdout] 214 | if !self.satisfies_required_terms(doc_id, &parsed.required_terms) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `satisfies_required_terms` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:214:22 [INFO] [stdout] | [INFO] [stdout] 214 | if !self.satisfies_required_terms(doc_id, &parsed.required_terms) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matches_any_excluded_term` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:217:21 [INFO] [stdout] | [INFO] [stdout] 217 | if self.matches_any_excluded_term(doc_id, &parsed.excluded_terms) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `matches_any_excluded_term` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:217:21 [INFO] [stdout] | [INFO] [stdout] 217 | if self.matches_any_excluded_term(doc_id, &parsed.excluded_terms) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `doc_has_phrase` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:220:77 [INFO] [stdout] | [INFO] [stdout] 220 | if phrase_only_mode && !parsed.phrases.iter().any(|phrase| self.doc_has_phrase(doc_id, phrase)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `doc_has_phrase` found for reference `&SearchEngine` in the current scope [INFO] [stdout] --> src/index.rs:220:77 [INFO] [stdout] | [INFO] [stdout] 220 | if phrase_only_mode && !parsed.phrases.iter().any(|phrase| self.doc_has_phrase(doc_id, phrase)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&SearchEngine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `minisearch` (lib) due to 9 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `minisearch` (lib test) due to 9 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "52dce49340cd7a4b61c4933f3a358d27d3517efd981d3266ae334f7afdc2aaa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52dce49340cd7a4b61c4933f3a358d27d3517efd981d3266ae334f7afdc2aaa2", kill_on_drop: false }` [INFO] [stdout] 52dce49340cd7a4b61c4933f3a358d27d3517efd981d3266ae334f7afdc2aaa2