[INFO] cloning repository https://github.com/sangelxyz/web_optimise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sangelxyz/web_optimise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsangelxyz%2Fweb_optimise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsangelxyz%2Fweb_optimise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d389ec0e5ca55b680b598ff6556c8e6684f01b75 [INFO] checking sangelxyz/web_optimise against master#4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsangelxyz%2Fweb_optimise" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sangelxyz/web_optimise on toolchain 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sangelxyz/web_optimise [INFO] finished tweaking git repo https://github.com/sangelxyz/web_optimise [INFO] tweaked toml for git repo https://github.com/sangelxyz/web_optimise written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sangelxyz/web_optimise 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" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded y4m v0.8.0 [INFO] [stderr] Downloaded derive v1.0.0 [INFO] [stderr] Downloaded v_frame v0.3.4 [INFO] [stderr] Downloaded arg_enum_proc_macro v0.3.2 [INFO] [stderr] Downloaded clap_complete v4.0.7 [INFO] [stderr] Downloaded bitstream-io v1.6.0 [INFO] [stderr] Downloaded interpolate_name v0.2.3 [INFO] [stderr] Downloaded av-metrics v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dcd9630c5af257f018bc07ba1226efbaf3f1dc9b237c6b0e6b29437589d76804 [INFO] running `Command { std: "docker" "start" "-a" "dcd9630c5af257f018bc07ba1226efbaf3f1dc9b237c6b0e6b29437589d76804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcd9630c5af257f018bc07ba1226efbaf3f1dc9b237c6b0e6b29437589d76804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcd9630c5af257f018bc07ba1226efbaf3f1dc9b237c6b0e6b29437589d76804", kill_on_drop: false }` [INFO] [stdout] dcd9630c5af257f018bc07ba1226efbaf3f1dc9b237c6b0e6b29437589d76804 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e03c2808b6313188899cb564df0a054e0ef20fd527b3a23881b76e835149bb37 [INFO] running `Command { std: "docker" "start" "-a" "e03c2808b6313188899cb564df0a054e0ef20fd527b3a23881b76e835149bb37", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling semver v1.0.17 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking simd-adler32 v0.3.5 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling url v2.4.0 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling rust_hawktracer_proc_macro v0.4.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Checking rust_hawktracer_normal_macro v0.4.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking rust_hawktracer v0.7.0 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling darling_core v0.20.1 [INFO] [stderr] Compiling libwebp-sys v0.4.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling nasm-rs v0.2.5 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.2 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking flate2 v1.0.26 [INFO] [stderr] Checking v_frame v0.3.4 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking bitstream-io v1.6.0 [INFO] [stderr] Checking imgref v1.9.4 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking rgb v0.8.36 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Checking fdeflate v0.3.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking loop9 v0.1.3 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking tiff v0.8.1 [INFO] [stderr] Compiling darling_macro v0.20.1 [INFO] [stderr] Compiling darling v0.20.1 [INFO] [stderr] Compiling serde_with_macros v3.0.0 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking png v0.17.9 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking pin-project v1.1.0 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking exr v1.6.4 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking derive v1.0.0 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.19 [INFO] [stderr] Checking webp v0.2.2 [INFO] [stderr] Checking hyper v0.14.26 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_with v3.0.0 [INFO] [stderr] Checking av1-grain v0.2.2 [INFO] [stderr] Checking avif-serialize v0.8.1 [INFO] [stderr] Compiling cargo-lock v8.0.3 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Compiling built v0.5.2 [INFO] [stderr] Compiling rav1e v0.6.6 [INFO] [stderr] Checking ravif v0.11.2 [INFO] [stderr] Checking image v0.24.6 [INFO] [stderr] Checking web_optimise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{DateTime, Utc, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_extension` [INFO] [stdout] --> src/main.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | ... let file_extension = std::path::Path::new(&file); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_extension` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{DateTime, Utc, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Jpg`, `Jpeg`, and `Png` are never constructed [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum ImageType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | Webp, [INFO] [stdout] 25 | Jpg, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Jpeg, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | Png, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_filename` is never used [INFO] [stdout] --> src/main.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn extract_filename(url_string: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | let res = get_img(&client, &img_url.clone()).await; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:210:55 [INFO] [stdout] | [INFO] [stdout] 210 | let parse_url = Url::parse(img_url.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_extension` [INFO] [stdout] --> src/main.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | ... let file_extension = std::path::Path::new(&file); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_extension` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Jpg`, `Jpeg`, and `Png` are never constructed [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum ImageType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | Webp, [INFO] [stdout] 25 | Jpg, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Jpeg, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | Png, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_filename` is never used [INFO] [stdout] --> src/main.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn extract_filename(url_string: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | let res = get_img(&client, &img_url.clone()).await; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:210:55 [INFO] [stdout] | [INFO] [stdout] 210 | let parse_url = Url::parse(img_url.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 45s [INFO] running `Command { std: "docker" "inspect" "e03c2808b6313188899cb564df0a054e0ef20fd527b3a23881b76e835149bb37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03c2808b6313188899cb564df0a054e0ef20fd527b3a23881b76e835149bb37", kill_on_drop: false }` [INFO] [stdout] e03c2808b6313188899cb564df0a054e0ef20fd527b3a23881b76e835149bb37