[INFO] cloning repository https://github.com/TrionProg/SimpleWebServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TrionProg/SimpleWebServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2FSimpleWebServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2FSimpleWebServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f92fa8625161e649064f9839519ce196a3dd28f3 [INFO] checking TrionProg/SimpleWebServer against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2FSimpleWebServer" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TrionProg/SimpleWebServer on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TrionProg/SimpleWebServer [INFO] finished tweaking git repo https://github.com/TrionProg/SimpleWebServer [INFO] tweaked toml for git repo https://github.com/TrionProg/SimpleWebServer written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/TrionProg/SimpleWebServer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-openssl v0.3.0 [INFO] [stderr] Downloaded cc v1.0.34 [INFO] [stderr] Downloaded string v0.2.0 [INFO] [stderr] Downloaded tokio-sync v0.1.4 [INFO] [stderr] Downloaded redox_syscall v0.1.53 [INFO] [stderr] Downloaded h2 v0.1.17 [INFO] [stderr] Downloaded regex v1.1.5 [INFO] [stderr] Downloaded twoway v0.2.0 [INFO] [stderr] Downloaded serial_test v0.2.0 [INFO] [stderr] Downloaded trust-dns-proto v0.7.3 [INFO] [stderr] Downloaded serial_test_derive v0.2.0 [INFO] [stderr] Downloaded unchecked-index v0.2.2 [INFO] [stderr] Downloaded syn v0.15.30 [INFO] [stderr] Downloaded actix-multipart v0.1.4 [INFO] [stderr] Downloaded ctrlc v3.1.2 [INFO] [stderr] Downloaded arc-swap v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d1f5feca127c0893fa72592c4d5efcd44133166e5f0fe882f0c2daa04708b73 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1d1f5feca127c0893fa72592c4d5efcd44133166e5f0fe882f0c2daa04708b73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d1f5feca127c0893fa72592c4d5efcd44133166e5f0fe882f0c2daa04708b73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d1f5feca127c0893fa72592c4d5efcd44133166e5f0fe882f0c2daa04708b73", kill_on_drop: false }` [INFO] [stdout] 1d1f5feca127c0893fa72592c4d5efcd44133166e5f0fe882f0c2daa04708b73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d5b8075ded1d89895ca412bdccadab6de7c4fb76f51864e23a63c1e127931c0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1d5b8075ded1d89895ca412bdccadab6de7c4fb76f51864e23a63c1e127931c0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.34 [INFO] [stderr] Compiling syn v0.15.30 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling regex v1.1.5 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.13 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Compiling serde v1.0.90 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling openssl v0.10.25 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking arc-swap v0.3.9 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling encoding_rs v0.8.20 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Checking dtoa v0.4.3 [INFO] [stderr] Checking string v0.1.3 [INFO] [stderr] Checking hashbrown v0.5.0 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Compiling nix v0.13.0 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking termcolor v1.0.4 [INFO] [stderr] Compiling backtrace v0.3.15 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking serial_test v0.2.0 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking lock_api v0.3.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.6.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Compiling unicase v2.3.0 [INFO] [stderr] Checking tokio-sync v0.1.4 [INFO] [stderr] Checking actix-service v0.4.2 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking tokio-executor v0.1.7 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking twoway v0.2.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking tokio-timer v0.2.10 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking socket2 v0.3.8 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking signal-hook-registry v1.0.1 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking opencv_sys v0.1.0 (/opt/rustwide/workdir/opencv_sys) [INFO] [stderr] Checking atty v0.2.11 [INFO] [stdout] warning: unused imports: `c_char`, `c_void`, `size_t` [INFO] [stdout] --> opencv_sys/src/error.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use libc::{c_void, c_char, size_t, c_int}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `size_t` [INFO] [stdout] --> opencv_sys/src/image.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use libc::{c_void, c_char, size_t, c_int}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Compiling openssl-sys v0.9.52 [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling miniz-sys v0.1.11 [INFO] [stdout] warning: unused imports: `c_char`, `c_void`, `size_t` [INFO] [stdout] --> opencv_sys/src/error.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use libc::{c_void, c_char, size_t, c_int}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `size_t` [INFO] [stdout] --> opencv_sys/src/image.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use libc::{c_void, c_char, size_t, c_int}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking mime v0.3.13 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking resolv-conf v0.6.2 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking signal-hook v0.1.9 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking http v0.1.17 [INFO] [stderr] Checking string v0.2.0 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking flate2 v1.0.7 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking actix-codec v0.1.2 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking actix-utils v0.4.7 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio-signal v0.2.7 [INFO] [stderr] Checking env_logger v0.6.1 [INFO] [stderr] Checking actix-server-config v0.1.2 [INFO] [stderr] Checking ctrlc v3.1.2 [INFO] [stderr] Checking h2 v0.1.17 [INFO] [stderr] Checking tokio-openssl v0.3.0 [INFO] [stderr] Compiling actix-web-codegen v0.1.3 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling serde_derive v1.0.90 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling serial_test_derive v0.2.0 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking trust-dns-proto v0.7.3 [INFO] [stderr] Checking opencv v0.1.0 (/opt/rustwide/workdir/opencv) [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Can not create an image")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Can not open an image \"{}\"", path)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[fail(display = "Can not save an image \"{}\"", path)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[fail(display = "Can not resize an image")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CStr` [INFO] [stdout] --> opencv/src/image.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ffi::{CString, CStr}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::CanNotResizeImage` [INFO] [stdout] --> opencv/src/image.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::errors::CanNotResizeImage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Can not create an image")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Can not open an image \"{}\"", path)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[fail(display = "Can not save an image \"{}\"", path)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> opencv/src/errors.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[fail(display = "Can not resize an image")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CStr` [INFO] [stdout] --> opencv/src/image.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ffi::{CString, CStr}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::CanNotResizeImage` [INFO] [stdout] --> opencv/src/image.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::errors::CanNotResizeImage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> opencv/src/image.rs:41:72 [INFO] [stdout] | [INFO] [stdout] 41 | opencv_sys::image::cvLoadImage(CString::new(path).unwrap().as_ptr(), 1) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> opencv/src/image.rs:59:72 [INFO] [stdout] | [INFO] [stdout] 59 | opencv_sys::image::cvSaveImage(CString::new(path).unwrap().as_ptr(), self.mat, 0 as *const c_int) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> opencv/src/image.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let error = unsafe{opencv_sys::error::cvGetErrStatus()}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> opencv/src/image.rs:41:72 [INFO] [stdout] | [INFO] [stdout] 41 | opencv_sys::image::cvLoadImage(CString::new(path).unwrap().as_ptr(), 1) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> opencv/src/image.rs:59:72 [INFO] [stdout] | [INFO] [stdout] 59 | opencv_sys::image::cvSaveImage(CString::new(path).unwrap().as_ptr(), self.mat, 0 as *const c_int) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking trust-dns-resolver v0.11.1 [INFO] [stderr] Checking actix-threadpool v0.1.2 [INFO] [stderr] Checking actix-rt v0.2.5 [INFO] [stderr] Checking actix-connect v0.2.5 [INFO] [stderr] Checking actix-server v0.6.1 [INFO] [stderr] Checking actix-testing v0.1.0 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking actix-router v0.1.5 [INFO] [stderr] Checking actix-http v0.2.10 [INFO] [stderr] Checking awc v0.2.7 [INFO] [stderr] Checking actix-web v1.0.8 [INFO] [stderr] Checking actix-multipart v0.1.4 [INFO] [stderr] Checking image_api v0.1.0 (/opt/rustwide/workdir/image_api) [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Text is not valid base64")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Text is not valid UTF-8")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[fail(display = "Text is not valid URL")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[fail(display = "Can not create image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[fail(display = "Can not write image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[fail(display = "Can not read image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | #[fail(display = "Unsupported image format, supported:Png, Jpeg")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | #[fail(display = "Can not parse \"{}\" as number", string)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | #[fail(display = "Can not download by given URL \"{}\" error: \"{}\"", url, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Async`, `Poll`, `future` [INFO] [stdout] --> image_api/src/image_api.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, Future, Stream, Poll, Async}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientRequest`, `ClientResponse` [INFO] [stdout] --> image_api/src/image_api.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use actix_web::client::{ClientResponse, ClientRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> image_api/src/image_api.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:48:72 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn put_image(self_ref:ImageApiRef, image:PutImageInput) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | fn upload_image(self_ref:ImageApiRef, content:Vec) -> Box> {// + Send + 'static [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> image_api/src/image_api.rs:209:120 [INFO] [stdout] | [INFO] [stdout] 209 | ... Err(_) => return Either::B(err(err_msg( CanNotParseAsNumberError::from((number_string)) ))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:245:62 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn get_image(self_ref:ImageApiRef, name:&str) -> Box, Error = Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error = Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:269:57 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn get_images_list(self_ref:ImageApiRef) -> Box, Error = Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error = Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Text is not valid base64")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Text is not valid UTF-8")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[fail(display = "Text is not valid URL")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[fail(display = "Can not create image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[fail(display = "Can not write image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[fail(display = "Can not read image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | #[fail(display = "Unsupported image format, supported:Png, Jpeg")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | #[fail(display = "Can not parse \"{}\" as number", string)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> image_api/src/errors.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | #[fail(display = "Can not download by given URL \"{}\" error: \"{}\"", url, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Async`, `Poll`, `future` [INFO] [stdout] --> image_api/src/image_api.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, Future, Stream, Poll, Async}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientRequest`, `ClientResponse` [INFO] [stdout] --> image_api/src/image_api.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use actix_web::client::{ClientResponse, ClientRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> image_api/src/image_api.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:48:72 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn put_image(self_ref:ImageApiRef, image:PutImageInput) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | fn upload_image(self_ref:ImageApiRef, content:Vec) -> Box> {// + Send + 'static [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> image_api/src/image_api.rs:209:120 [INFO] [stdout] | [INFO] [stdout] 209 | ... Err(_) => return Either::B(err(err_msg( CanNotParseAsNumberError::from((number_string)) ))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:245:62 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn get_image(self_ref:ImageApiRef, name:&str) -> Box, Error = Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error = Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> image_api/src/image_api.rs:269:57 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn get_images_list(self_ref:ImageApiRef) -> Box, Error = Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error = Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `awc::Client` [INFO] [stdout] --> image_api/src/image_api.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | use awc::Client; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `awc::Client` [INFO] [stdout] --> image_api/src/image_api.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | use awc::Client; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> image_api/src/image_api.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let mut file = match fs::File::open(file_path.as_str()) { [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: unused import: `Stream` [INFO] [stdout] --> image_api/src/image_api.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, Future, Stream, Poll, Async}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> image_api/src/image_api.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | Some((format, content_base64)) => [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> image_api/src/image_api.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | let (a, b) = text.split_at("data:image/png;base64,".len()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> image_api/src/image_api.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | let (a, b) = text.split_at("data:image/jpeg;base64,".len()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> image_api/src/image_api.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => Either::B(err(err_msg(TextNotBase64Error))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> image_api/src/image_api.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | ... Err(e) => Either::B(err(err_msg("can not read body"))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> image_api/src/image_api.rs:208:52 [INFO] [stdout] | [INFO] [stdout] 208 | ... Ok(len) => content_length=1000000, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> image_api/src/image_api.rs:218:38 [INFO] [stdout] | [INFO] [stdout] 218 | ... Some(format) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_ref` [INFO] [stdout] --> image_api/src/image_api.rs:249:19 [INFO] [stdout] | [INFO] [stdout] 249 | fn load_image(self_ref:ImageApiRef, name:&str) -> impl Future, Error = Error> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> image_api/src/image_api.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut file = match fs::File::create(file_path) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> image_api/src/image_api.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let mut file = match fs::File::open(file_path.as_str()) { [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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking simple_web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> image_api/src/image_api.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, Future, Stream, Poll, Async}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> image_api/src/image_api.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | Some((format, content_base64)) => [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> image_api/src/image_api.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | let (a, b) = text.split_at("data:image/png;base64,".len()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> image_api/src/image_api.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | let (a, b) = text.split_at("data:image/jpeg;base64,".len()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> image_api/src/image_api.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => Either::B(err(err_msg(TextNotBase64Error))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> image_api/src/image_api.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | ... Err(e) => Either::B(err(err_msg("can not read body"))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> image_api/src/image_api.rs:208:52 [INFO] [stdout] | [INFO] [stdout] 208 | ... Ok(len) => content_length=1000000, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> image_api/src/image_api.rs:218:38 [INFO] [stdout] | [INFO] [stdout] 218 | ... Some(format) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_ref` [INFO] [stdout] --> image_api/src/image_api.rs:249:19 [INFO] [stdout] | [INFO] [stdout] 249 | fn load_image(self_ref:ImageApiRef, name:&str) -> impl Future, Error = Error> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> image_api/src/image_api.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut file = match fs::File::create(file_path) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Text is not valid base64")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Text is not valid UTF-8")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[fail(display = "Text is not valid URL")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[fail(display = "Can not create image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[fail(display = "Can not write image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[fail(display = "Can not read image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | #[fail(display = "Unsupported image format, supported:Png, Jpeg")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | #[fail(display = "Can not parse \"{}\" as number", string)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | #[fail(display = "Can not download by given URL \"{}\" error: \"{}\"", url, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MultipartError` [INFO] [stdout] --> src/image_app.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_multipart::{Field, Multipart, MultipartError}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `Responder`, `middleware` [INFO] [stdout] --> src/image_app.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, middleware, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoFuture` [INFO] [stdout] --> src/image_app.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::future::{err, ok, Either, IntoFuture}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | ) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:217:56 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn show_image(app: web::Data) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:232:73 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn get_image(req: HttpRequest, app: web::Data) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | use std::fs::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Field`, `MultipartError`, `Multipart` [INFO] [stdout] --> src/main.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | use actix_multipart::{Field, Multipart, MultipartError}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `HttpResponse`, `error` [INFO] [stdout] --> src/main.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use actix_web::{error, middleware, web, App, Error, HttpResponse, HttpServer}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Either`, `err` [INFO] [stdout] --> src/main.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | use futures::future::{err, Either}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | / System::new("test").block_on(lazy(|| { [INFO] [stdout] 307 | | let image_api_ref = super::ImageApi::new_ref(); [INFO] [stdout] 308 | | [INFO] [stdout] 309 | | super::ImageApi::upload_image_base64(image_api_ref.clone(), "0abcdxyz").then(|result|{ [INFO] [stdout] ... | [INFO] [stdout] 313 | | }) [INFO] [stdout] 314 | | })); [INFO] [stdout] | |____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | create_dir("files"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | / ... System::new("test").block_on(lazy(|| { [INFO] [stdout] 329 | | ... let image_api_ref = super::ImageApi::new_ref(); [INFO] [stdout] 330 | | ... [INFO] [stdout] 331 | | ... super::ImageApi::download_image(image_api_ref.clone(), "https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/%D0%A5%D0%B0%... [INFO] [stdout] ... | [INFO] [stdout] 343 | | ... }) [INFO] [stdout] 344 | | ... })); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 332 | remove_file("files"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | create_dir("tmp"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> image_api/src/image_api.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | remove_file("tmp"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[fail(display = "Text is not valid base64")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[fail(display = "Text is not valid UTF-8")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[fail(display = "Text is not valid URL")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[fail(display = "Can not create image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[fail(display = "Can not write image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[fail(display = "Can not read image file \"{}\" error: \"{}\"", path, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | #[fail(display = "Unsupported image format, supported:Png, Jpeg")] [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | #[fail(display = "Can not parse \"{}\" as number", string)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/errors.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | #[fail(display = "Can not download by given URL \"{}\" error: \"{}\"", url, error)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[derive(Debug, Fail, Clone)] [INFO] [stdout] | ---- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MultipartError` [INFO] [stdout] --> src/image_app.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_multipart::{Field, Multipart, MultipartError}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `Responder`, `middleware` [INFO] [stdout] --> src/image_app.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, middleware, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoFuture` [INFO] [stdout] --> src/image_app.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::future::{err, ok, Either, IntoFuture}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | ) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:217:56 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn show_image(app: web::Data) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/image_app.rs:232:73 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn get_image(req: HttpRequest, app: web::Data) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | use std::fs::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Field`, `MultipartError`, `Multipart` [INFO] [stdout] --> src/main.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | use actix_multipart::{Field, Multipart, MultipartError}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `HttpResponse`, `error` [INFO] [stdout] --> src/main.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use actix_web::{error, middleware, web, App, Error, HttpResponse, HttpServer}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Either`, `err` [INFO] [stdout] --> src/main.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | use futures::future::{err, Either}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/main.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/main.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / ctrlc::set_handler(move || { [INFO] [stdout] 87 | | match main_tx.send(ToMainMessage::CtrlC) { [INFO] [stdout] 88 | | Ok(_) => {}, [INFO] [stdout] 89 | | Err(e) => {} [INFO] [stdout] 90 | | } [INFO] [stdout] 91 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | server_addr.stop(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless polled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | thread_join_handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / ctrlc::set_handler(move || { [INFO] [stdout] 87 | | match main_tx.send(ToMainMessage::CtrlC) { [INFO] [stdout] 88 | | Ok(_) => {}, [INFO] [stdout] 89 | | Err(e) => {} [INFO] [stdout] 90 | | } [INFO] [stdout] 91 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | server_addr.stop(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless polled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | thread_join_handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 10s [INFO] running `Command { std: "docker" "inspect" "1d5b8075ded1d89895ca412bdccadab6de7c4fb76f51864e23a63c1e127931c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d5b8075ded1d89895ca412bdccadab6de7c4fb76f51864e23a63c1e127931c0", kill_on_drop: false }` [INFO] [stdout] 1d5b8075ded1d89895ca412bdccadab6de7c4fb76f51864e23a63c1e127931c0