[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 1.54.0 for beta-1.55-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmickjohn%2Ffriendly_file_server_rust" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mickjohn/friendly_file_server_rust on toolchain 1.54.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.54.0" "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-5/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" "+1.54.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+1.54.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6834c58df23ee1ce67f556c17086d8f5f0318516fbcc541ef9a3110ef788e9e [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" "f6834c58df23ee1ce67f556c17086d8f5f0318516fbcc541ef9a3110ef788e9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6834c58df23ee1ce67f556c17086d8f5f0318516fbcc541ef9a3110ef788e9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6834c58df23ee1ce67f556c17086d8f5f0318516fbcc541ef9a3110ef788e9e", kill_on_drop: false }` [INFO] [stdout] f6834c58df23ee1ce67f556c17086d8f5f0318516fbcc541ef9a3110ef788e9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+1.54.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f0ff3e0b9163cb68b390e807dc266085991b662f5d6cda3fe6f3eb0f18a3a4c [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" "6f0ff3e0b9163cb68b390e807dc266085991b662f5d6cda3fe6f3eb0f18a3a4c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling tinyvec v1.0.1 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling blake2b_simd v0.5.11 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling block-cipher v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling blowfish v0.6.0 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling rust-argon2 v0.8.2 [INFO] [stderr] Compiling unicode-normalization v0.1.14 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling bcrypt v0.8.2 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling headers v0.3.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling postgres-protocol v0.5.3 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling multipart v0.17.0 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [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 hyper v0.13.9 [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 3m 22s [INFO] running `Command { std: "docker" "inspect" "6f0ff3e0b9163cb68b390e807dc266085991b662f5d6cda3fe6f3eb0f18a3a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f0ff3e0b9163cb68b390e807dc266085991b662f5d6cda3fe6f3eb0f18a3a4c", kill_on_drop: false }` [INFO] [stdout] 6f0ff3e0b9163cb68b390e807dc266085991b662f5d6cda3fe6f3eb0f18a3a4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+1.54.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] af85ea6e881cc95cc45a9e70a614f019281c3a8b13621da09a09e3a2c197f54f [INFO] running `Command { std: "docker" "start" "-a" "af85ea6e881cc95cc45a9e70a614f019281c3a8b13621da09a09e3a2c197f54f", 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.44s [INFO] running `Command { std: "docker" "inspect" "af85ea6e881cc95cc45a9e70a614f019281c3a8b13621da09a09e3a2c197f54f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af85ea6e881cc95cc45a9e70a614f019281c3a8b13621da09a09e3a2c197f54f", kill_on_drop: false }` [INFO] [stdout] af85ea6e881cc95cc45a9e70a614f019281c3a8b13621da09a09e3a2c197f54f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+1.54.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 324f7604f01b18086054150fd2997094f45bb1e49427d9eb3cda6b557333be39 [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" "324f7604f01b18086054150fd2997094f45bb1e49427d9eb3cda6b557333be39", 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] [stdout] test fs_utils::tests::test_is_file ... ok [INFO] [stderr] 10 | use tokio_postgres::{NoTls}; [INFO] [stdout] test fs_utils::tests::test_create_trail ... ok [INFO] [stderr] | ^^^^^ [INFO] [stdout] test webserver::models::tests::test_auth_roles_ordering ... ok [INFO] [stderr] | [INFO] [stdout] test fs_utils::tests::test_get_directory_listing ... ok [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] test args::tests::test_validate_ip_addr ... ok [INFO] [stderr] [INFO] [stdout] test fs_utils::tests::test_create_serve_point ... ok [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.19s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/friendly_file_server_rust-d286519e4caec7e2) [INFO] [stdout] test fs_utils::tests::test_new_serve_point_panics - should panic ... ok [INFO] [stderr] error: test failed, to rerun pass '--bin friendly_file_server_rust' [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: 0x55e713b33d50 - std::backtrace_rs::backtrace::libunwind::trace::h34055254b57d8e79 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55e713b33d50 - std::backtrace_rs::backtrace::trace_unsynchronized::h8f1e3fbd9afff6ec [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55e713b33d50 - std::sys_common::backtrace::_print_fmt::h3a99a796b770c360 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55e713b33d50 - ::fmt::h32d1f94a80615d18 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55e713b56efc - core::fmt::write::h306731c068f7162c [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/fmt/mod.rs:1110:17 [INFO] [stdout] 5: 0x55e713b30625 - std::io::Write::write_fmt::h87f19b0a2cd190bc [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/io/mod.rs:1588:15 [INFO] [stdout] 6: 0x55e713b35edb - std::sys_common::backtrace::_print::h5abaa2601a852287 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55e713b35edb - std::sys_common::backtrace::print::h8d81445442bb638f [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55e713b35edb - std::panicking::default_hook::{{closure}}::hcfe804496a9fa747 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x55e713b359ec - std::panicking::default_hook::hbea8e3ccf2ba8901 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x55e713b365a4 - std::panicking::rust_panic_with_hook::h7ee9e1a2d0f8975a [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x55e713b36057 - std::panicking::begin_panic_handler::{{closure}}::h8ab3b4491718b2c7 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:517:13 [INFO] [stdout] 12: 0x55e713b3424c - std::sys_common::backtrace::__rust_end_short_backtrace::hd489062ffa586a9f [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55e713b35fe9 - rust_begin_unwind [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x55e713a946d1 - core::panicking::panic_fmt::hca6330e3e14086b4 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x55e713a9461d - core::panicking::panic::h1a48d878ff3dcd40 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:50:5 [INFO] [stdout] 16: 0x55e713a9acef - friendly_file_server_rust::fs_utils::tests::test_is_subdir::hba07b7fcb604b3a9 [INFO] [stdout] at /opt/rustwide/workdir/src/fs_utils.rs:230:9 [INFO] [stdout] 17: 0x55e713a9a88a - friendly_file_server_rust::fs_utils::tests::test_is_subdir::{{closure}}::h732b9f34dd24f474 [INFO] [stdout] at /opt/rustwide/workdir/src/fs_utils.rs:219:5 [INFO] [stdout] 18: 0x55e713aa839e - core::ops::function::FnOnce::call_once::h4689a030b44e22da [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 19: 0x55e713add353 - core::ops::function::FnOnce::call_once::h152e7e439ff59e19 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55e713add353 - test::__rust_begin_short_backtrace::h0908f3b1fdbb72ab [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/test/src/lib.rs:577:5 [INFO] [stdout] 21: 0x55e713adbe10 - as core::ops::function::FnOnce>::call_once::hf6d2a51e5587546c [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 22: 0x55e713adbe10 - as core::ops::function::FnOnce<()>>::call_once::h8af660f3a89ef593 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:347:9 [INFO] [stdout] 23: 0x55e713adbe10 - std::panicking::try::do_call::hd36aef60f84b6d36 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401:40 [INFO] [stdout] 24: 0x55e713adbe10 - std::panicking::try::h9932b4480e69817c [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365:19 [INFO] [stdout] 25: 0x55e713adbe10 - std::panic::catch_unwind::h6aa177099cfff5f8 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434:14 [INFO] [stdout] 26: 0x55e713adbe10 - test::run_test_in_process::h5884d6f2d99e20c3 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/test/src/lib.rs:600:18 [INFO] [stdout] 27: 0x55e713adbe10 - test::run_test::run_test_inner::{{closure}}::h6fdc58c6d5f5b6e3 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/test/src/lib.rs:492:39 [INFO] [stdout] 28: 0x55e713ab54c2 - test::run_test::run_test_inner::{{closure}}::h408365d67a78ade8 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/test/src/lib.rs:519:37 [INFO] [stdout] 29: 0x55e713ab54c2 - std::sys_common::backtrace::__rust_begin_short_backtrace::hb560b77c4f701523 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 30: 0x55e713ab9078 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hf2e7831dad93c597 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/thread/mod.rs:481:17 [INFO] [stdout] 31: 0x55e713ab9078 - as core::ops::function::FnOnce<()>>::call_once::hd2e08783d8be4d02 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:347:9 [INFO] [stdout] 32: 0x55e713ab9078 - std::panicking::try::do_call::h062597b7acfd6b82 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401:40 [INFO] [stdout] 33: 0x55e713ab9078 - std::panicking::try::h0d7b79db04c14552 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365:19 [INFO] [stdout] 34: 0x55e713ab9078 - std::panic::catch_unwind::hb01a0b5e7c8cd43b [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434:14 [INFO] [stdout] 35: 0x55e713ab9078 - std::thread::Builder::spawn_unchecked::{{closure}}::h5bde48cc887e0d1e [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/thread/mod.rs:480:30 [INFO] [stdout] 36: 0x55e713ab9078 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h745ea30807a29e55 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 37: 0x55e713b3b6e7 - as core::ops::function::FnOnce>::call_once::h7ece6cfefaff1005 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 38: 0x55e713b3b6e7 - as core::ops::function::FnOnce>::call_once::hb8b48e55c21f193e [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] 39: 0x55e713b3b6e7 - std::sys::unix::thread::Thread::new::thread_start::h8c7c4450dba62914 [INFO] [stdout] at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys/unix/thread.rs:71:17 [INFO] [stdout] 40: 0x7f85b9b99609 - start_thread [INFO] [stdout] 41: 0x7f85b996b293 - 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] running `Command { std: "docker" "inspect" "324f7604f01b18086054150fd2997094f45bb1e49427d9eb3cda6b557333be39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "324f7604f01b18086054150fd2997094f45bb1e49427d9eb3cda6b557333be39", kill_on_drop: false }` [INFO] [stdout] 324f7604f01b18086054150fd2997094f45bb1e49427d9eb3cda6b557333be39