[INFO] cloning repository https://github.com/egely1337/proxyscrape-api-checker-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/egely1337/proxyscrape-api-checker-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegely1337%2Fproxyscrape-api-checker-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegely1337%2Fproxyscrape-api-checker-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fce68992aecc3bfcaf4cf88569d82f6193ca140f [INFO] testing egely1337/proxyscrape-api-checker-rust against 1.100.0-beta.1 for beta-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegely1337%2Fproxyscrape-api-checker-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/egely1337/proxyscrape-api-checker-rust [INFO] finished tweaking git repo https://github.com/egely1337/proxyscrape-api-checker-rust [INFO] tweaked toml for git repo https://github.com/egely1337/proxyscrape-api-checker-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/egely1337/proxyscrape-api-checker-rust on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/egely1337/proxyscrape-api-checker-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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de [INFO] running `Command { std: "docker" "start" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.14 [INFO] [stderr] Compiling proxyscrape-checker-written-by-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fs, fmt::{format}, time::Duration, thread, io::Write}; [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 imports: `Response` and `blocking::Client` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use reqwest::{Response, blocking::Client}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] 27 + Err(e) => return unsafe {success = success + 1} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut body = reqwest::blocking::get(proxyscrape_api).unwrap().text().unwrap(); [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:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut data: &str = &*body; [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:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut list: Vec<&str> = data.split("\r\n").collect(); [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:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut request = match request { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [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:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut i = proxies.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let thread = thread::spawn(move || try_request(&i)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `proxyscrape_api` should have an upper case name [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=al... [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] 7 - const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stdout] 7 + const PROXYSCRAPE_API: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `httpbin_api` should have an upper case name [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 8 - const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stdout] 8 + const HTTPBIN_API: &str = "https://httpbin.org/ip"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `success` should have an upper case name [INFO] [stdout] --> src/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | static mut success: u32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 9 - static mut success: u32 = 0; [INFO] [stdout] 9 + static mut SUCCESS: u32 = 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `success_list` should have an upper case name [INFO] [stdout] --> src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | static mut success_list: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static mut success_list: Vec = Vec::new(); [INFO] [stdout] 10 + static mut SUCCESS_LIST: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `finalList` should have a snake case name [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut finalList: Vec = list.iter().map(|&s|s.into()).collect(); finalList.pop(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `final_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | unsafe {success_list.push(address.to_string())}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | write!(fp, "{}\n", i); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = write!(fp, "{}\n", i); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | write_addresses(&success_list); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 59 | write_addresses(&raw const success_list); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.29s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.45 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proxyscrape-checker-written-by-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fs, fmt::{format}, time::Duration, thread, io::Write}; [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 imports: `Response` and `blocking::Client` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use reqwest::{Response, blocking::Client}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] 27 + Err(e) => return unsafe {success = success + 1} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut body = reqwest::blocking::get(proxyscrape_api).unwrap().text().unwrap(); [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:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut data: &str = &*body; [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:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut list: Vec<&str> = data.split("\r\n").collect(); [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:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut request = match request { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [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:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut i = proxies.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let thread = thread::spawn(move || try_request(&i)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `proxyscrape_api` should have an upper case name [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=al... [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] 7 - const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stdout] 7 + const PROXYSCRAPE_API: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `httpbin_api` should have an upper case name [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 8 - const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stdout] 8 + const HTTPBIN_API: &str = "https://httpbin.org/ip"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `success` should have an upper case name [INFO] [stdout] --> src/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | static mut success: u32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 9 - static mut success: u32 = 0; [INFO] [stdout] 9 + static mut SUCCESS: u32 = 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `success_list` should have an upper case name [INFO] [stdout] --> src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | static mut success_list: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 10 - static mut success_list: Vec = Vec::new(); [INFO] [stdout] 10 + static mut SUCCESS_LIST: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `finalList` should have a snake case name [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut finalList: Vec = list.iter().map(|&s|s.into()).collect(); finalList.pop(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `final_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | unsafe {success_list.push(address.to_string())}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | write!(fp, "{}\n", i); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = write!(fp, "{}\n", i); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | write_addresses(&success_list); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 59 | write_addresses(&raw const success_list); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.45 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `format` [INFO] [stderr] --> src/main.rs:3:21 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{fs, fmt::{format}, time::Duration, thread, io::Write}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Response` and `blocking::Client` [INFO] [stderr] --> src/main.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | use reqwest::{Response, blocking::Client}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::sleep` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use tokio::time::sleep; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `return` value [INFO] [stderr] --> src/main.rs:27:26 [INFO] [stderr] | [INFO] [stderr] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 27 - Err(e) => return (unsafe {success = success + 1}) [INFO] [stderr] 27 + Err(e) => return unsafe {success = success + 1} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let mut body = reqwest::blocking::get(proxyscrape_api).unwrap().text().unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | let mut data: &str = &*body; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | let mut list: Vec<&str> = data.split("\r\n").collect(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | let mut request = match request { [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/main.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | Err(e) => return (unsafe {success = success + 1}) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let mut i = proxies.len(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread` [INFO] [stderr] --> src/main.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | let thread = thread::spawn(move || try_request(&i)); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stderr] [INFO] [stderr] warning: constant `proxyscrape_api` should have an upper case name [INFO] [stderr] --> src/main.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=al... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 7 - const proxyscrape_api: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stderr] 7 + const PROXYSCRAPE_API: &str = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=https&timeout=10000&country=all&ssl=all&anonymity=all"; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: constant `httpbin_api` should have an upper case name [INFO] [stderr] --> src/main.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 8 - const httpbin_api: &str = "https://httpbin.org/ip"; [INFO] [stderr] 8 + const HTTPBIN_API: &str = "https://httpbin.org/ip"; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: static variable `success` should have an upper case name [INFO] [stderr] --> src/main.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | static mut success: u32 = 0; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 9 - static mut success: u32 = 0; [INFO] [stderr] 9 + static mut SUCCESS: u32 = 0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: static variable `success_list` should have an upper case name [INFO] [stderr] --> src/main.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | static mut success_list: Vec = Vec::new(); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 10 - static mut success_list: Vec = Vec::new(); [INFO] [stderr] 10 + static mut SUCCESS_LIST: Vec = Vec::new(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable `finalList` should have a snake case name [INFO] [stderr] --> src/main.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | let mut finalList: Vec = list.iter().map(|&s|s.into()).collect(); finalList.pop(); [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `final_list` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/main.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | unsafe {success_list.push(address.to_string())}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | write!(fp, "{}\n", i); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 43 | let _ = write!(fp, "{}\n", i); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/main.rs:59:25 [INFO] [stderr] | [INFO] [stderr] 59 | write_addresses(&success_list); [INFO] [stderr] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 59 | write_addresses(&raw const success_list); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `proxyscrape-checker-written-by-rust` (bin "proxyscrape-checker-written-by-rust" test) generated 19 warnings (run `cargo fix --bin "proxyscrape-checker-written-by-rust" -p proxyscrape-checker-written-by-rust --tests` to apply 15 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.45 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/proxyscrape-checker-written-by-rust/db8b98da11c5aeba/out/proxyscrape_checker_written_by_rust-db8b98da11c5aeba) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de", kill_on_drop: false }` [INFO] [stdout] d1679b489a9b365455622ebd802c5ce0405cccef9a8060d7fc0b30d1851415de