[INFO] cloning repository https://github.com/huyiwen/search-engine-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huyiwen/search-engine-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyiwen%2Fsearch-engine-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyiwen%2Fsearch-engine-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4acea70a9ed44c9eeafba38e8cec6628341cd35c [INFO] checking huyiwen/search-engine-in-rust against try#a75eafceea413a1b40c0e0769db85e08ec17160b for pr-133925 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyiwen%2Fsearch-engine-in-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huyiwen/search-engine-in-rust on toolchain a75eafceea413a1b40c0e0769db85e08ec17160b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huyiwen/search-engine-in-rust [INFO] finished tweaking git repo https://github.com/huyiwen/search-engine-in-rust [INFO] tweaked toml for git repo https://github.com/huyiwen/search-engine-in-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/huyiwen/search-engine-in-rust 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" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking huyiwen/search-engine-in-rust against try#a75eafceea413a1b40c0e0769db85e08ec17160b for pr-133925 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyiwen%2Fsearch-engine-in-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huyiwen/search-engine-in-rust on toolchain a75eafceea413a1b40c0e0769db85e08ec17160b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huyiwen/search-engine-in-rust [INFO] finished tweaking git repo https://github.com/huyiwen/search-engine-in-rust [INFO] tweaked toml for git repo https://github.com/huyiwen/search-engine-in-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/huyiwen/search-engine-in-rust 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" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simple-pagerank v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a1dc4c41395d2e12b1c6a4dae4e46ff8b0e1a7c2aa0f14b29ada5f615e3cebb [INFO] running `Command { std: "docker" "start" "-a" "7a1dc4c41395d2e12b1c6a4dae4e46ff8b0e1a7c2aa0f14b29ada5f615e3cebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a1dc4c41395d2e12b1c6a4dae4e46ff8b0e1a7c2aa0f14b29ada5f615e3cebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a1dc4c41395d2e12b1c6a4dae4e46ff8b0e1a7c2aa0f14b29ada5f615e3cebb", kill_on_drop: false }` [INFO] [stdout] 7a1dc4c41395d2e12b1c6a4dae4e46ff8b0e1a7c2aa0f14b29ada5f615e3cebb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 014ff1385c67ecfc9512e6964f781d48cb802c3a89056d4242a2557668ac0b82 [INFO] running `Command { std: "docker" "start" "-a" "014ff1385c67ecfc9512e6964f781d48cb802c3a89056d4242a2557668ac0b82", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling portable-atomic v1.4.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking regex-syntax v0.8.1 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking simple-pagerank v0.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Checking indicatif v0.17.7 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking regex-automata v0.4.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking regex v1.10.0 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking search-engine-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::os` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `search_engine_in_rust` [INFO] [stdout] --> src/main.rs:214:2 [INFO] [stdout] | [INFO] [stdout] 214 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CONCURRENT` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const MAX_CONCURRENT: usize = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REQUEST_INTERVAL` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const REQUEST_INTERVAL: u64 = 100; // ms [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEADERS_LIST` is never used [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const HEADERS_LIST: [&'static str; 10] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPHA` is never used [INFO] [stdout] --> src/main.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | const ALPHA: f64 = 0.1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPSILON` is never used [INFO] [stdout] --> src/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const EPSILON: f64 = 0.000001; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_ITERATIONS` is never used [INFO] [stdout] --> src/main.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | const MAX_ITERATIONS: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `URL` is never constructed [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct URL { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl URL { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 48 | fn new(url: T, id: U, crawled: bool) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pagerank` is never used [INFO] [stdout] --> src/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn pagerank() -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crawl` is never used [INFO] [stdout] --> src/main.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | async fn crawl() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_pagerank` is never used [INFO] [stdout] --> src/main.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn save_pagerank(nodes: Vec<(&usize, f64)>, links: Vec<&str>) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_urls` is never used [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn read_urls() -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download` is never used [INFO] [stdout] --> src/main.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | async fn download( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_random_header` is never used [INFO] [stdout] --> src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn get_random_header() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | web_graph.set_damping_factor(((1f64 - ALPHA) * 100f64).floor() as u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = web_graph.set_damping_factor(((1f64 - ALPHA) * 100f64).floor() as u8); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `search-engine-in-rust` (bin "search-engine-in-rust") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "014ff1385c67ecfc9512e6964f781d48cb802c3a89056d4242a2557668ac0b82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "014ff1385c67ecfc9512e6964f781d48cb802c3a89056d4242a2557668ac0b82", kill_on_drop: false }` [INFO] [stdout] 014ff1385c67ecfc9512e6964f781d48cb802c3a89056d4242a2557668ac0b82