[INFO] crate lucifer 0.1.0 is already in cache [INFO] checking lucifer-0.1.0 against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] extracting crate lucifer 0.1.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate lucifer 0.1.0 on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate lucifer 0.1.0 [INFO] finished tweaking crates.io crate lucifer 0.1.0 [INFO] tweaked toml for crates.io crate lucifer 0.1.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b37bae16aecfae066b092ed887404b70a4f344e3191414c555401811bb69f0c6 [INFO] running `"docker" "start" "-a" "b37bae16aecfae066b092ed887404b70a4f344e3191414c555401811bb69f0c6"` [INFO] [stderr] Checking lucifer v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/http/request.rs:66:39 [INFO] [stderr] | [INFO] [stderr] 66 | return &buffer[..i+1];; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:9:25 [INFO] [stderr] | [INFO] [stderr] 9 | middleware: Vec> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Middleware+Sync+Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:20:35 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn add(&mut self, mw: Box) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Middleware+Sync+Send` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:24:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn get_handle(&'a self, router: &'b Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | router: &'b Fn(Request, Args) -> Response [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:36:56 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn new(store: &'a MiddlewareStore, router: &'b Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/http/request.rs:66:39 [INFO] [stderr] | [INFO] [stderr] 66 | return &buffer[..i+1];; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:9:25 [INFO] [stderr] | [INFO] [stderr] 9 | middleware: Vec> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Middleware+Sync+Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:20:35 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn add(&mut self, mw: Box) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Middleware+Sync+Send` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:24:45 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn get_handle(&'a self, router: &'b Fn(Request, Args) -> Response)-> MiddlewareHandle<'a, 'b> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | router: &'b Fn(Request, Args) -> Response [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middleware.rs:36:56 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn new(store: &'a MiddlewareStore, router: &'b Fn(Request, Args) -> Response) -> MiddlewareHandle<'a, 'b> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(Request, Args) -> Response` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:253:13 [INFO] [stderr] | [INFO] [stderr] 252 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 253 | Some((func, _args)) => {if func != test1 {panic!("wrong return value")}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:254:13 [INFO] [stderr] | [INFO] [stderr] 252 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 253 | Some((func, _args)) => {if func != test1 {panic!("wrong return value")}}, [INFO] [stderr] 254 | None => panic!("Router fn does not return Some.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:258:13 [INFO] [stderr] | [INFO] [stderr] 257 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 258 | Some((func, _args)) => {if func != test1 {panic!("wrong return value 2nd visit")}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:259:13 [INFO] [stderr] | [INFO] [stderr] 257 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 258 | Some((func, _args)) => {if func != test1 {panic!("wrong return value 2nd visit")}}, [INFO] [stderr] 259 | None => panic!("Router fn does not return Some at 2nd visit.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 262 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 263 | Some((func, _args)) => {if func != empty {panic!("wrong return value")}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:264:13 [INFO] [stderr] | [INFO] [stderr] 262 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 263 | Some((func, _args)) => {if func != empty {panic!("wrong return value")}}, [INFO] [stderr] 264 | None => panic!("Router fn does not return Some.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:269:13 [INFO] [stderr] | [INFO] [stderr] 268 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 269 | Some((func, args)) => {if func != empty {panic!("wrong return value")}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:270:13 [INFO] [stderr] | [INFO] [stderr] 268 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 269 | Some((func, args)) => {if func != empty {panic!("wrong return value")}}, [INFO] [stderr] 270 | None => panic!("Router fn does not return Some at /.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:281:13 [INFO] [stderr] | [INFO] [stderr] 280 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 281 | Some((_func, args)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:287:13 [INFO] [stderr] | [INFO] [stderr] 280 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] ... [INFO] [stderr] 287 | None => panic!("Router fn does not return Some with variables.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:298:13 [INFO] [stderr] | [INFO] [stderr] 297 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 298 | Some((_func, args)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/paths.rs:304:13 [INFO] [stderr] | [INFO] [stderr] 297 | match test { [INFO] [stderr] | ---- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] ... [INFO] [stderr] 304 | None => panic!("Router fn does not return Some with wildcard route.") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/route_handler.rs:72:13 [INFO] [stderr] | [INFO] [stderr] 71 | match routes.get_route(Method::GET, "/some") { [INFO] [stderr] | -------------------------------------- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 72 | Some(_) => {}, [INFO] [stderr] | ^^^^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/router/route_handler.rs:73:13 [INFO] [stderr] | [INFO] [stderr] 71 | match routes.get_route(Method::GET, "/some") { [INFO] [stderr] | -------------------------------------- this expression has type `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] 72 | Some(_) => {}, [INFO] [stderr] 73 | None => panic!("Server routing error") [INFO] [stderr] | ^^^^ expected tuple, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected tuple `(std::option::Option) -> http::Response>, std::collections::HashMap)` [INFO] [stderr] found enum `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `lucifer`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b37bae16aecfae066b092ed887404b70a4f344e3191414c555401811bb69f0c6"` [INFO] running `"docker" "rm" "-f" "b37bae16aecfae066b092ed887404b70a4f344e3191414c555401811bb69f0c6"` [INFO] [stdout] b37bae16aecfae066b092ed887404b70a4f344e3191414c555401811bb69f0c6