[INFO] cloning repository https://github.com/vlbezak/rust-async-router [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vlbezak/rust-async-router" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvlbezak%2Frust-async-router", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvlbezak%2Frust-async-router'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f8fdf4370d7baba67741faad4b2bc0da007a49a [INFO] checking vlbezak/rust-async-router against master#899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvlbezak%2Frust-async-router" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vlbezak/rust-async-router on toolchain 899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vlbezak/rust-async-router [INFO] finished tweaking git repo https://github.com/vlbezak/rust-async-router [INFO] tweaked toml for git repo https://github.com/vlbezak/rust-async-router written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vlbezak/rust-async-router 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" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5786cd306653b8c7e2321ec9734d7454fc6321a87d0546dbdabb7a5b9b75228 [INFO] running `Command { std: "docker" "start" "-a" "c5786cd306653b8c7e2321ec9734d7454fc6321a87d0546dbdabb7a5b9b75228", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5786cd306653b8c7e2321ec9734d7454fc6321a87d0546dbdabb7a5b9b75228", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5786cd306653b8c7e2321ec9734d7454fc6321a87d0546dbdabb7a5b9b75228", kill_on_drop: false }` [INFO] [stdout] c5786cd306653b8c7e2321ec9734d7454fc6321a87d0546dbdabb7a5b9b75228 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce6993d98ea6e8e8cc9ae53d1d039ce84b360540f27bcb1858deb89820f55411 [INFO] running `Command { std: "docker" "start" "-a" "ce6993d98ea6e8e8cc9ae53d1d039ce84b360540f27bcb1858deb89820f55411", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking rust-async-router v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ex` [INFO] [stdout] --> src/fs/mod.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|ex| "error while reading dir")? [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ex` [INFO] [stdout] --> src/fs/mod.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|ex| "error while reading dir")? [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut router = Router::new() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_files_with_str_error` is never used [INFO] [stdout] --> src/fs/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn list_files_with_str_error(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_files_with_custom_error` is never used [INFO] [stdout] --> src/fs/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_files_with_custom_error(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_num` is never used [INFO] [stdout] --> src/newfeatures/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn key_num(item: &str) -> Result<(&str, i32)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut router = Router::new() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_files_with_str_error` is never used [INFO] [stdout] --> src/fs/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn list_files_with_str_error(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_files_with_custom_error` is never used [INFO] [stdout] --> src/fs/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_files_with_custom_error(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_num` is never used [INFO] [stdout] --> src/newfeatures/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn key_num(item: &str) -> Result<(&str, i32)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.85s [INFO] running `Command { std: "docker" "inspect" "ce6993d98ea6e8e8cc9ae53d1d039ce84b360540f27bcb1858deb89820f55411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce6993d98ea6e8e8cc9ae53d1d039ce84b360540f27bcb1858deb89820f55411", kill_on_drop: false }` [INFO] [stdout] ce6993d98ea6e8e8cc9ae53d1d039ce84b360540f27bcb1858deb89820f55411 [INFO] checking vlbezak/rust-async-router against try#71e0d7ccb3d54cfc766c826c50c8d523223fcc5c for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvlbezak%2Frust-async-router" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vlbezak/rust-async-router on toolchain 71e0d7ccb3d54cfc766c826c50c8d523223fcc5c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vlbezak/rust-async-router [INFO] finished tweaking git repo https://github.com/vlbezak/rust-async-router [INFO] tweaked toml for git repo https://github.com/vlbezak/rust-async-router written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vlbezak/rust-async-router 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" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0e55b7c7d89d6af446389254af0c9ab62c4dc27945f613f177fa80fc98ac47b4 [INFO] running `Command { std: "docker" "start" "-a" "0e55b7c7d89d6af446389254af0c9ab62c4dc27945f613f177fa80fc98ac47b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e55b7c7d89d6af446389254af0c9ab62c4dc27945f613f177fa80fc98ac47b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e55b7c7d89d6af446389254af0c9ab62c4dc27945f613f177fa80fc98ac47b4", kill_on_drop: false }` [INFO] [stdout] 0e55b7c7d89d6af446389254af0c9ab62c4dc27945f613f177fa80fc98ac47b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16b50443b965b335d1f4c3cc633f18fb8cbc7775d1d9feafb4c1c24c03efef93 [INFO] running `Command { std: "docker" "start" "-a" "16b50443b965b335d1f4c3cc633f18fb8cbc7775d1d9feafb4c1c24c03efef93", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking rust-async-router v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | .add_handler("mult", |a, b| async move { Ok(format!("{a} * {b} = {}", a * b)) }); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found `{async closure@main.rs:23:30}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(i32, i32) -> _` [INFO] [stdout] found closure `{async closure@src/main.rs:23:30: 23:36}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/router/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn add_handler

(mut self, name: &str, fun: fn(i32,i32) -> P) -> Self [INFO] [stdout] | ^^^^^^^^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ex` [INFO] [stdout] --> src/fs/mod.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|ex| "error while reading dir")? [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | .add_handler("mult", |a, b| async move { Ok(format!("{a} * {b} = {}", a * b)) }); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found `{async closure@main.rs:23:30}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(i32, i32) -> _` [INFO] [stdout] found closure `{async closure@src/main.rs:23:30: 23:36}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/router/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn add_handler

(mut self, name: &str, fun: fn(i32,i32) -> P) -> Self [INFO] [stdout] | ^^^^^^^^^^^ --------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ex` [INFO] [stdout] --> src/fs/mod.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(|ex| "error while reading dir")? [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-async-router` (bin "rust-async-router" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-async-router` (bin "rust-async-router") due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "16b50443b965b335d1f4c3cc633f18fb8cbc7775d1d9feafb4c1c24c03efef93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16b50443b965b335d1f4c3cc633f18fb8cbc7775d1d9feafb4c1c24c03efef93", kill_on_drop: false }` [INFO] [stdout] 16b50443b965b335d1f4c3cc633f18fb8cbc7775d1d9feafb4c1c24c03efef93