[INFO] cloning repository https://github.com/umgefahren/worker-location [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/umgefahren/worker-location" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fumgefahren%2Fworker-location", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fumgefahren%2Fworker-location'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 174ebd3a767dd37584f3dbc92bacc1fddf61aac2 [INFO] checking umgefahren/worker-location against master#899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fumgefahren%2Fworker-location" "/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/umgefahren/worker-location 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/umgefahren/worker-location [INFO] finished tweaking git repo https://github.com/umgefahren/worker-location [INFO] tweaked toml for git repo https://github.com/umgefahren/worker-location written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/umgefahren/worker-location 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror-impl v1.0.33 [INFO] [stderr] Downloaded worker-sys v0.0.6 [INFO] [stderr] Downloaded serde_millis v0.1.1 [INFO] [stderr] Downloaded thiserror v1.0.33 [INFO] [stderr] Downloaded worker-macros v0.0.6 [INFO] [stderr] Downloaded worker v0.0.11 [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] 0dde920da89ca362f3064a002144dd04164df5d7c71b072dab616165d3fe57ca [INFO] running `Command { std: "docker" "start" "-a" "0dde920da89ca362f3064a002144dd04164df5d7c71b072dab616165d3fe57ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0dde920da89ca362f3064a002144dd04164df5d7c71b072dab616165d3fe57ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dde920da89ca362f3064a002144dd04164df5d7c71b072dab616165d3fe57ca", kill_on_drop: false }` [INFO] [stdout] 0dde920da89ca362f3064a002144dd04164df5d7c71b072dab616165d3fe57ca [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] 9aa019ec615eab567ebfcb5a1ae99db8bbabd8601dd0c6c32ea20368f0bfc699 [INFO] running `Command { std: "docker" "start" "-a" "9aa019ec615eab567ebfcb5a1ae99db8bbabd8601dd0c6c32ea20368f0bfc699", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.82 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling bumpalo v3.11.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.82 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking matchit v0.4.6 [INFO] [stderr] Checking phf_shared v0.11.1 [INFO] [stderr] Checking phf v0.11.1 [INFO] [stderr] Compiling phf_generator v0.11.1 [INFO] [stderr] Compiling phf_codegen v0.11.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking chrono v0.4.22 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling chrono-tz-build v0.0.3 [INFO] [stderr] Compiling chrono-tz v0.6.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.82 [INFO] [stderr] Compiling thiserror-impl v1.0.33 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.82 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.82 [INFO] [stderr] Checking thiserror v1.0.33 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Compiling js-sys v0.3.59 [INFO] [stderr] Compiling web-sys v0.3.59 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.32 [INFO] [stderr] Compiling worker-sys v0.0.6 [INFO] [stderr] Compiling worker-macros v0.0.6 [INFO] [stderr] Checking serde_millis v0.1.1 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking worker-kv v0.5.1 [INFO] [stderr] Checking wasm-streams v0.2.3 [INFO] [stderr] Checking worker v0.0.11 [INFO] [stderr] Checking location-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.82 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "9aa019ec615eab567ebfcb5a1ae99db8bbabd8601dd0c6c32ea20368f0bfc699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9aa019ec615eab567ebfcb5a1ae99db8bbabd8601dd0c6c32ea20368f0bfc699", kill_on_drop: false }` [INFO] [stdout] 9aa019ec615eab567ebfcb5a1ae99db8bbabd8601dd0c6c32ea20368f0bfc699 [INFO] checking umgefahren/worker-location against try#71e0d7ccb3d54cfc766c826c50c8d523223fcc5c for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fumgefahren%2Fworker-location" "/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/umgefahren/worker-location 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/umgefahren/worker-location [INFO] finished tweaking git repo https://github.com/umgefahren/worker-location [INFO] tweaked toml for git repo https://github.com/umgefahren/worker-location written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/umgefahren/worker-location 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] 18b13979c16a8b939747c430f4177a18e5c5de785a757b1d249f92e6f3d0f3f4 [INFO] running `Command { std: "docker" "start" "-a" "18b13979c16a8b939747c430f4177a18e5c5de785a757b1d249f92e6f3d0f3f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18b13979c16a8b939747c430f4177a18e5c5de785a757b1d249f92e6f3d0f3f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18b13979c16a8b939747c430f4177a18e5c5de785a757b1d249f92e6f3d0f3f4", kill_on_drop: false }` [INFO] [stdout] 18b13979c16a8b939747c430f4177a18e5c5de785a757b1d249f92e6f3d0f3f4 [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] cf6fbbe5493ad1cd967f283595a97a47a82272e0ff3405fa32ad88e8e0c9aa1b [INFO] running `Command { std: "docker" "start" "-a" "cf6fbbe5493ad1cd967f283595a97a47a82272e0ff3405fa32ad88e8e0c9aa1b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.82 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling bumpalo v3.11.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling wasm-bindgen v0.2.82 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Compiling phf_shared v0.11.1 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking matchit v0.4.6 [INFO] [stderr] Compiling phf v0.11.1 [INFO] [stderr] Compiling phf_generator v0.11.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling phf_codegen v0.11.1 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking chrono v0.4.22 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling chrono-tz-build v0.0.3 [INFO] [stderr] Compiling chrono-tz v0.6.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.82 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling thiserror-impl v1.0.33 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.82 [INFO] [stderr] Checking thiserror v1.0.33 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.82 [INFO] [stderr] Compiling js-sys v0.3.59 [INFO] [stderr] Compiling web-sys v0.3.59 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.32 [INFO] [stderr] Compiling worker-sys v0.0.6 [INFO] [stderr] Checking serde_millis v0.1.1 [INFO] [stderr] Compiling worker-macros v0.0.6 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking worker-kv v0.5.1 [INFO] [stderr] Checking wasm-streams v0.2.3 [INFO] [stderr] Checking worker v0.0.11 [INFO] [stderr] Checking location-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 92 | .get_async("/", |req, _| async move { [INFO] [stdout] | __________---------______^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 93 | | let cache = Cache::default(); [INFO] [stdout] 94 | | if let Some(resp) = cache.get(&req, false).await? { [INFO] [stdout] 95 | | console_log!("Cached response"); [INFO] [stdout] ... | [INFO] [stdout] 104 | | Ok(resp) [INFO] [stdout] 105 | | }) [INFO] [stdout] | |_________^ expected fn pointer, found `{async closure@lib.rs:92:25}` [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(worker::Request, RouteContext<()>) -> _` [INFO] [stdout] found closure `{async closure@src/lib.rs:92:25: 92:33}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/worker-0.0.11/src/router.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn get_async(mut self, pattern: &str, func: fn(Request, RouteContext) -> T) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 92 | .get_async("/", |req, _| async move { [INFO] [stdout] | __________---------______^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 93 | | let cache = Cache::default(); [INFO] [stdout] 94 | | if let Some(resp) = cache.get(&req, false).await? { [INFO] [stdout] 95 | | console_log!("Cached response"); [INFO] [stdout] ... | [INFO] [stdout] 104 | | Ok(resp) [INFO] [stdout] 105 | | }) [INFO] [stdout] | |_________^ expected fn pointer, found `{async closure@lib.rs:92:25}` [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(worker::Request, RouteContext<()>) -> _` [INFO] [stdout] found closure `{async closure@src/lib.rs:92:25: 92:33}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/worker-0.0.11/src/router.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn get_async(mut self, pattern: &str, func: fn(Request, RouteContext) -> T) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | .get_async("/index.js", |req, _| async move { [INFO] [stdout] | __________---------______________^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 107 | | let cache = Cache::default(); [INFO] [stdout] 108 | | if let Some(resp) = cache.get(&req, false).await? { [INFO] [stdout] 109 | | console_log!("Cached response"); [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(resp) [INFO] [stdout] 121 | | }) [INFO] [stdout] | |_________^ expected fn pointer, found `{async closure@lib.rs:106:33}` [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(worker::Request, RouteContext<()>) -> _` [INFO] [stdout] found closure `{async closure@src/lib.rs:106:33: 106:41}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/worker-0.0.11/src/router.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn get_async(mut self, pattern: &str, func: fn(Request, RouteContext) -> T) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:126:20 [INFO] [stdout] | [INFO] [stdout] 126 | if let Some(ip_string) = req_headers.get("x-real-ip")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `std::prelude::v1::Some` [INFO] [stdout] --> /rustc/71e0d7ccb3d54cfc766c826c50c8d523223fcc5c/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | .get_async("/index.js", |req, _| async move { [INFO] [stdout] | __________---------______________^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 107 | | let cache = Cache::default(); [INFO] [stdout] 108 | | if let Some(resp) = cache.get(&req, false).await? { [INFO] [stdout] 109 | | console_log!("Cached response"); [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(resp) [INFO] [stdout] 121 | | }) [INFO] [stdout] | |_________^ expected fn pointer, found `{async closure@lib.rs:106:33}` [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(worker::Request, RouteContext<()>) -> _` [INFO] [stdout] found closure `{async closure@src/lib.rs:106:33: 106:41}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/worker-0.0.11/src/router.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn get_async(mut self, pattern: &str, func: fn(Request, RouteContext) -> T) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:126:20 [INFO] [stdout] | [INFO] [stdout] 126 | if let Some(ip_string) = req_headers.get("x-real-ip")? { [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `std::prelude::v1::Some` [INFO] [stdout] --> /rustc/71e0d7ccb3d54cfc766c826c50c8d523223fcc5c/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `location-worker` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `location-worker` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "cf6fbbe5493ad1cd967f283595a97a47a82272e0ff3405fa32ad88e8e0c9aa1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf6fbbe5493ad1cd967f283595a97a47a82272e0ff3405fa32ad88e8e0c9aa1b", kill_on_drop: false }` [INFO] [stdout] cf6fbbe5493ad1cd967f283595a97a47a82272e0ff3405fa32ad88e8e0c9aa1b