[INFO] cloning repository https://github.com/AlexisStar/rustPetProject
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexisStar/rustPetProject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexisStar%2FrustPetProject", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexisStar%2FrustPetProject'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] de32f2030599a0bc7e0f0fbf893676271ba370d4
[INFO] checking AlexisStar/rustPetProject against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexisStar%2FrustPetProject" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AlexisStar/rustPetProject
[INFO] finished tweaking git repo https://github.com/AlexisStar/rustPetProject
[INFO] tweaked toml for git repo https://github.com/AlexisStar/rustPetProject written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AlexisStar/rustPetProject on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AlexisStar/rustPetProject 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b9d503b93a1fdc852c0a921adb7148875817568ee37ace51a49ff761b5700baf
[INFO] running `Command { std: "docker" "start" "-a" "b9d503b93a1fdc852c0a921adb7148875817568ee37ace51a49ff761b5700baf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b9d503b93a1fdc852c0a921adb7148875817568ee37ace51a49ff761b5700baf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9d503b93a1fdc852c0a921adb7148875817568ee37ace51a49ff761b5700baf", kill_on_drop: false }`
[INFO] [stdout] b9d503b93a1fdc852c0a921adb7148875817568ee37ace51a49ff761b5700baf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 936fb40e4612235bff62ddf815eb49822f423a5dc89a5a1faa00e42d5ec17b5b
[INFO] running `Command { std: "docker" "start" "-a" "936fb40e4612235bff62ddf815eb49822f423a5dc89a5a1faa00e42d5ec17b5b", kill_on_drop: false }`
[INFO] [stderr]     Checking FirstRustPetProject v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::http_middleware::context::Context`
[INFO] [stdout]  --> src/http_middleware/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::http_middleware::context::Context;
[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: `crate::http_middleware::context::Context`
[INFO] [stdout]  --> src/http_middleware/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::http_middleware::context::Context;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_response` found for mutable reference `&mut context::Context` in the current scope
[INFO] [stdout]   --> src/http_middleware/router_middleware.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |         context.set_response(response);
[INFO] [stdout]    |                 ^^^^^^^^^^^^ method not found in `&mut context::Context`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/controller/router.rs:24:61
[INFO] [stdout]    |
[INFO] [stdout] 24 |             .insert((method.to_string(), path.to_string()), Box::new(handler));
[INFO] [stdout]    |              ------ arguments to this method are incorrect  ^^^^^^^^^^^^^^^^^ expected `Controller`, found `Box<F>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Controller`
[INFO] [stdout]               found struct `Box<F>`
[INFO] [stdout] help: the return type of this call is `Box<F>` due to the type of the argument passed
[INFO] [stdout]   --> src/controller/router.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | /         self.routes
[INFO] [stdout] 24 | |             .insert((method.to_string(), path.to_string()), Box::new(handler));
[INFO] [stdout]    | |_____________________________________________________________-----------------^
[INFO] [stdout]    |                                                               |
[INFO] [stdout]    |                                                               this argument influences the return type of `insert`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/438eb4c1a1c3841523d7f672601e8adbe04cff28/library/std/src/collections/hash/map.rs:1207:12
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0618]: expected function, found `&Controller`
[INFO] [stdout]   --> src/controller/router.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(handler) = self
[INFO] [stdout]    |                     ------- `handler` has type `&Controller`
[INFO] [stdout] ...
[INFO] [stdout] 36 |             handler(context)
[INFO] [stdout]    |             ^^^^^^^---------
[INFO] [stdout]    |             |
[INFO] [stdout]    |             call expression requires function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_response` found for mutable reference `&mut context::Context` in the current scope
[INFO] [stdout]   --> src/http_middleware/router_middleware.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |         context.set_response(response);
[INFO] [stdout]    |                 ^^^^^^^^^^^^ method not found in `&mut context::Context`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*context` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/http_middleware/middleware.rs:29:17
[INFO] [stdout]    |
[INFO] [stdout] 28 |             if let Some(next_middleware) = context.next_middleware() {
[INFO] [stdout]    |                                            ------- immutable borrow occurs here
[INFO] [stdout] 29 |                 next_middleware.handle(context)?;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^------^^^^^^^^^
[INFO] [stdout]    |                 |               |
[INFO] [stdout]    |                 |               immutable borrow later used by call
[INFO] [stdout]    |                 mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/controller/router.rs:24:61
[INFO] [stdout]    |
[INFO] [stdout] 24 |             .insert((method.to_string(), path.to_string()), Box::new(handler));
[INFO] [stdout]    |              ------ arguments to this method are incorrect  ^^^^^^^^^^^^^^^^^ expected `Controller`, found `Box<F>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Controller`
[INFO] [stdout]               found struct `Box<F>`
[INFO] [stdout] help: the return type of this call is `Box<F>` due to the type of the argument passed
[INFO] [stdout]   --> src/controller/router.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | /         self.routes
[INFO] [stdout] 24 | |             .insert((method.to_string(), path.to_string()), Box::new(handler));
[INFO] [stdout]    | |_____________________________________________________________-----------------^
[INFO] [stdout]    |                                                               |
[INFO] [stdout]    |                                                               this argument influences the return type of `insert`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/438eb4c1a1c3841523d7f672601e8adbe04cff28/library/std/src/collections/hash/map.rs:1207:12
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0618]: expected function, found `&Controller`
[INFO] [stdout]   --> src/controller/router.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(handler) = self
[INFO] [stdout]    |                     ------- `handler` has type `&Controller`
[INFO] [stdout] ...
[INFO] [stdout] 36 |             handler(context)
[INFO] [stdout]    |             ^^^^^^^---------
[INFO] [stdout]    |             |
[INFO] [stdout]    |             call expression requires function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*context` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/http_middleware/middleware.rs:29:17
[INFO] [stdout]    |
[INFO] [stdout] 28 |             if let Some(next_middleware) = context.next_middleware() {
[INFO] [stdout]    |                                            ------- immutable borrow occurs here
[INFO] [stdout] 29 |                 next_middleware.handle(context)?;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^------^^^^^^^^^
[INFO] [stdout]    |                 |               |
[INFO] [stdout]    |                 |               immutable borrow later used by call
[INFO] [stdout]    |                 mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let mut middleware_chain = build_default_middleware_chain();
[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] Some errors have detailed explanations: E0308, E0502, E0599, E0618.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `FirstRustPetProject` (bin "FirstRustPetProject" test) due to 4 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let mut middleware_chain = build_default_middleware_chain();
[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] Some errors have detailed explanations: E0308, E0502, E0599, E0618.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `FirstRustPetProject` (bin "FirstRustPetProject") due to 4 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "936fb40e4612235bff62ddf815eb49822f423a5dc89a5a1faa00e42d5ec17b5b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "936fb40e4612235bff62ddf815eb49822f423a5dc89a5a1faa00e42d5ec17b5b", kill_on_drop: false }`
[INFO] [stdout] 936fb40e4612235bff62ddf815eb49822f423a5dc89a5a1faa00e42d5ec17b5b
