[INFO] cloning repository https://github.com/stigkj/rustful-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stigkj/rustful-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstigkj%2Frustful-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstigkj%2Frustful-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1bb2401c4dcf7c534851f51cb0a3ff283682327 [INFO] checking stigkj/rustful-example against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstigkj%2Frustful-example" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stigkj/rustful-example on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stigkj/rustful-example [INFO] finished tweaking git repo https://github.com/stigkj/rustful-example [INFO] tweaked toml for git repo https://github.com/stigkj/rustful-example written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/stigkj/rustful-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-8/source/src/main.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/Ogeon/rustful` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-8/source/src/main.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc70f4dc03adf5a4760b77ef3f8626d7609a45e401ff005e2a357f53cf2560f6 [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" "dc70f4dc03adf5a4760b77ef3f8626d7609a45e401ff005e2a357f53cf2560f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc70f4dc03adf5a4760b77ef3f8626d7609a45e401ff005e2a357f53cf2560f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc70f4dc03adf5a4760b77ef3f8626d7609a45e401ff005e2a357f53cf2560f6", kill_on_drop: false }` [INFO] [stdout] dc70f4dc03adf5a4760b77ef3f8626d7609a45e401ff005e2a357f53cf2560f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--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] 2fd0b60a50275cd39b3980d92780f8cfbdbdbfa37b5621a16f2130435fb743af [INFO] running `Command { std: "docker" "start" "-a" "2fd0b60a50275cd39b3980d92780f8cfbdbdbfa37b5621a16f2130435fb743af", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/src/main.rs [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking safemem v0.2.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Checking phf_shared v0.7.24 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking buf_redux v0.6.3 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling rustful v0.9.0 (https://github.com/Ogeon/rustful#24173f35) [INFO] [stderr] Checking multipart v0.14.2 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking test v0.1.0-pre (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rustful::TreeRouter` [INFO] [stdout] --> src/main.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | use rustful::{Server, Context, Response, TreeRouter, Handler}; [INFO] [stdout] | ^^^^^^^^^^ no `TreeRouter` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustful::TreeRouter` [INFO] [stdout] --> src/main.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | use rustful::{Server, Context, Response, TreeRouter, Handler}; [INFO] [stdout] | ^^^^^^^^^^ no `TreeRouter` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `insert_routes` in this scope [INFO] [stdout] --> src/main.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | let router = insert_routes!{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Cache` is not a member of trait `Handler` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | type Cache = (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a member of trait `Handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `handle_request` is not a member of trait `Handler` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / fn handle_request(&self, context: Context, response: Response) { [INFO] [stdout] 32 | | self.0(context, response); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____^ not a member of trait `Handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustful::Method::Get` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rustful::Method::Get; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `insert_routes` in this scope [INFO] [stdout] --> src/main.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | let router = insert_routes!{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Cache` is not a member of trait `Handler` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | type Cache = (); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not a member of trait `Handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `handle_request` is not a member of trait `Handler` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / fn handle_request(&self, context: Context, response: Response) { [INFO] [stdout] 32 | | self.0(context, response); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____^ not a member of trait `Handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rustful::Method::Get` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rustful::Method::Get; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `handle` [INFO] [stdout] --> src/main.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | impl Handler for HandlerFn { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `handle` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn handle(&self, _: rustful::Context<'_, '_, '_, '_>, _: Response<'_, '_>) { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `handle` [INFO] [stdout] --> src/main.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | impl Handler for HandlerFn { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `handle` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn handle(&self, _: rustful::Context<'_, '_, '_, '_>, _: Response<'_, '_>) { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_writer` found for struct `Response<'_, '_>` in the current scope [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | if let Err(e) = response.into_writer().send(format!("Hello, {}!", person)) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Response<'_, '_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `log` on type `rustful::Context<'_, '_, '_, '_>` [INFO] [stdout] --> src/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | context.log.note(&format!("could not send hello: {}", e.description())); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `headers`, `http_version`, `address`, `method`, `uri_path` ... and 6 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_writer` found for struct `Response<'_, '_>` in the current scope [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | if let Err(e) = response.into_writer().send(format!("Hello, {}!", person)) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Response<'_, '_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `log` on type `rustful::Context<'_, '_, '_, '_>` [INFO] [stdout] --> src/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | context.log.note(&format!("could not send hello: {}", e.description())); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `headers`, `http_version`, `address`, `method`, `uri_path` ... and 6 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let server_result = Server::new().port(8080).handlers(router).run(); [INFO] [stdout] | ^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let server_result = Server::new().port(8080).handlers(router).run(); [INFO] [stdout] | ^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `port` found for struct `rustful::Server<_>` in the current scope [INFO] [stdout] --> src/main.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | let server_result = Server::new().port(8080).handlers(router).run(); [INFO] [stdout] | ^^^^ method not found in `rustful::Server<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `port` found for struct `rustful::Server<_>` in the current scope [INFO] [stdout] --> src/main.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 49 | let server_result = Server::new().port(8080).handlers(router).run(); [INFO] [stdout] | ^^^^ method not found in `rustful::Server<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0061, E0407, E0432, E0437, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0061, E0407, E0432, E0437, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `test` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "2fd0b60a50275cd39b3980d92780f8cfbdbdbfa37b5621a16f2130435fb743af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd0b60a50275cd39b3980d92780f8cfbdbdbfa37b5621a16f2130435fb743af", kill_on_drop: false }` [INFO] [stdout] 2fd0b60a50275cd39b3980d92780f8cfbdbdbfa37b5621a16f2130435fb743af