[INFO] cloning repository https://github.com/19h/gx [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/19h/gx" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F19h%2Fgx", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F19h%2Fgx'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd6833813a286b3dac7c97386d82fe752713d9f2 [INFO] testing 19h/gx against master#61223975d46f794466efa832bc7562b9707ecc46+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F19h%2Fgx" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/19h/gx on toolchain 61223975d46f794466efa832bc7562b9707ecc46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/19h/gx [INFO] finished tweaking git repo https://github.com/19h/gx [INFO] tweaked toml for git repo https://github.com/19h/gx written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/19h/gx 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" "+61223975d46f794466efa832bc7562b9707ecc46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded actix-web-codegen v0.5.0-beta.3 [INFO] [stderr] Downloaded askama v0.10.5 [INFO] [stderr] Downloaded askama_shared v0.11.1 [INFO] [stderr] Downloaded askama_derive v0.10.5 [INFO] [stderr] Downloaded actix-macros v0.2.1 [INFO] [stderr] Downloaded http-range v0.1.4 [INFO] [stderr] Downloaded zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Downloaded askama_escape v0.10.1 [INFO] [stderr] Downloaded sha-1 v0.9.7 [INFO] [stderr] Downloaded zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Downloaded actix-files v0.6.0-beta.6 [INFO] [stderr] Downloaded kamadak-exif v0.5.4 [INFO] [stderr] Downloaded actix-web v4.0.0-beta.8 [INFO] [stderr] Downloaded actix-http v3.0.0-beta.8 [INFO] [stderr] Downloaded tokio v1.9.0 [INFO] [stderr] Downloaded zstd-sys v1.5.0+zstd.1.4.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 063aef79b46f1fe272f043568a609a16b878b3d32751458d93f1399aa22d6256 [INFO] running `Command { std: "docker" "start" "-a" "063aef79b46f1fe272f043568a609a16b878b3d32751458d93f1399aa22d6256", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "063aef79b46f1fe272f043568a609a16b878b3d32751458d93f1399aa22d6256", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "063aef79b46f1fe272f043568a609a16b878b3d32751458d93f1399aa22d6256", kill_on_drop: false }` [INFO] [stdout] 063aef79b46f1fe272f043568a609a16b878b3d32751458d93f1399aa22d6256 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3f5a0bb8efcbb019631ab5e620c2fa86a4a0eef87d92bc38ea2c0e9f604c61d4 [INFO] running `Command { std: "docker" "start" "-a" "3f5a0bb8efcbb019631ab5e620c2fa86a4a0eef87d92bc38ea2c0e9f604c61d4", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling local-waker v0.1.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling jobserver v0.1.22 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling actix-service v2.0.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling actix-codec v0.4.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling askama_escape v0.10.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling http-range v0.1.4 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling bytemuck v1.7.0 [INFO] [stderr] Compiling mutate_once v0.1.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling kamadak-exif v0.5.4 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-macros v0.2.1 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling actix-rt v2.2.0 [INFO] [stderr] Compiling actix-server v2.0.0-beta.5 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling actix-tls v3.0.0-beta.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-http v3.0.0-beta.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling askama_shared v0.11.1 [INFO] [stderr] Compiling actix-web v4.0.0-beta.8 [INFO] [stderr] Compiling actix-files v0.6.0-beta.6 [INFO] [stderr] Compiling askama_derive v0.10.5 [INFO] [stderr] Compiling askama v0.10.5 [INFO] [stderr] Compiling gx v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, web, App, HttpServer, Responder, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `mem` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs, mem, io, cmp}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Error`, `Read` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Read, BufReader, Error}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `exif` is imported redundantly [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use exif; [INFO] [stdout] | ^^^^ the item `exif` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/fsutil.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MediaItem` [INFO] [stdout] --> src/fsutil.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{MediaFolders, MediaMap, MediaItem, MediaItems}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `GenericImageView` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web::Data` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use actix_web::web::Data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | info: web::Path<()>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `actix_web::App::::data`: Use `.app_data(Data::new(val))` instead. [INFO] [stdout] --> src/main.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | .data(db.clone()) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `media_folders` [INFO] [stdout] --> src/fsutil.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_media_folders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `folder_path` [INFO] [stdout] --> src/fsutil.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | .for_each(|(folder_path, paths)| [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | static ref matcher: Regex = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | static ref matcher: Regex = Regex::new(r"\.(?:jpe?g|png|gif|bmp)$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | / NaiveDate [INFO] [stdout] 68 | | ::parse_from_str(name, "%Y-%m-%d") [INFO] [stdout] 69 | | .map(|parsed_date| [INFO] [stdout] 70 | | media_folders [INFO] [stdout] ... | [INFO] [stdout] 76 | | ), [INFO] [stdout] 77 | | ); [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] 67 | let _ = NaiveDate [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | file.read(&mut start_buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = file.read(&mut start_buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / std::fs::File [INFO] [stdout] 159 | | ::open(image_path) [INFO] [stdout] 160 | | .map(|file| { [INFO] [stdout] 161 | | exif::Reader [INFO] [stdout] ... | [INFO] [stdout] 176 | | ); [INFO] [stdout] 177 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = std::fs::File [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | / exif::Reader [INFO] [stdout] 162 | | ::new() [INFO] [stdout] 163 | | .read_from_container( [INFO] [stdout] 164 | | &mut BufReader::new(&file), [INFO] [stdout] ... | [INFO] [stdout] 175 | | ), [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = exif::Reader [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/imgutil.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fs::create_dir_all( [INFO] [stdout] 29 | | &cache_path, [INFO] [stdout] 30 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = fs::create_dir_all( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized] target(s) in 1m 40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [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" "3f5a0bb8efcbb019631ab5e620c2fa86a4a0eef87d92bc38ea2c0e9f604c61d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f5a0bb8efcbb019631ab5e620c2fa86a4a0eef87d92bc38ea2c0e9f604c61d4", kill_on_drop: false }` [INFO] [stdout] 3f5a0bb8efcbb019631ab5e620c2fa86a4a0eef87d92bc38ea2c0e9f604c61d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0bd8cb0bee3cb877ff2503dc68e867d04c444abf9ce99efa22bbce28250648c [INFO] running `Command { std: "docker" "start" "-a" "d0bd8cb0bee3cb877ff2503dc68e867d04c444abf9ce99efa22bbce28250648c", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling local-waker v0.1.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling actix-service v2.0.0 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling askama_escape v0.10.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling actix-rt v2.2.0 [INFO] [stderr] Compiling actix-codec v0.4.0 [INFO] [stderr] Compiling actix-tls v3.0.0-beta.5 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling actix-server v2.0.0-beta.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling http-range v0.1.4 [INFO] [stderr] Compiling actix-http v3.0.0-beta.8 [INFO] [stderr] error: could not compile `syn` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/61223975d46f794466efa832bc7562b9707ecc46/bin/rustc --crate-name syn --edition=2018 /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.74/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=6 -C debug-assertions=off -C overflow-checks=on --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit"' --cfg 'feature="visit-mut"' -C metadata=45336264bc63de43 -C extra-filename=-45336264bc63de43 --out-dir /opt/rustwide/target/debug/deps -C strip=debuginfo -L dependency=/opt/rustwide/target/debug/deps --extern proc_macro2=/opt/rustwide/target/debug/deps/libproc_macro2-dad42aa7d5fbf32e.rmeta --extern quote=/opt/rustwide/target/debug/deps/libquote-2df1bb4496a9c587.rmeta --extern unicode_xid=/opt/rustwide/target/debug/deps/libunicode_xid-077d1d97e3a503ad.rmeta --cap-lints allow --cap-lints=forbid -Copt-level=3` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "d0bd8cb0bee3cb877ff2503dc68e867d04c444abf9ce99efa22bbce28250648c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0bd8cb0bee3cb877ff2503dc68e867d04c444abf9ce99efa22bbce28250648c", kill_on_drop: false }` [INFO] [stdout] d0bd8cb0bee3cb877ff2503dc68e867d04c444abf9ce99efa22bbce28250648c [INFO] testing 19h/gx against try#d073071d77ce0f93b4fd8cc567a1e2b9e1b22126+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F19h%2Fgx" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/19h/gx on toolchain d073071d77ce0f93b4fd8cc567a1e2b9e1b22126 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/19h/gx [INFO] finished tweaking git repo https://github.com/19h/gx [INFO] tweaked toml for git repo https://github.com/19h/gx written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/19h/gx 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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ae29e314046a98b3bcc68f0f6abd4ccf0c47d9a762002272c304056849c8424 [INFO] running `Command { std: "docker" "start" "-a" "9ae29e314046a98b3bcc68f0f6abd4ccf0c47d9a762002272c304056849c8424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ae29e314046a98b3bcc68f0f6abd4ccf0c47d9a762002272c304056849c8424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ae29e314046a98b3bcc68f0f6abd4ccf0c47d9a762002272c304056849c8424", kill_on_drop: false }` [INFO] [stdout] 9ae29e314046a98b3bcc68f0f6abd4ccf0c47d9a762002272c304056849c8424 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61dbe30ddec3581746607ce9d42ebdc59beb989fbde139431a12d34faa947de5 [INFO] running `Command { std: "docker" "start" "-a" "61dbe30ddec3581746607ce9d42ebdc59beb989fbde139431a12d34faa947de5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling local-waker v0.1.1 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling jobserver v0.1.22 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling actix-service v2.0.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling actix-codec v0.4.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling askama_escape v0.10.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling bytemuck v1.7.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling mutate_once v0.1.1 [INFO] [stderr] Compiling http-range v0.1.4 [INFO] [stderr] Compiling kamadak-exif v0.5.4 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-macros v0.2.1 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling actix-rt v2.2.0 [INFO] [stderr] Compiling actix-server v2.0.0-beta.5 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling actix-tls v3.0.0-beta.5 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling actix-http v3.0.0-beta.8 [INFO] [stderr] Compiling askama_shared v0.11.1 [INFO] [stderr] Compiling actix-web v4.0.0-beta.8 [INFO] [stderr] Compiling actix-files v0.6.0-beta.6 [INFO] [stderr] Compiling askama_derive v0.10.5 [INFO] [stderr] Compiling askama v0.10.5 [INFO] [stderr] Compiling gx v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, web, App, HttpServer, Responder, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `mem` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs, mem, io, cmp}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Error`, `Read` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Read, BufReader, Error}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `exif` is imported redundantly [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use exif; [INFO] [stdout] | ^^^^ the item `exif` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/fsutil.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MediaItem` [INFO] [stdout] --> src/fsutil.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{MediaFolders, MediaMap, MediaItem, MediaItems}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `GenericImageView` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web::Data` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use actix_web::web::Data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | info: web::Path<()>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `actix_web::App::::data`: Use `.app_data(Data::new(val))` instead. [INFO] [stdout] --> src/main.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | .data(db.clone()) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `media_folders` [INFO] [stdout] --> src/fsutil.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_media_folders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `folder_path` [INFO] [stdout] --> src/fsutil.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | .for_each(|(folder_path, paths)| [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | static ref matcher: Regex = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | static ref matcher: Regex = Regex::new(r"\.(?:jpe?g|png|gif|bmp)$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | / NaiveDate [INFO] [stdout] 68 | | ::parse_from_str(name, "%Y-%m-%d") [INFO] [stdout] 69 | | .map(|parsed_date| [INFO] [stdout] 70 | | media_folders [INFO] [stdout] ... | [INFO] [stdout] 76 | | ), [INFO] [stdout] 77 | | ); [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] 67 | let _ = NaiveDate [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | file.read(&mut start_buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = file.read(&mut start_buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / std::fs::File [INFO] [stdout] 159 | | ::open(image_path) [INFO] [stdout] 160 | | .map(|file| { [INFO] [stdout] 161 | | exif::Reader [INFO] [stdout] ... | [INFO] [stdout] 176 | | ); [INFO] [stdout] 177 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = std::fs::File [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | / exif::Reader [INFO] [stdout] 162 | | ::new() [INFO] [stdout] 163 | | .read_from_container( [INFO] [stdout] 164 | | &mut BufReader::new(&file), [INFO] [stdout] ... | [INFO] [stdout] 175 | | ), [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = exif::Reader [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/imgutil.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fs::create_dir_all( [INFO] [stdout] 29 | | &cache_path, [INFO] [stdout] 30 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = fs::create_dir_all( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized] target(s) in 2m 10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [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" "61dbe30ddec3581746607ce9d42ebdc59beb989fbde139431a12d34faa947de5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61dbe30ddec3581746607ce9d42ebdc59beb989fbde139431a12d34faa947de5", kill_on_drop: false }` [INFO] [stdout] 61dbe30ddec3581746607ce9d42ebdc59beb989fbde139431a12d34faa947de5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4afc46ab79f02d6782f43cd96066074baa34a73538ef3fdb3e5b2178abfab61 [INFO] running `Command { std: "docker" "start" "-a" "b4afc46ab79f02d6782f43cd96066074baa34a73538ef3fdb3e5b2178abfab61", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling local-waker v0.1.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling actix-service v2.0.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling askama_escape v0.10.1 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling actix-rt v2.2.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling actix-codec v0.4.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-tls v3.0.0-beta.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling actix-server v2.0.0-beta.5 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling actix-http v3.0.0-beta.8 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling http-range v0.1.4 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling bytemuck v1.7.0 [INFO] [stderr] Compiling mutate_once v0.1.1 [INFO] [stderr] Compiling kamadak-exif v0.5.4 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling askama_shared v0.11.1 [INFO] [stderr] Compiling actix-web v4.0.0-beta.8 [INFO] [stderr] Compiling askama v0.10.5 [INFO] [stderr] Compiling actix-files v0.6.0-beta.6 [INFO] [stderr] Compiling gx v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, web, App, HttpServer, Responder, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `mem` [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs, mem, io, cmp}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image` is imported redundantly [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use image; [INFO] [stdout] | ^^^^^ the item `image` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Error`, `Read` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Read, BufReader, Error}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `exif` is imported redundantly [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use exif; [INFO] [stdout] | ^^^^ the item `exif` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/fsutil.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MediaItem` [INFO] [stdout] --> src/fsutil.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{MediaFolders, MediaMap, MediaItem, MediaItems}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `GenericImageView` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use image::{DynamicImage, GenericImageView}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web::Data` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use actix_web::web::Data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | info: web::Path<()>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/main.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `actix_web::App::::data`: Use `.app_data(Data::new(val))` instead. [INFO] [stdout] --> src/main.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | .data(db.clone()) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `media_folders` [INFO] [stdout] --> src/fsutil.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_media_folders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `folder_path` [INFO] [stdout] --> src/fsutil.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | .for_each(|(folder_path, paths)| [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fsutil.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | mut media_folders: &mut MediaFolders, [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | static ref matcher: Regex = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `matcher` should have an upper case name [INFO] [stdout] --> src/fsutil.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | static ref matcher: Regex = Regex::new(r"\.(?:jpe?g|png|gif|bmp)$").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | / NaiveDate [INFO] [stdout] 68 | | ::parse_from_str(name, "%Y-%m-%d") [INFO] [stdout] 69 | | .map(|parsed_date| [INFO] [stdout] 70 | | media_folders [INFO] [stdout] ... | [INFO] [stdout] 76 | | ), [INFO] [stdout] 77 | | ); [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] 67 | let _ = NaiveDate [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | file.read(&mut start_buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = file.read(&mut start_buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / std::fs::File [INFO] [stdout] 159 | | ::open(image_path) [INFO] [stdout] 160 | | .map(|file| { [INFO] [stdout] 161 | | exif::Reader [INFO] [stdout] ... | [INFO] [stdout] 176 | | ); [INFO] [stdout] 177 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = std::fs::File [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/fsutil.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | / exif::Reader [INFO] [stdout] 162 | | ::new() [INFO] [stdout] 163 | | .read_from_container( [INFO] [stdout] 164 | | &mut BufReader::new(&file), [INFO] [stdout] ... | [INFO] [stdout] 175 | | ), [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = exif::Reader [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/imgutil.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fs::create_dir_all( [INFO] [stdout] 29 | | &cache_path, [INFO] [stdout] 30 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = fs::create_dir_all( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized] target(s) in 1m 15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [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" "b4afc46ab79f02d6782f43cd96066074baa34a73538ef3fdb3e5b2178abfab61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4afc46ab79f02d6782f43cd96066074baa34a73538ef3fdb3e5b2178abfab61", kill_on_drop: false }` [INFO] [stdout] b4afc46ab79f02d6782f43cd96066074baa34a73538ef3fdb3e5b2178abfab61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c93750b67adae3aaf52c80d89987f077c4cb7daa28f6dcd8b53aa7160c46f1c6 [INFO] running `Command { std: "docker" "start" "-a" "c93750b67adae3aaf52c80d89987f077c4cb7daa28f6dcd8b53aa7160c46f1c6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> src/main.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{get, web, App, HttpServer, Responder, HttpRequest, HttpResponse}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Path` [INFO] [stderr] --> src/main.rs:4:17 [INFO] [stderr] | [INFO] [stderr] 4 | use std::path::{Path, PathBuf}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cmp`, `mem` [INFO] [stderr] --> src/main.rs:6:15 [INFO] [stderr] | [INFO] [stderr] 6 | use std::{fs, mem, io, cmp}; [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ffi::OsString` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::ffi::OsString; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `image` is imported redundantly [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use image; [INFO] [stderr] | ^^^^^ the item `image` is already defined here [INFO] [stderr] [INFO] [stderr] warning: unused import: `regex::Regex` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use regex::Regex; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BufReader`, `Error`, `Read` [INFO] [stderr] --> src/main.rs:12:15 [INFO] [stderr] | [INFO] [stderr] 12 | use std::io::{Read, BufReader, Error}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `exif` is imported redundantly [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use exif; [INFO] [stderr] | ^^^^ the item `exif` is already defined here [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/fsutil.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `MediaItem` [INFO] [stderr] --> src/fsutil.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{MediaFolders, MediaMap, MediaItem, MediaItems}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DynamicImage`, `GenericImageView` [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | use image::{DynamicImage, GenericImageView}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_web::web::Data` [INFO] [stderr] --> src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use actix_web::web::Data; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `info` [INFO] [stderr] --> src/main.rs:131:5 [INFO] [stderr] | [INFO] [stderr] 131 | info: web::Path<()>, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/main.rs:133:5 [INFO] [stderr] | [INFO] [stderr] 133 | req: HttpRequest, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `actix_web::App::::data`: Use `.app_data(Data::new(val))` instead. [INFO] [stderr] --> src/main.rs:233:14 [INFO] [stderr] | [INFO] [stderr] 233 | .data(db.clone()) [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/fsutil.rs:157:17 [INFO] [stderr] | [INFO] [stderr] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/fsutil.rs:157:33 [INFO] [stderr] | [INFO] [stderr] 157 | .for_each(|(mut image_path, mut item)| { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `media_folders` [INFO] [stderr] --> src/fsutil.rs:182:9 [INFO] [stderr] | [INFO] [stderr] 182 | mut media_folders: &mut MediaFolders, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_media_folders` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `folder_path` [INFO] [stderr] --> src/fsutil.rs:188:21 [INFO] [stderr] | [INFO] [stderr] 188 | .for_each(|(folder_path, paths)| [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_folder_path` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/fsutil.rs:182:5 [INFO] [stderr] | [INFO] [stderr] 182 | mut media_folders: &mut MediaFolders, [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: static variable `matcher` should have an upper case name [INFO] [stderr] --> src/fsutil.rs:38:20 [INFO] [stderr] | [INFO] [stderr] 38 | static ref matcher: Regex = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap(); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `matcher` should have an upper case name [INFO] [stderr] --> src/fsutil.rs:46:20 [INFO] [stderr] | [INFO] [stderr] 46 | static ref matcher: Regex = Regex::new(r"\.(?:jpe?g|png|gif|bmp)$").unwrap(); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper case: `MATCHER` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/fsutil.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | / NaiveDate [INFO] [stderr] 68 | | ::parse_from_str(name, "%Y-%m-%d") [INFO] [stderr] 69 | | .map(|parsed_date| [INFO] [stderr] 70 | | media_folders [INFO] [stderr] ... | [INFO] [stderr] 76 | | ), [INFO] [stderr] 77 | | ); [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)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 67 | let _ = NaiveDate [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/fsutil.rs:125:25 [INFO] [stderr] | [INFO] [stderr] 125 | file.read(&mut start_buf); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 125 | let _ = file.read(&mut start_buf); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/fsutil.rs:158:9 [INFO] [stderr] | [INFO] [stderr] 158 | / std::fs::File [INFO] [stderr] 159 | | ::open(image_path) [INFO] [stderr] 160 | | .map(|file| { [INFO] [stderr] 161 | | exif::Reader [INFO] [stderr] ... | [INFO] [stderr] 176 | | ); [INFO] [stderr] 177 | | }); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 158 | let _ = std::fs::File [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/fsutil.rs:161:13 [INFO] [stderr] | [INFO] [stderr] 161 | / exif::Reader [INFO] [stderr] 162 | | ::new() [INFO] [stderr] 163 | | .read_from_container( [INFO] [stderr] 164 | | &mut BufReader::new(&file), [INFO] [stderr] ... | [INFO] [stderr] 175 | | ), [INFO] [stderr] 176 | | ); [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 161 | let _ = exif::Reader [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/imgutil.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | / fs::create_dir_all( [INFO] [stderr] 29 | | &cache_path, [INFO] [stderr] 30 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 28 | let _ = fs::create_dir_all( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `gx` (bin "gx" test) generated 27 warnings (run `cargo fix --bin "gx" --tests` to apply 13 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized] target(s) in 0.41s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [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/deps/gx-660d63626c08886d) [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" "c93750b67adae3aaf52c80d89987f077c4cb7daa28f6dcd8b53aa7160c46f1c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c93750b67adae3aaf52c80d89987f077c4cb7daa28f6dcd8b53aa7160c46f1c6", kill_on_drop: false }` [INFO] [stdout] c93750b67adae3aaf52c80d89987f077c4cb7daa28f6dcd8b53aa7160c46f1c6