[INFO] cloning repository https://github.com/rkday/photo-management [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rkday/photo-management" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frkday%2Fphoto-management", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frkday%2Fphoto-management'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 41bc922426ff0ffddf5ccaf976dfe1ebc1295919 [INFO] testing rkday/photo-management against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frkday%2Fphoto-management" "/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/rkday/photo-management on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rkday/photo-management [INFO] finished tweaking git repo https://github.com/rkday/photo-management [INFO] tweaked toml for git repo https://github.com/rkday/photo-management written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rkday/photo-management already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded plugin v0.2.6 [INFO] [stderr] Downloaded serde v1.0.85 [INFO] [stderr] Downloaded groupable v0.2.0 [INFO] [stderr] Downloaded num_cpus v1.9.0 [INFO] [stderr] Downloaded env_logger v0.6.0 [INFO] [stderr] Downloaded serde_json v1.0.36 [INFO] [stderr] Downloaded nickel v0.11.0 [INFO] [stderr] Downloaded serde_derive v1.0.85 [INFO] [stderr] Downloaded mustache v0.9.0 [INFO] [stderr] Downloaded redox_syscall v0.1.50 [INFO] [stderr] Downloaded proc-macro2 v0.4.25 [INFO] [stderr] Downloaded modifier v0.1.0 [INFO] [stderr] Downloaded memchr v2.1.2 [INFO] [stderr] Downloaded libc v0.2.47 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 150d2ada456eefa62399ef23dbe1ae66fccfdc25bdeae73150280ab6910b0b77 [INFO] running `Command { std: "docker" "start" "-a" "150d2ada456eefa62399ef23dbe1ae66fccfdc25bdeae73150280ab6910b0b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "150d2ada456eefa62399ef23dbe1ae66fccfdc25bdeae73150280ab6910b0b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "150d2ada456eefa62399ef23dbe1ae66fccfdc25bdeae73150280ab6910b0b77", kill_on_drop: false }` [INFO] [stdout] 150d2ada456eefa62399ef23dbe1ae66fccfdc25bdeae73150280ab6910b0b77 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] feae00c1b1aaa972174316b036aac055fe5baa7deed40e26b53b29509802a79c [INFO] running `Command { std: "docker" "start" "-a" "feae00c1b1aaa972174316b036aac055fe5baa7deed40e26b53b29509802a79c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.47 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling serde v1.0.85 [INFO] [stderr] Compiling proc-macro2 v0.4.25 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling walkdir v2.2.7 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling num_cpus v1.9.0 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling hyper v0.10.15 [INFO] [stderr] Compiling serde_derive v1.0.85 [INFO] [stderr] Compiling env_logger v0.6.0 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.36 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling pviewer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/pviewer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/bin/pviewer.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/bin/pviewer.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | if (p.is_dir()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - if (p.is_dir()) { [INFO] [stdout] 40 + if p.is_dir() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stdout] 45 + if (ext == "jpg") || (ext == "JPG") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] 73 + Some(idx2) => if idx2 == 0 { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] 78 + Some(idx2) => if idx2 == maxidx { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/pviewer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 61 | | get "/picture" => |req, res| { [INFO] [stdout] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stdout] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 84 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/pviewer.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 85 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 86 | | get "/listdir" => |req, res| { [INFO] [stdout] 87 | | let subdir = req.query().get("dir").unwrap_or("./"); [INFO] [stdout] 88 | | let pd = get_dir_contents(subdir); [INFO] [stdout] ... | [INFO] [stdout] 91 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/bin/pviewer.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Responder<()>` will fail [INFO] [stdout] --> src/bin/pviewer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 61 | | get "/picture" => |req, res| { [INFO] [stdout] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stdout] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 84 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/pviewer.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PageData` [INFO] [stdout] 15 | struct PageData<'a> { [INFO] [stdout] | -------- `PageData` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/pviewer.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_DirContents` [INFO] [stdout] 24 | struct DirContents { [INFO] [stdout] | ----------- `DirContents` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `dir_s` should have an upper case name [INFO] [stdout] --> src/bin/pviewer.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | static dir_s: &'static str = "/Volumes/Seagate Backup Plus Drive/Media/Pictures"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `DIR_S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pviewer.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | server.listen("127.0.0.1:4080"); [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] 95 | let _ = server.listen("127.0.0.1:4080"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.61s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [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" "feae00c1b1aaa972174316b036aac055fe5baa7deed40e26b53b29509802a79c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "feae00c1b1aaa972174316b036aac055fe5baa7deed40e26b53b29509802a79c", kill_on_drop: false }` [INFO] [stdout] feae00c1b1aaa972174316b036aac055fe5baa7deed40e26b53b29509802a79c [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3535eb4319113f14370954e80eacf038aad3fe1b1691d1029e47e656aec3e26e [INFO] running `Command { std: "docker" "start" "-a" "3535eb4319113f14370954e80eacf038aad3fe1b1691d1029e47e656aec3e26e", kill_on_drop: false }` [INFO] [stderr] Compiling pviewer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/pviewer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/bin/pviewer.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/bin/pviewer.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | if (p.is_dir()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - if (p.is_dir()) { [INFO] [stdout] 40 + if p.is_dir() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stdout] 45 + if (ext == "jpg") || (ext == "JPG") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 73 | Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] 73 + Some(idx2) => if idx2 == 0 { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/pviewer.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] 78 + Some(idx2) => if idx2 == maxidx { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/pviewer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 61 | | get "/picture" => |req, res| { [INFO] [stdout] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stdout] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 84 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/pviewer.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 85 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 86 | | get "/listdir" => |req, res| { [INFO] [stdout] 87 | | let subdir = req.query().get("dir").unwrap_or("./"); [INFO] [stdout] 88 | | let pd = get_dir_contents(subdir); [INFO] [stdout] ... | [INFO] [stdout] 91 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/bin/pviewer.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Responder<()>` will fail [INFO] [stdout] --> src/bin/pviewer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | server.utilize(router! { [INFO] [stdout] | ____________________^ [INFO] [stdout] 61 | | get "/picture" => |req, res| { [INFO] [stdout] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stdout] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 84 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/pviewer.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PageData` [INFO] [stdout] 15 | struct PageData<'a> { [INFO] [stdout] | -------- `PageData` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/pviewer.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_DirContents` [INFO] [stdout] 24 | struct DirContents { [INFO] [stdout] | ----------- `DirContents` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `dir_s` should have an upper case name [INFO] [stdout] --> src/bin/pviewer.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | static dir_s: &'static str = "/Volumes/Seagate Backup Plus Drive/Media/Pictures"; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `DIR_S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pviewer.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | server.listen("127.0.0.1:4080"); [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] 95 | let _ = server.listen("127.0.0.1:4080"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [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" "3535eb4319113f14370954e80eacf038aad3fe1b1691d1029e47e656aec3e26e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3535eb4319113f14370954e80eacf038aad3fe1b1691d1029e47e656aec3e26e", kill_on_drop: false }` [INFO] [stdout] 3535eb4319113f14370954e80eacf038aad3fe1b1691d1029e47e656aec3e26e [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a80c3df9171c94922d17c3b85ef4bd3cfbe9c425c4f0e701bf756b0df91dffc8 [INFO] running `Command { std: "docker" "start" "-a" "a80c3df9171c94922d17c3b85ef4bd3cfbe9c425c4f0e701bf756b0df91dffc8", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/bin/pviewer.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/bin/pviewer.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Serialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/bin/pviewer.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | #[derive(Serialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/bin/pviewer.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | if (p.is_dir()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 40 - if (p.is_dir()) { [INFO] [stderr] 40 + if p.is_dir() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/bin/pviewer.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 45 - if ((ext == "jpg") || (ext == "JPG")) { [INFO] [stderr] 45 + if (ext == "jpg") || (ext == "JPG") { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/bin/pviewer.rs:73:34 [INFO] [stderr] | [INFO] [stderr] 73 | Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 73 - Some(idx2) => if (idx2 == 0) { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stderr] 73 + Some(idx2) => if idx2 == 0 { &picture } else { folder_contents.images.get(idx2 - 1).unwrap() } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/bin/pviewer.rs:78:34 [INFO] [stderr] | [INFO] [stderr] 78 | Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 78 - Some(idx2) => if (idx2 == maxidx) { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stderr] 78 + Some(idx2) => if idx2 == maxidx { &picture } else { folder_contents.images.get(idx2 + 1).unwrap() } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/bin/pviewer.rs:60:20 [INFO] [stderr] | [INFO] [stderr] 60 | server.utilize(router! { [INFO] [stderr] | ____________________^ [INFO] [stderr] 61 | | get "/picture" => |req, res| { [INFO] [stderr] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stderr] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 84 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | |_____unreachable expression [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/bin/pviewer.rs:85:20 [INFO] [stderr] | [INFO] [stderr] 85 | server.utilize(router! { [INFO] [stderr] | ____________________^ [INFO] [stderr] 86 | | get "/listdir" => |req, res| { [INFO] [stderr] 87 | | let subdir = req.query().get("dir").unwrap_or("./"); [INFO] [stderr] 88 | | let pd = get_dir_contents(subdir); [INFO] [stderr] ... | [INFO] [stderr] 91 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | |_____unreachable expression [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/bin/pviewer.rs:54:1 [INFO] [stderr] | [INFO] [stderr] 54 | fn main() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: Responder<()>` will fail [INFO] [stderr] --> src/bin/pviewer.rs:60:20 [INFO] [stderr] | [INFO] [stderr] 60 | server.utilize(router! { [INFO] [stderr] | ____________________^ [INFO] [stderr] 61 | | get "/picture" => |req, res| { [INFO] [stderr] 62 | | let picture = req.query().get("pic").unwrap().to_owned(); [INFO] [stderr] 63 | | let pic_path = Path::new(&picture).parent().unwrap().to_str().unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 84 | | }); [INFO] [stderr] | |_____^ [INFO] [stderr] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stderr] = note: this warning originates in the macro `_middleware_inner` which comes from the expansion of the macro `router` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/bin/pviewer.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | #[derive(Serialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PageData` [INFO] [stderr] 15 | struct PageData<'a> { [INFO] [stderr] | -------- `PageData` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/bin/pviewer.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | #[derive(Serialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_DirContents` [INFO] [stderr] 24 | struct DirContents { [INFO] [stderr] | ----------- `DirContents` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: static variable `dir_s` should have an upper case name [INFO] [stderr] --> src/bin/pviewer.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | static dir_s: &'static str = "/Volumes/Seagate Backup Plus Drive/Media/Pictures"; [INFO] [stderr] | ^^^^^ help: convert the identifier to upper case: `DIR_S` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/pviewer.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | server.listen("127.0.0.1:4080"); [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] 95 | let _ = server.listen("127.0.0.1:4080"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `pviewer` (bin "pviewer" test) generated 14 warnings (run `cargo fix --bin "pviewer" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [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/bin/pcopier.rs (/opt/rustwide/target/debug/deps/pcopier-81e96d9fbc87a51a) [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/pviewer.rs (/opt/rustwide/target/debug/deps/pviewer-5117911d6a9d43a6) [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] [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" "a80c3df9171c94922d17c3b85ef4bd3cfbe9c425c4f0e701bf756b0df91dffc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a80c3df9171c94922d17c3b85ef4bd3cfbe9c425c4f0e701bf756b0df91dffc8", kill_on_drop: false }` [INFO] [stdout] a80c3df9171c94922d17c3b85ef4bd3cfbe9c425c4f0e701bf756b0df91dffc8