[INFO] cloning repository https://github.com/abrowne2/axum-tus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abrowne2/axum-tus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabrowne2%2Faxum-tus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabrowne2%2Faxum-tus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8020cd0ca1f8644c605f298c8b3dd5ed9bfa4615 [INFO] checking abrowne2/axum-tus against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabrowne2%2Faxum-tus" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/abrowne2/axum-tus [INFO] finished tweaking git repo https://github.com/abrowne2/axum-tus [INFO] tweaked toml for git repo https://github.com/abrowne2/axum-tus written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/abrowne2/axum-tus on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/abrowne2/axum-tus 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" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking abrowne2/axum-tus against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabrowne2%2Faxum-tus" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/abrowne2/axum-tus [INFO] finished tweaking git repo https://github.com/abrowne2/axum-tus [INFO] tweaked toml for git repo https://github.com/abrowne2/axum-tus written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/abrowne2/axum-tus on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/abrowne2/axum-tus 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" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v2.3.2 [INFO] [stderr] Downloaded tower-http v0.4.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 237060745c550e1470fe622a1cc4e646413df8cd1320bfba7b34e23d30846bc4 [INFO] running `Command { std: "docker" "start" "-a" "237060745c550e1470fe622a1cc4e646413df8cd1320bfba7b34e23d30846bc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "237060745c550e1470fe622a1cc4e646413df8cd1320bfba7b34e23d30846bc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "237060745c550e1470fe622a1cc4e646413df8cd1320bfba7b34e23d30846bc4", kill_on_drop: false }` [INFO] [stdout] 237060745c550e1470fe622a1cc4e646413df8cd1320bfba7b34e23d30846bc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c48756923cf43f007889be44efd94708e8f7a1df0cea8eb461b27261e720cd9b [INFO] running `Command { std: "docker" "start" "-a" "c48756923cf43f007889be44efd94708e8f7a1df0cea8eb461b27261e720cd9b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.62 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking lock_api v0.4.10 [INFO] [stderr] Compiling tokio v1.28.2 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking matchit v0.7.0 [INFO] [stderr] Checking bitflags v2.3.2 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.18 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.0 [INFO] [stderr] Checking pin-project v1.1.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking tower-http v0.4.1 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking serde_path_to_error v0.1.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.3.4 [INFO] [stderr] Checking axum-tus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/filesystem/file_store.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | Ok(PatchOption::Patched(metadata.len())) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use crate::filesystem::file_store::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/filesystem/file_store.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/filesystem/file_store.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Terminated` and `self` [INFO] [stdout] --> src/filesystem/file_store.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | file_info::{Built, Completed, Created, FileInfo, Terminated, self}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/tus_service.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::{Future, future::BoxFuture}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue` and `StatusCode` [INFO] [stdout] --> src/tus_service.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use http::{Request, StatusCode, HeaderValue, Response}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::body::Body` [INFO] [stdout] --> src/tus_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::body::Body; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/tus_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::AxumTusHeaders` [INFO] [stdout] --> src/tus_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::AxumTusHeaders; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts` and `Path` [INFO] [stdout] --> src/request_handlers/creation.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `Uri` [INFO] [stdout] --> src/request_handlers/creation.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use hyper::{ Request, Uri, HeaderMap}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Cursor` [INFO] [stdout] --> src/request_handlers/creation.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc, convert::Infallible}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AuthClaims` [INFO] [stdout] --> src/request_handlers/creation.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::AuthClaims; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts`, `Full`, and `HttpBody` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | http::{Response, StatusCode}, [INFO] [stdout] 5 | body::{Body,Full, HttpBody}, response, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Cursor` and `result` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc, result, convert::Infallible}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRequestParts` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `Uri` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper::{Request, Uri, HeaderMap}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Cursor` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/filesystem/file_store.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | Ok(PatchOption::Patched(metadata.len())) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use crate::filesystem::file_store::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 1 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/filesystem/file_store.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/filesystem/file_store.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Terminated` and `self` [INFO] [stdout] --> src/filesystem/file_store.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | file_info::{Built, Completed, Created, FileInfo, Terminated, self}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/tus_service.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::{Future, future::BoxFuture}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue` and `StatusCode` [INFO] [stdout] --> src/tus_service.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use http::{Request, StatusCode, HeaderValue, Response}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::body::Body` [INFO] [stdout] --> src/tus_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::body::Body; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/tus_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::AxumTusHeaders` [INFO] [stdout] --> src/tus_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::AxumTusHeaders; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts` and `Path` [INFO] [stdout] --> src/request_handlers/creation.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `Uri` [INFO] [stdout] --> src/request_handlers/creation.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use hyper::{ Request, Uri, HeaderMap}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Cursor` [INFO] [stdout] --> src/request_handlers/creation.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc, convert::Infallible}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AuthClaims` [INFO] [stdout] --> src/request_handlers/creation.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::AuthClaims; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequestParts`, `Full`, and `HttpBody` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | http::{Response, StatusCode}, [INFO] [stdout] 5 | body::{Body,Full, HttpBody}, response, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::Cursor` and `result` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc, result, convert::Infallible}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRequestParts` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Extension, Path, FromRequest, FromRequestParts}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `Uri` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper::{Request, Uri, HeaderMap}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Cursor` [INFO] [stdout] --> src/request_handlers/file_info_handler.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io::Cursor, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/request_handlers/info.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut response = http::Response::builder() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/request_handlers/info.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut response = http::Response::builder() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `File: Serialize` is not satisfied [INFO] [stdout] --> src/filesystem/file_store.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | serde_json::to_writer(&mut file_info, &file).unwrap(); [INFO] [stdout] | --------------------- ^^^^^ the trait `Serialize` is not implemented for `File` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 136 others [INFO] [stdout] note: required by a bound in `to_writer` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.99/src/ser.rs:2078:17 [INFO] [stdout] | [INFO] [stdout] 2075 | pub fn to_writer(writer: W, value: &T) -> Result<()> [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 2078 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::fs::File: Serialize` is not satisfied [INFO] [stdout] --> src/filesystem/file_store.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | serde_json::to_writer(&mut file_info, &file).unwrap(); [INFO] [stdout] | --------------------- ^^^^^ the trait `Serialize` is not implemented for `std::fs::File` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 136 others [INFO] [stdout] note: required by a bound in `to_writer` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.99/src/ser.rs:2078:17 [INFO] [stdout] | [INFO] [stdout] 2075 | pub fn to_writer(writer: W, value: &T) -> Result<()> [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 2078 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/filesystem/file_store.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 218 | let _file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 218 - let file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] 218 + let request_handlers::_ = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tus_resumable_header` [INFO] [stdout] --> src/request_handlers/creation.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let tus_resumable_header = match header_map.resumable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tus_resumable_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/filesystem/file_store.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 218 | let _file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 218 - let file = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] 218 + let request_handlers::_ = std::fs::remove_file(file_path).map_err(|e| FileStoreError::TerminationError(Box::new(e)))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | async fn from_request(mut req: Request, state: &S) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tus_resumable_header` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let tus_resumable_header = match header_map.resumable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tus_resumable_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/request_handlers/upload_handler.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | async fn from_request(mut req: Request, state: &S) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tus_resumable_header` [INFO] [stdout] --> src/request_handlers/creation.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let tus_resumable_header = match header_map.resumable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tus_resumable_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | async fn from_request(mut req: Request, state: &S) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tus_resumable_header` [INFO] [stdout] --> src/request_handlers/upload_handler.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let tus_resumable_header = match header_map.resumable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tus_resumable_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/request_handlers/upload_handler.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | async fn from_request(mut req: Request, state: &S) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `axum-tus` (lib) due to 2 previous errors; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `axum-tus` (lib test) due to 2 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c48756923cf43f007889be44efd94708e8f7a1df0cea8eb461b27261e720cd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c48756923cf43f007889be44efd94708e8f7a1df0cea8eb461b27261e720cd9b", kill_on_drop: false }` [INFO] [stdout] c48756923cf43f007889be44efd94708e8f7a1df0cea8eb461b27261e720cd9b