[INFO] cloning repository https://github.com/zll600/simple-https-tunnel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zll600/simple-https-tunnel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzll600%2Fsimple-https-tunnel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzll600%2Fsimple-https-tunnel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd35eb8a673e57936bab55a272186c43c8140194 [INFO] testing zll600/simple-https-tunnel against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzll600%2Fsimple-https-tunnel" "/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/zll600/simple-https-tunnel [INFO] finished tweaking git repo https://github.com/zll600/simple-https-tunnel [INFO] tweaked toml for git repo https://github.com/zll600/simple-https-tunnel written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zll600/simple-https-tunnel on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zll600/simple-https-tunnel 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb2f570a242980b8adbfb7df1f319ccae558a3bc6edd7bb4d3fbd2284c99dadf [INFO] running `Command { std: "docker" "start" "-a" "fb2f570a242980b8adbfb7df1f319ccae558a3bc6edd7bb4d3fbd2284c99dadf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb2f570a242980b8adbfb7df1f319ccae558a3bc6edd7bb4d3fbd2284c99dadf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb2f570a242980b8adbfb7df1f319ccae558a3bc6edd7bb4d3fbd2284c99dadf", kill_on_drop: false }` [INFO] [stdout] fb2f570a242980b8adbfb7df1f319ccae558a3bc6edd7bb4d3fbd2284c99dadf [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6d09b8ff10fd23fa3428cf2b3d73fb7238d722b8c9ea737b956674ce87b12bc [INFO] running `Command { std: "docker" "start" "-a" "f6d09b8ff10fd23fa3428cf2b3d73fb7238d722b8c9ea737b956674ce87b12bc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling clap v4.5.23 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling tub v0.3.7 [INFO] [stderr] Compiling shutdown-async v0.1.1 [INFO] [stderr] Compiling async-stdin v0.3.1 [INFO] [stderr] Compiling async-throttle v0.3.2 [INFO] [stderr] Compiling tokio-utils v0.1.2 [INFO] [stderr] Compiling simple-https-tunnel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/main.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | self, [INFO] [stdout] | ^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/main.rs:95:3 [INFO] [stdout] | [INFO] [stdout] 95 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/main.rs:101:3 [INFO] [stdout] | [INFO] [stdout] 101 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Builder` in this scope [INFO] [stdout] --> src/main.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Builder, Clone, Debug, Serialize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Builder` is imported here, but it is a struct, not a derive macro [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | runtime::Builder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:160:33 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Builder, Clone, Debug, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Parser` in this scope [INFO] [stdout] --> src/main.rs:221:10 [INFO] [stdout] | [INFO] [stdout] 221 | #[derive(Parser, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Parser` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/main.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/main.rs:222:3 [INFO] [stdout] | [INFO] [stdout] 222 | #[clap(author, version, about, long_about = None)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `clap` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/main.rs:223:3 [INFO] [stdout] | [INFO] [stdout] 223 | #[clap(propagate_version = true)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `clap` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/main.rs:226:7 [INFO] [stdout] | [INFO] [stdout] 226 | #[clap(long)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `clap` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/main.rs:229:7 [INFO] [stdout] | [INFO] [stdout] 229 | #[clap(long)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `clap` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/main.rs:231:7 [INFO] [stdout] | [INFO] [stdout] 231 | #[clap(subcommand)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `clap` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Subcommand` in this scope [INFO] [stdout] --> src/main.rs:235:10 [INFO] [stdout] | [INFO] [stdout] 235 | #[derive(Subcommand, Debug)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Subcommand` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{self, Parser, Subcommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | #[derive(Deserialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/main.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/main.rs:244:7 [INFO] [stdout] | [INFO] [stdout] 244 | #[serde(with = "humantime_serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/main.rs:246:7 [INFO] [stdout] | [INFO] [stdout] 246 | #[serde(with = "serde_regex")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/main.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | #[serde(with = "humantime_serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Builder` in this scope [INFO] [stdout] --> src/main.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | #[derive(Builder, Deserialize, Clone)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Builder` is imported here, but it is a struct, not a derive macro [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | runtime::Builder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 253 | #[derive(Builder, Deserialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/main.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/main.rs:255:7 [INFO] [stdout] | [INFO] [stdout] 255 | #[serde(with = "humantime_serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{self, Deserialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/main.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | let (client_recv, client_send) = io::split(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `target` in this scope [INFO] [stdout] --> src/main.rs:60:48 [INFO] [stdout] | [INFO] [stdout] 60 | let (target_recv, target_send) = io::split(target); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `upstream_relay` in this scope [INFO] [stdout] --> src/main.rs:63:35 [INFO] [stdout] | [INFO] [stdout] 63 | tokio::spawn(async move { upstream_relay.relay_data(client_recv, target_send).await }); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `downstream_relay` in this scope [INFO] [stdout] --> src/main.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 66 | tokio::spawn(async move { downstream_relay.relay_data(target_recv, client_send).await }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:68:23 [INFO] [stdout] | [INFO] [stdout] 54 | async fn tunnel_stream( [INFO] [stdout] | ------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 68 | let read_result = self [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `source` in this scope [INFO] [stdout] --> src/main.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | .timed_operation(source.read(&mut buffer)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `buffer` in this scope [INFO] [stdout] --> src/main.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | .timed_operation(source.read(&mut buffer)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shutdown_reason` in this scope [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | shutdown_reason = RelayShutdownReasons::ReaderTimeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 74 | let shutdown_reason = RelayShutdownReasons::ReaderTimeout; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shutdown_reason` in this scope [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | shutdown_reason = RelayShutdownReasons::GracefulShutdown; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 80 | let shutdown_reason = RelayShutdownReasons::GracefulShutdown; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 54 | async fn tunnel_stream( [INFO] [stdout] | ------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 87 | self.name, e, self.tunnel_ctx [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 54 | async fn tunnel_stream( [INFO] [stdout] | ------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 87 | self.name, e, self.tunnel_ctx [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shutdown_reason` in this scope [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | shutdown_reason = RelayShutdownReasons::ReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 89 | let shutdown_reason = RelayShutdownReasons::ReadError; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ConnectionTunnel` in this scope [INFO] [stdout] --> src/main.rs:129:15 [INFO] [stdout] | [INFO] [stdout] 129 | impl ConnectionTunnel [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Decoder` in this scope [INFO] [stdout] --> src/main.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | H: Decoder + Encoder, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Encoder` in this scope [INFO] [stdout] --> src/main.rs:131:49 [INFO] [stdout] | [INFO] [stdout] 131 | H: Decoder + Encoder, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Display` in this scope [INFO] [stdout] --> src/main.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | H::Item: TunnelTarget + Sized + Display + Send + Sync, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Display; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RelayShutdownReasons` in this scope [INFO] [stdout] --> src/main.rs:162:26 [INFO] [stdout] | [INFO] [stdout] 162 | pub shutdown_reason: RelayShutdownReasons, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TunnelCtx` in this scope [INFO] [stdout] --> src/main.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | tunnel_ctx: TunnelCtx, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpOptions` in this scope [INFO] [stdout] --> src/main.rs:237:10 [INFO] [stdout] | [INFO] [stdout] 237 | Http(HttpOptions), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpsOptions` in this scope [INFO] [stdout] --> src/main.rs:238:11 [INFO] [stdout] | [INFO] [stdout] 238 | Https(HttpsOptions), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpOptions` in this scope [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Tcp(TcpOptions), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Regex` in this scope [INFO] [stdout] --> src/main.rs:247:26 [INFO] [stdout] | [INFO] [stdout] 247 | pub allowed_targets: Regex, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RelayShutdownReasons` [INFO] [stdout] --> src/main.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | shutdown_reason = RelayShutdownReasons::ReaderTimeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RelayShutdownReasons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RelayShutdownReasons` [INFO] [stdout] --> src/main.rs:80:31 [INFO] [stdout] | [INFO] [stdout] 80 | shutdown_reason = RelayShutdownReasons::GracefulShutdown; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RelayShutdownReasons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RelayShutdownReasons` [INFO] [stdout] --> src/main.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | shutdown_reason = RelayShutdownReasons::ReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RelayShutdownReasons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0424, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-https-tunnel` (bin "simple-https-tunnel") due to 45 previous errors [INFO] running `Command { std: "docker" "inspect" "f6d09b8ff10fd23fa3428cf2b3d73fb7238d722b8c9ea737b956674ce87b12bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6d09b8ff10fd23fa3428cf2b3d73fb7238d722b8c9ea737b956674ce87b12bc", kill_on_drop: false }` [INFO] [stdout] f6d09b8ff10fd23fa3428cf2b3d73fb7238d722b8c9ea737b956674ce87b12bc