[INFO] cloning repository https://github.com/Triads-Developer/news-scraping [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Triads-Developer/news-scraping" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriads-Developer%2Fnews-scraping", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriads-Developer%2Fnews-scraping'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f59ec623bb78a9ac4943265c0eacbf88be80da7 [INFO] building Triads-Developer/news-scraping against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriads-Developer%2Fnews-scraping" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Triads-Developer/news-scraping [INFO] finished tweaking git repo https://github.com/Triads-Developer/news-scraping [INFO] tweaked toml for git repo https://github.com/Triads-Developer/news-scraping written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Triads-Developer/news-scraping on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Triads-Developer/news-scraping 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scraper v0.19.0 [INFO] [stderr] Downloaded hyper v1.4.0 [INFO] [stderr] Downloaded syn v2.0.69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac7ced63f9152e0440a7a3ecc372d0e03ff5dbc3895b37eaadf6c77322f2c2d9 [INFO] running `Command { std: "docker" "start" "-a" "ac7ced63f9152e0440a7a3ecc372d0e03ff5dbc3895b37eaadf6c77322f2c2d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac7ced63f9152e0440a7a3ecc372d0e03ff5dbc3895b37eaadf6c77322f2c2d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac7ced63f9152e0440a7a3ecc372d0e03ff5dbc3895b37eaadf6c77322f2c2d9", kill_on_drop: false }` [INFO] [stdout] ac7ced63f9152e0440a7a3ecc372d0e03ff5dbc3895b37eaadf6c77322f2c2d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29fc1052811c92f30ceb1e84fa44070568bd3442bab290307b7126399561ac7c [INFO] running `Command { std: "docker" "start" "-a" "29fc1052811c92f30ceb1e84fa44070568bd3442bab290307b7126399561ac7c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling dtoa v1.0.9 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling dtoa-short v0.3.5 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling servo_arc v0.3.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling cssparser v0.31.2 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling scraper v0.19.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.4.0 [INFO] [stderr] Compiling hyper-util v0.1.6 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.5 [INFO] [stderr] Compiling rust_web_scraper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `base_url` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let base_url: &str = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut binding = &format!("{}.csv", filenames[site_index]).clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut path = std::path::Path::new(binding); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut max_iterations = max_values[site_index]; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut url = &format!("{}", urls[site_index]).clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `num_of_sites` should have an upper case name [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | const num_of_sites: usize = 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 28 - const num_of_sites: usize = 11; [INFO] [stdout] 28 + const NUM_OF_SITES: usize = 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.72s [INFO] running `Command { std: "docker" "inspect" "29fc1052811c92f30ceb1e84fa44070568bd3442bab290307b7126399561ac7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29fc1052811c92f30ceb1e84fa44070568bd3442bab290307b7126399561ac7c", kill_on_drop: false }` [INFO] [stdout] 29fc1052811c92f30ceb1e84fa44070568bd3442bab290307b7126399561ac7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c5efce2305b0cf47ffd2437d580341a6b6ef8a49e82ff377d06ea8ea0bc26f1 [INFO] running `Command { std: "docker" "start" "-a" "2c5efce2305b0cf47ffd2437d580341a6b6ef8a49e82ff377d06ea8ea0bc26f1", kill_on_drop: false }` [INFO] [stderr] Compiling rust_web_scraper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `base_url` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let base_url: &str = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_url` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut binding = &format!("{}.csv", filenames[site_index]).clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut path = std::path::Path::new(binding); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut max_iterations = max_values[site_index]; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut url = &format!("{}", urls[site_index]).clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `num_of_sites` should have an upper case name [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | const num_of_sites: usize = 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 28 - const num_of_sites: usize = 11; [INFO] [stdout] 28 + const NUM_OF_SITES: usize = 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "2c5efce2305b0cf47ffd2437d580341a6b6ef8a49e82ff377d06ea8ea0bc26f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c5efce2305b0cf47ffd2437d580341a6b6ef8a49e82ff377d06ea8ea0bc26f1", kill_on_drop: false }` [INFO] [stdout] 2c5efce2305b0cf47ffd2437d580341a6b6ef8a49e82ff377d06ea8ea0bc26f1