[INFO] cloning repository https://github.com/svenslaggare/searchengine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/svenslaggare/searchengine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fsearchengine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fsearchengine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a2961a9fa9400ffd4e733a2cc33db24ecc0421ae [INFO] checking svenslaggare/searchengine against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fsearchengine" "/workspace/builds/worker-105/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-105/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/svenslaggare/searchengine on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/svenslaggare/searchengine [INFO] finished tweaking git repo https://github.com/svenslaggare/searchengine [INFO] tweaked toml for git repo https://github.com/svenslaggare/searchengine written to /workspace/builds/worker-105/source/Cargo.toml [INFO] crate git repo https://github.com/svenslaggare/searchengine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f12ead723b75c306a32b2543ace2c672f661162515efcbb64248822a59a6a053 [INFO] running `Command { std: "docker" "start" "-a" "f12ead723b75c306a32b2543ace2c672f661162515efcbb64248822a59a6a053", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f12ead723b75c306a32b2543ace2c672f661162515efcbb64248822a59a6a053", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f12ead723b75c306a32b2543ace2c672f661162515efcbb64248822a59a6a053", kill_on_drop: false }` [INFO] [stdout] f12ead723b75c306a32b2543ace2c672f661162515efcbb64248822a59a6a053 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f26960a2177902aad3e4ab5691722f8deea97057b715d404835f3a29bf768085 [INFO] running `Command { std: "docker" "start" "-a" "f26960a2177902aad3e4ab5691722f8deea97057b715d404835f3a29bf768085", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] syn v1.0.17 (as host dependency): visit [INFO] [stderr] tokio v0.2.18: winapi [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking arc-swap v0.4.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking smallvec v1.3.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling openssl-sys v0.9.55 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.3.7 [INFO] [stderr] Checking crossbeam v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking serde_json v1.0.51 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling pin-project-internal v0.4.9 [INFO] [stderr] Checking tokio v0.2.18 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking pin-project v0.4.9 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.0 [INFO] [stderr] Checking h2 v0.2.4 [INFO] [stderr] Checking hyper v0.13.5 [INFO] [stderr] Checking hyper-tls v0.4.1 [INFO] [stderr] Checking reqwest v0.10.4 [INFO] [stderr] Checking searchengine v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/indexer.rs (4 fixes) [INFO] [stderr] Fixed src/content_extractor.rs (1 fix) [INFO] [stderr] Fixed src/ranker.rs (2 fixes) [INFO] [stderr] Fixed src/block_index.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/searcher.rs (1 fix) [INFO] [stderr] Fixed src/crawler.rs (1 fix) [INFO] [stderr] Fixed src/tokenizer.rs (1 fix) [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stderr] Fixed src/document.rs (2 fixes) [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/indexer.rs:103:57 [INFO] [stdout] | [INFO] [stdout] 103 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/indexer.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/indexer.rs:129:57 [INFO] [stdout] | [INFO] [stdout] 129 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/indexer.rs:142:57 [INFO] [stdout] | [INFO] [stdout] 142 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/indexer.rs:162:57 [INFO] [stdout] | [INFO] [stdout] 162 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_index` in this scope [INFO] [stdout] --> src/searcher.rs:78:36 [INFO] [stdout] | [INFO] [stdout] 78 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::indexer::create_test_index; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/searcher.rs:78:57 [INFO] [stdout] | [INFO] [stdout] 78 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 79 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 80 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 81 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_index` in this scope [INFO] [stdout] --> src/searcher.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::indexer::create_test_index; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/searcher.rs:92:57 [INFO] [stdout] | [INFO] [stdout] 92 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 93 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 94 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 94 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 95 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_index` in this scope [INFO] [stdout] --> src/searcher.rs:105:36 [INFO] [stdout] | [INFO] [stdout] 105 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::indexer::create_test_index; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/searcher.rs:105:57 [INFO] [stdout] | [INFO] [stdout] 105 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 106 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 107 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:108:26 [INFO] [stdout] | [INFO] [stdout] 108 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 108 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_index` in this scope [INFO] [stdout] --> src/searcher.rs:120:36 [INFO] [stdout] | [INFO] [stdout] 120 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::indexer::create_test_index; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/searcher.rs:120:57 [INFO] [stdout] | [INFO] [stdout] 120 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 121 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 122 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 122 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 123 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_index` in this scope [INFO] [stdout] --> src/searcher.rs:133:36 [INFO] [stdout] | [INFO] [stdout] 133 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::indexer::create_test_index; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_test_document_storage` in this scope [INFO] [stdout] --> src/searcher.rs:133:57 [INFO] [stdout] | [INFO] [stdout] 133 | let mut indexer = Indexer::new(create_test_index(), create_test_document_storage()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use crate::document::create_test_document_storage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:134:26 [INFO] [stdout] | [INFO] [stdout] 134 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 134 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 135 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:136:26 [INFO] [stdout] | [INFO] [stdout] 136 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 136 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | indexer.add_document(Document::new("".to_owned(), vec!["D".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 | indexer.add_document(DocumentId::new("".to_owned(), vec!["D".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:138:26 [INFO] [stdout] | [INFO] [stdout] 138 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 138 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | indexer.add_document(Document::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 139 | indexer.add_document(DocumentId::new("".to_owned(), vec!["A".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/searcher.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | indexer.add_document(Document::new("".to_owned(), vec!["D".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/term.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub type DocumentId = u64; [INFO] [stdout] | -------------------------- similarly named type alias `DocumentId` defined here [INFO] [stdout] | [INFO] [stdout] help: a type alias with a similar name exists [INFO] [stdout] | [INFO] [stdout] 140 | indexer.add_document(DocumentId::new("".to_owned(), vec!["D".to_owned(), "B".to_owned(), "C".to_owned()])); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/indexer.rs (1 fix) [INFO] [stderr] Fixed src/searcher.rs (2 fixes) [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/crawler.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::{FutureExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/content_extractor.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `searchengine` due to 35 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/crawler.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::{FutureExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/content_extractor.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/crawler.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_save_path` [INFO] [stdout] --> src/crawler.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_save_path(parsed_url: &Url) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `crawled_links` [INFO] [stdout] --> src/crawler.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | crawled_links: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/term.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter` [INFO] [stdout] --> src/term.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `filter` [INFO] [stdout] --> src/term.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn filter(&mut self, valid_document_ids: &HashSet) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_existing` [INFO] [stdout] --> src/document.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn from_existing(filename: &str) -> DocumentFileStorage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_tempfile_name` [INFO] [stdout] --> src/document.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_tempfile_name() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_document_storage` [INFO] [stdout] --> src/document.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn create_test_document_storage() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/index.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new() -> HashMapIndex { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_from_index` [INFO] [stdout] --> src/indexer.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_from_index(&self, term: &Term) -> IndexResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `document_storage` [INFO] [stdout] --> src/indexer.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn document_storage(&self) -> &Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_stats` [INFO] [stdout] --> src/indexer.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn print_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_index` [INFO] [stdout] --> src/indexer.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn create_test_index() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GenericWriteFail` [INFO] [stdout] --> src/block_index.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | GenericWriteFail { message: String, }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `use_existing` [INFO] [stdout] --> src/block_index.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn use_existing(index_folder: Option) -> BlockIndexConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `testing` [INFO] [stdout] --> src/block_index.rs:459:8 [INFO] [stdout] | [INFO] [stdout] 459 | fn testing() -> BlockIndexConfig { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Searcher` [INFO] [stdout] --> src/searcher.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Searcher { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/searcher.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Searcher { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection_search_documents_internal_two` [INFO] [stdout] --> src/searcher.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn intersection_search_documents_internal_two(&self, first: &Vec, second: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection_search_documents_internal` [INFO] [stdout] --> src/searcher.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn intersection_search_documents_internal(&self, query_term_documents: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection_search_documents` [INFO] [stdout] --> src/searcher.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn intersection_search_documents(&self, indexer: &Indexer, query: Tokens) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `union_search` [INFO] [stdout] --> src/searcher.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn union_search(&self, indexer: &Indexer, query: Tokens) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection_search` [INFO] [stdout] --> src/searcher.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn intersection_search(&self, indexer: &Indexer, query: Tokens) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ranker` [INFO] [stdout] --> src/ranker.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Ranker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ranker.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new() -> Ranker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_tf_idf` [INFO] [stdout] --> src/ranker.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_tf_idf(num_documents: f64, df: f64, tf: f64, length: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `order_documents` [INFO] [stdout] --> src/ranker.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn order_documents(document_scores: HashMap) -> Vec<(DocumentId, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rank` [INFO] [stdout] --> src/ranker.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn rank(&self, indexer: &Indexer, query_term_documents: Vec) -> Vec<(DocumentId, f64)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `visit_dirs` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn visit_dirs(dir: &Path, cb: &mut F) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main_index_from_files` [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn main_index_from_files() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main_search` [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn main_search() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f26960a2177902aad3e4ab5691722f8deea97057b715d404835f3a29bf768085", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f26960a2177902aad3e4ab5691722f8deea97057b715d404835f3a29bf768085", kill_on_drop: false }` [INFO] [stdout] f26960a2177902aad3e4ab5691722f8deea97057b715d404835f3a29bf768085