[INFO] cloning repository https://github.com/quentinlegot/rest_server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quentinlegot/rest_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquentinlegot%2Frest_server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquentinlegot%2Frest_server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9c438118fd248116e0fe6a5c87d2f0f5f48d9cbf
[INFO] testing quentinlegot/rest_server against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquentinlegot%2Frest_server" "/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/quentinlegot/rest_server
[INFO] finished tweaking git repo https://github.com/quentinlegot/rest_server
[INFO] tweaked toml for git repo https://github.com/quentinlegot/rest_server written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/quentinlegot/rest_server on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/quentinlegot/rest_server 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a5beeef399e9ed3acc0226226039dc20d16a34dfe8171fba3d8919d807fdf951
[INFO] running `Command { std: "docker" "start" "-a" "a5beeef399e9ed3acc0226226039dc20d16a34dfe8171fba3d8919d807fdf951", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a5beeef399e9ed3acc0226226039dc20d16a34dfe8171fba3d8919d807fdf951", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a5beeef399e9ed3acc0226226039dc20d16a34dfe8171fba3d8919d807fdf951", kill_on_drop: false }`
[INFO] [stdout] a5beeef399e9ed3acc0226226039dc20d16a34dfe8171fba3d8919d807fdf951
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 58b85665da0b838f7a6ea4fa526d8d1ffc505b1c06130cf5bd951a3d0dd1f726
[INFO] running `Command { std: "docker" "start" "-a" "58b85665da0b838f7a6ea4fa526d8d1ffc505b1c06130cf5bd951a3d0dd1f726", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling nix v0.24.1
[INFO] [stderr]    Compiling ctrlc v3.2.2
[INFO] [stderr]    Compiling rest_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.90s
[INFO] running `Command { std: "docker" "inspect" "58b85665da0b838f7a6ea4fa526d8d1ffc505b1c06130cf5bd951a3d0dd1f726", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "58b85665da0b838f7a6ea4fa526d8d1ffc505b1c06130cf5bd951a3d0dd1f726", kill_on_drop: false }`
[INFO] [stdout] 58b85665da0b838f7a6ea4fa526d8d1ffc505b1c06130cf5bd951a3d0dd1f726
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 271bc08de25c5426dfcd12bad39f9fe402169e8dd67c57172b3122e752e501fd
[INFO] running `Command { std: "docker" "start" "-a" "271bc08de25c5426dfcd12bad39f9fe402169e8dd67c57172b3122e752e501fd", kill_on_drop: false }`
[INFO] [stderr]    Compiling rest_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s
[INFO] running `Command { std: "docker" "inspect" "271bc08de25c5426dfcd12bad39f9fe402169e8dd67c57172b3122e752e501fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "271bc08de25c5426dfcd12bad39f9fe402169e8dd67c57172b3122e752e501fd", kill_on_drop: false }`
[INFO] [stdout] 271bc08de25c5426dfcd12bad39f9fe402169e8dd67c57172b3122e752e501fd
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] cb13656670e7a9276306c4f440c4e021992af6937a9d62b8f4bc7488d543b136
[INFO] running `Command { std: "docker" "start" "-a" "cb13656670e7a9276306c4f440c4e021992af6937a9d62b8f4bc7488d543b136", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/build/rest_server/bd6a671ca9e9eef2/deps/rest_server-bd6a671ca9e9eef2)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/main.rs (/opt/rustwide/target/debug/build/rest_server/97df8e2f2c00bbf1/deps/main-97df8e2f2c00bbf1)
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests rest_server
[INFO] [stderr] warning: unexpected character `/`
[INFO] [stderr]    --> src/request.rs:114:5
[INFO] [stderr]     |
[INFO] [stderr] 114 | /     /// Return the value of the path parameter at the position index.
[INFO] [stderr] 115 | |     /// 
[INFO] [stderr] 116 | |     /// Return None if the index is out of range.
[INFO] [stderr] 117 | |     /// 
[INFO] [stderr] ...   |
[INFO] [stderr] 121 | |     /// get_path_positon(1) => /profile
[INFO] [stderr] 122 | |     /// get_path_positon(2) => None```
[INFO] [stderr]     | |______________________________________^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(rustdoc::invalid_codeblock_attributes)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: 1 warning emitted
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/lib.rs - (line 8) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 8) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Server`
[INFO] [stdout]   --> src/lib.rs:10:18
[INFO] [stdout]    |
[INFO] [stdout] 10 |    let mut app = Server::new();
[INFO] [stdout]    |                  ^^^^^^ use of undeclared type `Server`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  9 + use rest_server::Server;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Request` in this scope
[INFO] [stdout]   --> src/lib.rs:16:19
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn index(request: Request, mut response: Response) {
[INFO] [stdout]    |                   ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  9 + use std::error::Request;
[INFO] [stdout]    |
[INFO] [stdout]  9 + use rest_server::request::Request;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Response` in this scope
[INFO] [stdout]   --> src/lib.rs:16:42
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn index(request: Request, mut response: Response) {
[INFO] [stdout]    |                                          ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  9 + use rest_server::response::Response;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status`
[INFO] [stdout]   --> src/lib.rs:19:24
[INFO] [stdout]    |
[INFO] [stdout] 19 |    response.set_status(Status::from(418));
[INFO] [stdout]    |                        ^^^^^^ use of undeclared type `Status`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  9 + use rest_server::status::Status;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 8)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "cb13656670e7a9276306c4f440c4e021992af6937a9d62b8f4bc7488d543b136", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cb13656670e7a9276306c4f440c4e021992af6937a9d62b8f4bc7488d543b136", kill_on_drop: false }`
[INFO] [stdout] cb13656670e7a9276306c4f440c4e021992af6937a9d62b8f4bc7488d543b136
