[INFO] cloning repository https://github.com/mickjohn/friendly_file_server_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mickjohn/friendly_file_server_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmickjohn%2Ffriendly_file_server_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmickjohn%2Ffriendly_file_server_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5fa4cf06636ab656a1d4056705368353dbacc411 [INFO] testing mickjohn/friendly_file_server_rust against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmickjohn%2Ffriendly_file_server_rust" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mickjohn/friendly_file_server_rust on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mickjohn/friendly_file_server_rust [INFO] finished tweaking git repo https://github.com/mickjohn/friendly_file_server_rust [INFO] tweaked toml for git repo https://github.com/mickjohn/friendly_file_server_rust written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/mickjohn/friendly_file_server_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b30ecc5f1fe6bc42f04d1e3389a6810666d4e85423f11028ac8037170142ff03 [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" "b30ecc5f1fe6bc42f04d1e3389a6810666d4e85423f11028ac8037170142ff03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b30ecc5f1fe6bc42f04d1e3389a6810666d4e85423f11028ac8037170142ff03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b30ecc5f1fe6bc42f04d1e3389a6810666d4e85423f11028ac8037170142ff03", kill_on_drop: false }` [INFO] [stdout] b30ecc5f1fe6bc42f04d1e3389a6810666d4e85423f11028ac8037170142ff03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a9306e34daf16a86467a04ab3f1edd750e09edb94cc0f7a8d874694f22e35b8 [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" "0a9306e34daf16a86467a04ab3f1edd750e09edb94cc0f7a8d874694f22e35b8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling quick-error v2.0.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling input_buffer v0.3.1 [INFO] [stderr] Compiling tinyvec v1.0.1 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling blake2b_simd v0.5.11 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling unicode-normalization v0.1.14 [INFO] [stderr] Compiling rust-argon2 v0.8.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling block-cipher v0.8.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling blowfish v0.6.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling bcrypt v0.8.2 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling headers v0.3.2 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling postgres-protocol v0.5.3 [INFO] [stderr] Compiling multipart v0.17.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling postgres-types v0.1.3 [INFO] [stderr] Compiling handlebars v3.5.1 [INFO] [stderr] Compiling tokio-postgres v0.5.5 [INFO] [stderr] Compiling warp v0.2.5 [INFO] [stderr] Compiling friendly_file_server_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NoTls` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_postgres::{NoTls}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/webserver/models.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(username: String, password: String, role: UserRole) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `DbClientArc` [INFO] [stdout] --> src/webserver/models.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub type DbClientArc= Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_db_client` [INFO] [stdout] --> src/webserver/models.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn new_db_client(client: Client) -> DbClientArc { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/webserver/filters.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_catalogue( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `with_db_client` [INFO] [stdout] --> src/webserver/filters.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn with_db_client(client: DbClientArc) -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/webserver/handlers.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | pub async fn get_catalogue( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_from_row` [INFO] [stdout] --> src/db.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_from_row<'a, T: FromSql<'a>>(row: &'a Row, key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/db.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn get_catalogue(client: &Client) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_movies` [INFO] [stdout] --> src/db.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn get_movies(client: &Client) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_tvshows` [INFO] [stdout] --> src/db.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn get_tvshows(client: &Client) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/fs_utils.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | panic!(format!("{:?} does not exist or is not a directory", p)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 45 | panic!("{:?} does not exist or is not a directory", p); [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 22s [INFO] running `Command { std: "docker" "inspect" "0a9306e34daf16a86467a04ab3f1edd750e09edb94cc0f7a8d874694f22e35b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a9306e34daf16a86467a04ab3f1edd750e09edb94cc0f7a8d874694f22e35b8", kill_on_drop: false }` [INFO] [stdout] 0a9306e34daf16a86467a04ab3f1edd750e09edb94cc0f7a8d874694f22e35b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83138919d668f4f3e14b887e457fdefae22d159a296ad79313db720ad523dc33 [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" "83138919d668f4f3e14b887e457fdefae22d159a296ad79313db720ad523dc33", kill_on_drop: false }` [INFO] [stderr] Compiling friendly_file_server_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NoTls` [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_postgres::{NoTls}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `DbClientArc` [INFO] [stdout] --> src/webserver/models.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub type DbClientArc= Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_db_client` [INFO] [stdout] --> src/webserver/models.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn new_db_client(client: Client) -> DbClientArc { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/webserver/filters.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn get_catalogue( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `with_db_client` [INFO] [stdout] --> src/webserver/filters.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn with_db_client(client: DbClientArc) -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/webserver/handlers.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | pub async fn get_catalogue( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_from_row` [INFO] [stdout] --> src/db.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_from_row<'a, T: FromSql<'a>>(row: &'a Row, key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_catalogue` [INFO] [stdout] --> src/db.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn get_catalogue(client: &Client) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_movies` [INFO] [stdout] --> src/db.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn get_movies(client: &Client) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_tvshows` [INFO] [stdout] --> src/db.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn get_tvshows(client: &Client) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/fs_utils.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | panic!(format!("{:?} does not exist or is not a directory", p)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 45 | panic!("{:?} does not exist or is not a directory", p); [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.81s [INFO] running `Command { std: "docker" "inspect" "83138919d668f4f3e14b887e457fdefae22d159a296ad79313db720ad523dc33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83138919d668f4f3e14b887e457fdefae22d159a296ad79313db720ad523dc33", kill_on_drop: false }` [INFO] [stdout] 83138919d668f4f3e14b887e457fdefae22d159a296ad79313db720ad523dc33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f943811297a2e7ee134fa2bfcdc05714c8de4f73d14d9bf6c314e20d163d52ee [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" "f943811297a2e7ee134fa2bfcdc05714c8de4f73d14d9bf6c314e20d163d52ee", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: unused import: `NoTls` [INFO] [stdout] running 9 tests [INFO] [stderr] --> src/main.rs:10:22 [INFO] [stdout] test args::tests::test_load_users_from_str1 ... ok [INFO] [stderr] | [INFO] [stderr] 10 | use tokio_postgres::{NoTls}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `DbClientArc` [INFO] [stderr] --> src/webserver/models.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | pub type DbClientArc= Arc>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `new_db_client` [INFO] [stderr] --> src/webserver/models.rs:156:8 [INFO] [stderr] | [INFO] [stderr] 156 | pub fn new_db_client(client: Client) -> DbClientArc { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_catalogue` [INFO] [stderr] --> src/webserver/filters.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn get_catalogue( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `with_db_client` [INFO] [stderr] --> src/webserver/filters.rs:140:4 [INFO] [stderr] | [INFO] [stderr] 140 | fn with_db_client(client: DbClientArc) -> impl Filter + Clone { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_catalogue` [INFO] [stderr] --> src/webserver/handlers.rs:143:14 [INFO] [stderr] | [INFO] [stderr] 143 | pub async fn get_catalogue( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_from_row` [INFO] [stderr] --> src/db.rs:7:4 [INFO] [stderr] | [INFO] [stderr] 7 | fn get_from_row<'a, T: FromSql<'a>>(row: &'a Row, key: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_catalogue` [INFO] [stderr] --> src/db.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 12 | pub async fn get_catalogue(client: &Client) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_movies` [INFO] [stderr] --> src/db.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | pub async fn get_movies(client: &Client) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_tvshows` [INFO] [stderr] --> src/db.rs:35:14 [INFO] [stderr] | [INFO] [stderr] 35 | pub async fn get_tvshows(client: &Client) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/fs_utils.rs:45:28 [INFO] [stderr] | [INFO] [stderr] 45 | panic!(format!("{:?} does not exist or is not a directory", p)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stderr] = note: this is no longer accepted in Rust 2021 [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 45 | panic!("{:?} does not exist or is not a directory", p); [INFO] [stderr] | -- -- [INFO] [stderr] [INFO] [stderr] warning: 11 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/friendly_file_server_rust-78c86fe922679663) [INFO] [stdout] test args::tests::test_validate_ip_addr ... ok [INFO] [stdout] test fs_utils::tests::test_is_file ... ok [INFO] [stdout] test fs_utils::tests::test_create_trail ... ok [INFO] [stdout] test fs_utils::tests::test_get_directory_listing ... ok [INFO] [stdout] test webserver::models::tests::test_auth_roles_ordering ... ok [INFO] [stdout] test fs_utils::tests::test_create_serve_point ... ok [INFO] [stdout] test fs_utils::tests::test_new_serve_point_panics ... ok [INFO] [stdout] test fs_utils::tests::test_is_subdir ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- fs_utils::tests::test_is_subdir stdout ---- [INFO] [stdout] thread 'fs_utils::tests::test_is_subdir' panicked at 'assertion failed: !sp.is_subdir(&bad_folder)', src/fs_utils.rs:230:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55f03bd520b0 - std::backtrace_rs::backtrace::libunwind::trace::h1037ca7e6eeef65c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55f03bd520b0 - std::backtrace_rs::backtrace::trace_unsynchronized::haaefac1bc3669450 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55f03bd520b0 - std::sys_common::backtrace::_print_fmt::h863a6f5e6d995885 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55f03bd520b0 - ::fmt::h767e17e1aa7df6a8 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55f03bd7521c - core::fmt::write::h7aa6cd0067dca82a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/fmt/mod.rs:1110:17 [INFO] [stdout] 5: 0x55f03bd4ead5 - std::io::Write::write_fmt::h6f1a9b91376a1376 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/io/mod.rs:1584:15 [INFO] [stdout] 6: 0x55f03bd5423b - std::sys_common::backtrace::_print::h2769edb26a7eb606 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55f03bd5423b - std::sys_common::backtrace::print::ha71f3549862b4cb6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55f03bd5423b - std::panicking::default_hook::{{closure}}::h95488a3bade217f6 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x55f03bd53d4c - std::panicking::default_hook::h290aa602c0fb11df [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x55f03bd548e1 - std::panicking::rust_panic_with_hook::hf32c4fa635e215f2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x55f03bd543b7 - std::panicking::begin_panic_handler::{{closure}}::h95197ccd88846f7a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:517:13 [INFO] [stdout] 12: 0x55f03bd5258c - std::sys_common::backtrace::__rust_end_short_backtrace::h7641df9566f7b7d0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55f03bd54349 - rust_begin_unwind [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x55f03bcb0531 - core::panicking::panic_fmt::hbe99dddd3092ba3c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x55f03bcb047d - core::panicking::panic::h3de4db67bd397eb3 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/panicking.rs:50:5 [INFO] [stdout] 16: 0x55f03bcb69ff - friendly_file_server_rust::fs_utils::tests::test_is_subdir::hf5b35c6db8b58f7c [INFO] [stdout] at /opt/rustwide/workdir/src/fs_utils.rs:230:9 [INFO] [stdout] 17: 0x55f03bcb659a - friendly_file_server_rust::fs_utils::tests::test_is_subdir::{{closure}}::h710fbf3db731b74d [INFO] [stdout] at /opt/rustwide/workdir/src/fs_utils.rs:219:5 [INFO] [stdout] 18: 0x55f03bcc5a3e - core::ops::function::FnOnce::call_once::h5c2c1ef91023a5ba [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 19: 0x55f03bcf3d73 - core::ops::function::FnOnce::call_once::h673fbe3f96486fd2 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55f03bcf3d73 - test::__rust_begin_short_backtrace::h8eedc24e104ef6a0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:577:5 [INFO] [stdout] 21: 0x55f03bcf2820 - as core::ops::function::FnOnce>::call_once::h028d0969d3f94d78 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 22: 0x55f03bcf2820 - as core::ops::function::FnOnce<()>>::call_once::h7634b01590b1722b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 23: 0x55f03bcf2820 - std::panicking::try::do_call::hf74f869706dec63b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 24: 0x55f03bcf2820 - std::panicking::try::hd0b7346ebfaaae44 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 25: 0x55f03bcf2820 - std::panic::catch_unwind::hdbf6904f7c253080 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 26: 0x55f03bcf2820 - test::run_test_in_process::h87e95a014ac91067 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:600:18 [INFO] [stdout] 27: 0x55f03bcf2820 - test::run_test::run_test_inner::{{closure}}::hdd69ae44aaab3470 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:492:39 [INFO] [stdout] 28: 0x55f03bccdaf2 - test::run_test::run_test_inner::{{closure}}::hc159305704d5b68a [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/test/src/lib.rs:519:37 [INFO] [stdout] 29: 0x55f03bccdaf2 - std::sys_common::backtrace::__rust_begin_short_backtrace::h33d8a8ad5f788fcc [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 30: 0x55f03bcd1868 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h6181011ddf4b8353 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:481:17 [INFO] [stdout] 31: 0x55f03bcd1868 - as core::ops::function::FnOnce<()>>::call_once::hf924ea0a0f25a1c0 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:346:9 [INFO] [stdout] 32: 0x55f03bcd1868 - std::panicking::try::do_call::hd58061792d05fa5c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:401:40 [INFO] [stdout] 33: 0x55f03bcd1868 - std::panicking::try::h3080747417e5af37 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panicking.rs:365:19 [INFO] [stdout] 34: 0x55f03bcd1868 - std::panic::catch_unwind::hfeba515dcf36cb66 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/panic.rs:433:14 [INFO] [stdout] 35: 0x55f03bcd1868 - std::thread::Builder::spawn_unchecked::{{closure}}::h29d57a62faff749b [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/thread/mod.rs:480:30 [INFO] [stdout] 36: 0x55f03bcd1868 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h44709d312d2a9c59 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 37: 0x55f03bd59a17 - as core::ops::function::FnOnce>::call_once::h902e2cf6655e1b0c [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 38: 0x55f03bd59a17 - as core::ops::function::FnOnce>::call_once::h893a5452154309d1 [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 39: 0x55f03bd59a17 - std::sys::unix::thread::Thread::new::thread_start::hdedcb57c96ab37cd [INFO] [stdout] at /rustc/99e3aef02079e9c10583638520cd0c134dc3a01d/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 40: 0x7faecb00d609 - start_thread [INFO] [stdout] 41: 0x7faecaddf293 - clone [INFO] [stdout] 42: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] fs_utils::tests::test_is_subdir [INFO] [stdout] [INFO] [stdout] test result: FAILED. 8 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin friendly_file_server_rust' [INFO] running `Command { std: "docker" "inspect" "f943811297a2e7ee134fa2bfcdc05714c8de4f73d14d9bf6c314e20d163d52ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f943811297a2e7ee134fa2bfcdc05714c8de4f73d14d9bf6c314e20d163d52ee", kill_on_drop: false }` [INFO] [stdout] f943811297a2e7ee134fa2bfcdc05714c8de4f73d14d9bf6c314e20d163d52ee