[INFO] cloning repository https://github.com/bradyjoestar/rust-native-rustls [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bradyjoestar/rust-native-rustls" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbradyjoestar%2Frust-native-rustls", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbradyjoestar%2Frust-native-rustls'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8412496462a44e5ea0d22fab4c3aa0b677db1ea [INFO] checking bradyjoestar/rust-native-rustls against try#2277c63fa464d237b17b68d3b87f9fbb89e58a3e for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbradyjoestar%2Frust-native-rustls" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bradyjoestar/rust-native-rustls on toolchain 2277c63fa464d237b17b68d3b87f9fbb89e58a3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bradyjoestar/rust-native-rustls [INFO] finished tweaking git repo https://github.com/bradyjoestar/rust-native-rustls [INFO] tweaked toml for git repo https://github.com/bradyjoestar/rust-native-rustls written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bradyjoestar/rust-native-rustls 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" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.49 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.49 [INFO] [stderr] Downloaded wasm-bindgen-webidl v0.2.49 [INFO] [stderr] Downloaded spin v0.5.1 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.49 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.49 [INFO] [stderr] Downloaded cc v1.0.40 [INFO] [stderr] Downloaded backtrace v0.3.34 [INFO] [stderr] Downloaded js-sys v0.3.26 [INFO] [stderr] Downloaded bumpalo v2.5.0 [INFO] [stderr] Downloaded web-sys v0.3.26 [INFO] [stderr] Downloaded wasm-bindgen v0.2.49 [INFO] [stderr] Downloaded syn v1.0.3 [INFO] [stderr] Downloaded ring v0.16.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d7f6d3a76239912c73feae94e6b90a2f8b6f203f6f1ce5274ca170ecdcac1fc [INFO] running `Command { std: "docker" "start" "-a" "5d7f6d3a76239912c73feae94e6b90a2f8b6f203f6f1ce5274ca170ecdcac1fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d7f6d3a76239912c73feae94e6b90a2f8b6f203f6f1ce5274ca170ecdcac1fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d7f6d3a76239912c73feae94e6b90a2f8b6f203f6f1ce5274ca170ecdcac1fc", kill_on_drop: false }` [INFO] [stdout] 5d7f6d3a76239912c73feae94e6b90a2f8b6f203f6f1ce5274ca170ecdcac1fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99853b37c47c2303f5c0e0df43130aca94eb76a8bfdb17acac49976b4b5b30a4 [INFO] running `Command { std: "docker" "start" "-a" "99853b37c47c2303f5c0e0df43130aca94eb76a8bfdb17acac49976b4b5b30a4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking spin v0.5.1 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking futures v0.1.28 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling ring v0.16.7 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking webpki v0.21.0 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking webpki-roots v0.17.0 [INFO] [stderr] Checking rustls v0.16.0 [INFO] [stderr] Checking rust-native-rustls v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0255]: the name `Error` is defined multiple times [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ----- previous import of the type `Error` here [INFO] [stdout] ... [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Error` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Error` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error as OtherError, ErrorKind}; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0255]: the name `Error` is defined multiple times [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ----- previous import of the type `Error` here [INFO] [stdout] ... [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Error` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Error` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error as OtherError, ErrorKind}; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in this scope [INFO] [stdout] --> src/imp/rustls-sync.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn new(identity: Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identity` [INFO] [stdout] --> src/imp/rustls-sync.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | Identity::Client(s) => Ok(TlsConnector { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in this scope [INFO] [stdout] --> src/imp/rustls-sync.rs:205:26 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn new(identity: Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identity` [INFO] [stdout] --> src/imp/rustls-sync.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | Identity::Server(s) => Ok(TlsAcceptor { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Identity(imp::Identity); [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:145:31 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn new(identity: imp::Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:179:31 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn new(identity: imp::Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::tokio_tls` [INFO] [stdout] --> src/imp/rustls-sync.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::tokio_tls; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt::Pointer` [INFO] [stdout] --> src/imp/rustls-sync.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Async` [INFO] [stdout] --> src/imp/rustls-sync.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig` and `ServerConfig` [INFO] [stdout] --> src/imp/rustls-sync.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/imp/rustls-sync.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/imp/rustls-sync.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/imp/rustls-sync.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/imp/rustls-sync.rs:131:27 [INFO] [stdout] | [INFO] [stdout] 131 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ServerConfig`, and `ServerSession` [INFO] [stdout] --> src/tokio_tls/client.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tokio_tls/client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/tokio_tls/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::common::Stream` [INFO] [stdout] --> src/tokio_tls/entry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::common::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Async` [INFO] [stdout] --> src/tokio_tls/entry.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_nb` [INFO] [stdout] --> src/tokio_tls/entry.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio_io::{try_nb, AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(not(feature = "early-data"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ClientSession`, and `ServerConfig` [INFO] [stdout] --> src/tokio_tls/server.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tokio_tls/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/tokio_tls/server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/server.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_nb` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_io::{try_nb, AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/lib.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{Future, Poll}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tls::client` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_tls::client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tls::server` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio_tls::server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in this scope [INFO] [stdout] --> src/imp/rustls-sync.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn new(identity: Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identity` [INFO] [stdout] --> src/imp/rustls-sync.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | Identity::Client(s) => Ok(TlsConnector { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in this scope [INFO] [stdout] --> src/imp/rustls-sync.rs:205:26 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn new(identity: Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identity` [INFO] [stdout] --> src/imp/rustls-sync.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | Identity::Server(s) => Ok(TlsAcceptor { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Identity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Identity(imp::Identity); [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:145:31 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn new(identity: imp::Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identity` in module `imp` [INFO] [stdout] --> src/lib.rs:179:31 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn new(identity: imp::Identity) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lib.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | error::Error::description(&self.0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/lib.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | error::Error::cause(&self.0) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/imp/rustls-sync.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | error::Error::description(&self.0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/imp/rustls-sync.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | error::Error::cause(&self.0) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::tokio_tls` [INFO] [stdout] --> src/imp/rustls-sync.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::tokio_tls; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt::Pointer` [INFO] [stdout] --> src/imp/rustls-sync.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Async` [INFO] [stdout] --> src/imp/rustls-sync.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig` and `ServerConfig` [INFO] [stdout] --> src/imp/rustls-sync.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/imp/rustls-sync.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/imp/rustls-sync.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/imp/rustls-sync.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/imp/rustls-sync.rs:131:27 [INFO] [stdout] | [INFO] [stdout] 131 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ServerConfig`, and `ServerSession` [INFO] [stdout] --> src/tokio_tls/client.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tokio_tls/client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/tokio_tls/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/client.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::common::Stream` [INFO] [stdout] --> src/tokio_tls/entry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::common::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Async` [INFO] [stdout] --> src/tokio_tls/entry.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_nb` [INFO] [stdout] --> src/tokio_tls/entry.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio_io::{try_nb, AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | #[cfg(not(feature = "early-data"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/entry.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ClientSession`, and `ServerConfig` [INFO] [stdout] --> src/tokio_tls/server.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use rustls::{ClientConfig, ClientSession, ServerConfig, ServerSession}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tokio_tls/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/tokio_tls/server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `early-data` [INFO] [stdout] --> src/tokio_tls/server.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | #[cfg(feature = "early-data")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `early-data` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_nb` [INFO] [stdout] --> src/lib.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_io::{try_nb, AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/lib.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{Future, Poll}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tls::client` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_tls::client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tls::server` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio_tls::server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webpki::DNSNameRef` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use webpki::DNSNameRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lib.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | error::Error::description(&self.0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/lib.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | error::Error::cause(&self.0) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/imp/rustls-sync.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | error::Error::description(&self.0) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/imp/rustls-sync.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | error::Error::cause(&self.0) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/imp/rustls-sync.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:81:32 [INFO] [stdout] | [INFO] [stdout] 81 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/imp/rustls-sync.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_handshaking` found for mutable reference `&mut ServerSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | if stream.session.is_handshaking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ServerSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `is_handshaking` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:81:67 [INFO] [stdout] | [INFO] [stdout] 81 | ... return HandshakeError::WouldBlock(stream); [INFO] [stdout] | -------------------------- ^^^^^^ expected `MidHandshakeTlsStream<_>`, found `Stream<'_, S, ServerSession>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream<_>` [INFO] [stdout] found struct `tokio_tls::common::Stream<'_, S, ServerSession>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | WouldBlock(MidHandshakeTlsStream), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 81 | return HandshakeError::WouldBlock(stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result, ...>`, found `HandshakeError<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found enum `imp::HandshakeError<_>` [INFO] [stdout] help: try wrapping the expression in `Err` [INFO] [stdout] | [INFO] [stdout] 81 | return Err(HandshakeError::WouldBlock(stream)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:83:70 [INFO] [stdout] | [INFO] [stdout] 83 | ... Err(e) => return HandshakeError::Failure(Err(e.into())), [INFO] [stdout] | ----------------------- ^^^^^^^^^^^^^ expected `Error`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::Error` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:79:38 [INFO] [stdout] | [INFO] [stdout] 77 | / if stream.session.is_handshaking() { [INFO] [stdout] 78 | | match stream.complete_io() { [INFO] [stdout] 79 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 80 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 84 | | } [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 84 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 85 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wants_write` found for mutable reference `&mut ServerSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:87:39 [INFO] [stdout] | [INFO] [stdout] 87 | if stream.session.wants_write() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&mut ServerSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `wants_write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:91:67 [INFO] [stdout] | [INFO] [stdout] 91 | ... return HandshakeError::WouldBlock(stream); [INFO] [stdout] | -------------------------- ^^^^^^ expected `MidHandshakeTlsStream<_>`, found `Stream<'_, S, ServerSession>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream<_>` [INFO] [stdout] found struct `tokio_tls::common::Stream<'_, S, ServerSession>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | WouldBlock(MidHandshakeTlsStream), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:93:70 [INFO] [stdout] | [INFO] [stdout] 93 | ... Err(e) => return HandshakeError::Failure(Err(e.into())), [INFO] [stdout] | ----------------------- ^^^^^^^^^^^^^ expected `Error`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::Error` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 87 | / if stream.session.wants_write() { [INFO] [stdout] 88 | | match stream.complete_io() { [INFO] [stdout] 89 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 90 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 94 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 95 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | match mem::replace(self, MidHandshake::End) { [INFO] [stdout] | ------------ ^^^^ expected `&mut MidHandshake<_>`, found `MidHandshakeTlsStream` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut server::MidHandshake<_>` [INFO] [stdout] found enum `imp::MidHandshakeTlsStream` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/mem/mod.rs:862:14 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:98:58 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 98 | MidHandshake::Handshaking(stream) => stream, [INFO] [stdout] | ^^^^^^ expected `Result, ...>`, found `TlsStream<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found struct `server::TlsStream<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_handshaking` found for mutable reference `&mut ClientSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:108:39 [INFO] [stdout] | [INFO] [stdout] 108 | if stream.session.is_handshaking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ClientSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `is_handshaking` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:112:43 [INFO] [stdout] | [INFO] [stdout] 112 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TlsStream`, found `Async<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::TlsStream` [INFO] [stdout] found enum `Async<_>` [INFO] [stdout] help: the type constructed contains `Async<_>` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | ^^^--------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:532:5 [INFO] [stdout] help: try wrapping the expression in `imp::TlsStream` [INFO] [stdout] | [INFO] [stdout] 112 | return Ok(imp::TlsStream(::futures::Async::NotReady)); [INFO] [stdout] | +++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_handshaking` found for mutable reference `&mut ServerSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | if stream.session.is_handshaking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ServerSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `is_handshaking` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `imp::HandshakeError: From` is not satisfied [INFO] [stdout] --> src/imp/rustls-sync.rs:114:52 [INFO] [stdout] | [INFO] [stdout] 114 | ... Err(e) => return Err(e.into()), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `imp::HandshakeError` [INFO] [stdout] | [INFO] [stdout] = note: required for `std::io::Error` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 108 | / if stream.session.is_handshaking() { [INFO] [stdout] 109 | | match stream.complete_io() { [INFO] [stdout] 110 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 111 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 115 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 116 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:81:67 [INFO] [stdout] | [INFO] [stdout] 81 | ... return HandshakeError::WouldBlock(stream); [INFO] [stdout] | -------------------------- ^^^^^^ expected `MidHandshakeTlsStream<_>`, found `Stream<'_, S, ServerSession>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream<_>` [INFO] [stdout] found struct `tokio_tls::common::Stream<'_, S, ServerSession>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | WouldBlock(MidHandshakeTlsStream), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wants_write` found for mutable reference `&mut ClientSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | if stream.session.wants_write() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&mut ClientSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `wants_write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:122:43 [INFO] [stdout] | [INFO] [stdout] 122 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TlsStream`, found `Async<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::TlsStream` [INFO] [stdout] found enum `Async<_>` [INFO] [stdout] help: the type constructed contains `Async<_>` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | ^^^--------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:532:5 [INFO] [stdout] help: try wrapping the expression in `imp::TlsStream` [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(imp::TlsStream(::futures::Async::NotReady)); [INFO] [stdout] | +++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `imp::HandshakeError: From` is not satisfied [INFO] [stdout] --> src/imp/rustls-sync.rs:124:52 [INFO] [stdout] | [INFO] [stdout] 124 | ... Err(e) => return Err(e.into()), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `imp::HandshakeError` [INFO] [stdout] | [INFO] [stdout] = note: required for `std::io::Error` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:120:38 [INFO] [stdout] | [INFO] [stdout] 118 | / if stream.session.wants_write() { [INFO] [stdout] 119 | | match stream.complete_io() { [INFO] [stdout] 120 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 121 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 125 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 126 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | match mem::replace(self, client::MidHandshake::End) { [INFO] [stdout] | ------------ ^^^^ expected `&mut MidHandshake<_>`, found `MidHandshakeTlsStream` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut client::MidHandshake<_>` [INFO] [stdout] found enum `imp::MidHandshakeTlsStream` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/mem/mod.rs:862:14 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 81 | return HandshakeError::WouldBlock(stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result, ...>`, found `HandshakeError<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found enum `imp::HandshakeError<_>` [INFO] [stdout] help: try wrapping the expression in `Err` [INFO] [stdout] | [INFO] [stdout] 81 | return Err(HandshakeError::WouldBlock(stream)); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:83:70 [INFO] [stdout] | [INFO] [stdout] 83 | ... Err(e) => return HandshakeError::Failure(Err(e.into())), [INFO] [stdout] | ----------------------- ^^^^^^^^^^^^^ expected `Error`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::Error` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:79:38 [INFO] [stdout] | [INFO] [stdout] 77 | / if stream.session.is_handshaking() { [INFO] [stdout] 78 | | match stream.complete_io() { [INFO] [stdout] 79 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 80 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 84 | | } [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 84 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 85 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 130 | client::MidHandshake::Handshaking(stream) => stream, [INFO] [stdout] | ^^^^^^ expected `Result, ...>`, found `TlsStream<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found struct `client::TlsStream<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `std::io::Error` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | ^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:537:5 [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(imp::Error(io::Error::new(ErrorKind::Other, "oh no!"))), [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wants_write` found for mutable reference `&mut ServerSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:87:39 [INFO] [stdout] | [INFO] [stdout] 87 | if stream.session.wants_write() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&mut ServerSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `wants_write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:91:67 [INFO] [stdout] | [INFO] [stdout] 91 | ... return HandshakeError::WouldBlock(stream); [INFO] [stdout] | -------------------------- ^^^^^^ expected `MidHandshakeTlsStream<_>`, found `Stream<'_, S, ServerSession>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream<_>` [INFO] [stdout] found struct `tokio_tls::common::Stream<'_, S, ServerSession>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | WouldBlock(MidHandshakeTlsStream), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:93:70 [INFO] [stdout] | [INFO] [stdout] 93 | ... Err(e) => return HandshakeError::Failure(Err(e.into())), [INFO] [stdout] | ----------------------- ^^^^^^^^^^^^^ expected `Error`, found `Result<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::Error` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | HandshakeError::Failure(io::Error::new( [INFO] [stdout] | _____________-----------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 168 | | io::ErrorKind::InvalidData, [INFO] [stdout] 169 | | format!("Invalid domain name ({}): {}", err, domain), [INFO] [stdout] 170 | | )) [INFO] [stdout] | |_____________^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 167 ~ HandshakeError::Failure(imp::Error(io::Error::new( [INFO] [stdout] 168 | io::ErrorKind::InvalidData, [INFO] [stdout] 169 | format!("Invalid domain name ({}): {}", err, domain), [INFO] [stdout] 170 ~ ))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn accept(&self, stream: S) -> MidHandshakeTlsStream [INFO] [stdout] | ------------------------ expected `imp::MidHandshakeTlsStream` because of return type [INFO] [stdout] ... [INFO] [stdout] 193 | / MidHandshakeTlsStream::Server(server::MidHandshake::Handshaking(server::TlsStream { [INFO] [stdout] 194 | | session, [INFO] [stdout] 195 | | io: stream, [INFO] [stdout] 196 | | state: entry::TlsState::Stream, [INFO] [stdout] 197 | | })) [INFO] [stdout] 198 | | .handshake() [INFO] [stdout] | |____________________^ expected `MidHandshakeTlsStream`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream` [INFO] [stdout] found enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `std::io::Error` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:210:18 [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | ^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:537:5 [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(imp::Error(io::Error::new(ErrorKind::Other, "oh no!"))), [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 87 | / if stream.session.wants_write() { [INFO] [stdout] 88 | | match stream.complete_io() { [INFO] [stdout] 89 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 90 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 94 | | } [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 94 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 95 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | match mem::replace(self, MidHandshake::End) { [INFO] [stdout] | ------------ ^^^^ expected `&mut MidHandshake<_>`, found `MidHandshakeTlsStream` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut server::MidHandshake<_>` [INFO] [stdout] found enum `imp::MidHandshakeTlsStream` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/mem/mod.rs:862:14 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:98:58 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 98 | MidHandshake::Handshaking(stream) => stream, [INFO] [stdout] | ^^^^^^ expected `Result, ...>`, found `TlsStream<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found struct `server::TlsStream<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_handshaking` found for mutable reference `&mut ClientSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:108:39 [INFO] [stdout] | [INFO] [stdout] 108 | if stream.session.is_handshaking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ClientSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `is_handshaking` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:112:43 [INFO] [stdout] | [INFO] [stdout] 112 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TlsStream`, found `Async<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::TlsStream` [INFO] [stdout] found enum `Async<_>` [INFO] [stdout] help: the type constructed contains `Async<_>` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | ^^^--------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:532:5 [INFO] [stdout] help: try wrapping the expression in `imp::TlsStream` [INFO] [stdout] | [INFO] [stdout] 112 | return Ok(imp::TlsStream(::futures::Async::NotReady)); [INFO] [stdout] | +++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `imp::HandshakeError: From` is not satisfied [INFO] [stdout] --> src/imp/rustls-sync.rs:114:52 [INFO] [stdout] | [INFO] [stdout] 114 | ... Err(e) => return Err(e.into()), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `imp::HandshakeError` [INFO] [stdout] | [INFO] [stdout] = note: required for `std::io::Error` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 108 | / if stream.session.is_handshaking() { [INFO] [stdout] 109 | | match stream.complete_io() { [INFO] [stdout] 110 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 111 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 115 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 116 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wants_write` found for mutable reference `&mut ClientSession` in the current scope [INFO] [stdout] --> src/imp/rustls-sync.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | if stream.session.wants_write() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&mut ClientSession` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Session` which provides `wants_write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tokio_tls::rustls::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:122:43 [INFO] [stdout] | [INFO] [stdout] 122 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `TlsStream`, found `Async<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `imp::TlsStream` [INFO] [stdout] found enum `Async<_>` [INFO] [stdout] help: the type constructed contains `Async<_>` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | ... return Ok(::futures::Async::NotReady); [INFO] [stdout] | ^^^--------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:532:5 [INFO] [stdout] help: try wrapping the expression in `imp::TlsStream` [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(imp::TlsStream(::futures::Async::NotReady)); [INFO] [stdout] | +++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `imp::HandshakeError: From` is not satisfied [INFO] [stdout] --> src/imp/rustls-sync.rs:124:52 [INFO] [stdout] | [INFO] [stdout] 124 | ... Err(e) => return Err(e.into()), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `imp::HandshakeError` [INFO] [stdout] | [INFO] [stdout] = note: required for `std::io::Error` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:120:38 [INFO] [stdout] | [INFO] [stdout] 118 | / if stream.session.wants_write() { [INFO] [stdout] 119 | | match stream.complete_io() { [INFO] [stdout] 120 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 121 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 125 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 126 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | match mem::replace(self, client::MidHandshake::End) { [INFO] [stdout] | ------------ ^^^^ expected `&mut MidHandshake<_>`, found `MidHandshakeTlsStream` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut client::MidHandshake<_>` [INFO] [stdout] found enum `imp::MidHandshakeTlsStream` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/mem/mod.rs:862:14 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn handshake(self) -> result::Result, HandshakeError> { [INFO] [stdout] | ----------------------------------------------- expected `std::result::Result, imp::HandshakeError>` because of return type [INFO] [stdout] ... [INFO] [stdout] 130 | client::MidHandshake::Handshaking(stream) => stream, [INFO] [stdout] | ^^^^^^ expected `Result, ...>`, found `TlsStream<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] found struct `client::TlsStream<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `std::io::Error` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | ^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:537:5 [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 152 | _ => Err(imp::Error(io::Error::new(ErrorKind::Other, "oh no!"))), [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/client.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 65 | / if stream.session.is_handshaking() { [INFO] [stdout] 66 | | match stream.complete_io() { [INFO] [stdout] 67 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 68 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 72 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 73 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/client.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 75 | / if stream.session.wants_write() { [INFO] [stdout] 76 | | match stream.complete_io() { [INFO] [stdout] 77 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 78 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 82 | | } [INFO] [stdout] 83 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 82 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 83 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | HandshakeError::Failure(io::Error::new( [INFO] [stdout] | _____________-----------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 168 | | io::ErrorKind::InvalidData, [INFO] [stdout] 169 | | format!("Invalid domain name ({}): {}", err, domain), [INFO] [stdout] 170 | | )) [INFO] [stdout] | |_____________^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/imp/rustls-sync.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Failure(Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 167 ~ HandshakeError::Failure(imp::Error(io::Error::new( [INFO] [stdout] 168 | io::ErrorKind::InvalidData, [INFO] [stdout] 169 | format!("Invalid domain name ({}): {}", err, domain), [INFO] [stdout] 170 ~ ))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn accept(&self, stream: S) -> MidHandshakeTlsStream [INFO] [stdout] | ------------------------ expected `imp::MidHandshakeTlsStream` because of return type [INFO] [stdout] ... [INFO] [stdout] 193 | / MidHandshakeTlsStream::Server(server::MidHandshake::Handshaking(server::TlsStream { [INFO] [stdout] 194 | | session, [INFO] [stdout] 195 | | io: stream, [INFO] [stdout] 196 | | state: entry::TlsState::Stream, [INFO] [stdout] 197 | | })) [INFO] [stdout] 198 | | .handshake() [INFO] [stdout] | |____________________^ expected `MidHandshakeTlsStream`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `imp::MidHandshakeTlsStream` [INFO] [stdout] found enum `std::result::Result, imp::HandshakeError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/imp/rustls-sync.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `imp::Error`, found `std::io::Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `imp::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/std/src/io/error.rs:64:1 [INFO] [stdout] note: `imp::Error` is defined in the current crate [INFO] [stdout] --> src/imp/rustls-sync.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Error(io::Error); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `std::io::Error` due to the type of the argument passed [INFO] [stdout] --> src/imp/rustls-sync.rs:210:18 [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(io::Error::new(ErrorKind::Other, "oh no!")), [INFO] [stdout] | ^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2277c63fa464d237b17b68d3b87f9fbb89e58a3e/library/core/src/result.rs:537:5 [INFO] [stdout] help: try wrapping the expression in `imp::Error` [INFO] [stdout] | [INFO] [stdout] 210 | _ => Err(imp::Error(io::Error::new(ErrorKind::Other, "oh no!"))), [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/client.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 65 | / if stream.session.is_handshaking() { [INFO] [stdout] 66 | | match stream.complete_io() { [INFO] [stdout] 67 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 68 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 72 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 73 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/client.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 75 | / if stream.session.wants_write() { [INFO] [stdout] 76 | | match stream.complete_io() { [INFO] [stdout] 77 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 78 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 82 | | } [INFO] [stdout] 83 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 82 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 83 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write_tls` exists for mutable reference `&mut Stream<'a, IO, S>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tokio_tls/common.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> { [INFO] [stdout] | ------------------------------------ doesn't satisfy `_: WriteTls<'_, IO, S>` [INFO] [stdout] ... [INFO] [stdout] 50 | let _ = self.write_tls(); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&mut Stream<'a, IO, S>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `IO: AsyncRead` [INFO] [stdout] `IO: AsyncWrite` [INFO] [stdout] --> src/tokio_tls/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | impl<'a, IO: AsyncRead + AsyncWrite, S: Session> WriteTls<'a, IO, S> for Stream<'a, IO, S> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ------------------- ----------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider restricting the type parameters to satisfy the trait bounds [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> where IO: AsyncRead, IO: AsyncWrite { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write_tls` exists for mutable reference `&mut Stream<'a, IO, S>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tokio_tls/common.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> { [INFO] [stdout] | ------------------------------------ doesn't satisfy `_: WriteTls<'_, IO, S>` [INFO] [stdout] ... [INFO] [stdout] 50 | let _ = self.write_tls(); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&mut Stream<'a, IO, S>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `IO: AsyncRead` [INFO] [stdout] `IO: AsyncWrite` [INFO] [stdout] --> src/tokio_tls/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | impl<'a, IO: AsyncRead + AsyncWrite, S: Session> WriteTls<'a, IO, S> for Stream<'a, IO, S> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ------------------- ----------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider restricting the type parameters to satisfy the trait bounds [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> where IO: AsyncRead, IO: AsyncWrite { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write_tls` exists for mutable reference `&mut Stream<'a, IO, S>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tokio_tls/common.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> { [INFO] [stdout] | ------------------------------------ doesn't satisfy `_: WriteTls<'_, IO, S>` [INFO] [stdout] ... [INFO] [stdout] 59 | self.write_tls() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&mut Stream<'a, IO, S>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `IO: AsyncRead` [INFO] [stdout] `IO: AsyncWrite` [INFO] [stdout] --> src/tokio_tls/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | impl<'a, IO: AsyncRead + AsyncWrite, S: Session> WriteTls<'a, IO, S> for Stream<'a, IO, S> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ------------------- ----------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider restricting the type parameters to satisfy the trait bounds [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> where IO: AsyncRead, IO: AsyncWrite { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `write_tls` exists for mutable reference `&mut Stream<'a, IO, S>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tokio_tls/common.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> { [INFO] [stdout] | ------------------------------------ doesn't satisfy `_: WriteTls<'_, IO, S>` [INFO] [stdout] ... [INFO] [stdout] 59 | self.write_tls() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&mut Stream<'a, IO, S>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `IO: AsyncRead` [INFO] [stdout] `IO: AsyncWrite` [INFO] [stdout] --> src/tokio_tls/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | impl<'a, IO: AsyncRead + AsyncWrite, S: Session> WriteTls<'a, IO, S> for Stream<'a, IO, S> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ------------------- ----------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider restricting the type parameters to satisfy the trait bounds [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Stream<'a, IO: 'a, S: 'a> where IO: AsyncRead, IO: AsyncWrite { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/server.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 58 | / if stream.session.is_handshaking() { [INFO] [stdout] 59 | | match stream.complete_io() { [INFO] [stdout] 60 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 61 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 65 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 66 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/server.rs:70:30 [INFO] [stdout] | [INFO] [stdout] 68 | / if stream.session.wants_write() { [INFO] [stdout] 69 | | match stream.complete_io() { [INFO] [stdout] 70 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 71 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 75 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 76 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/server.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 58 | / if stream.session.is_handshaking() { [INFO] [stdout] 59 | | match stream.complete_io() { [INFO] [stdout] 60 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 61 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 65 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 66 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tokio_tls/server.rs:70:30 [INFO] [stdout] | [INFO] [stdout] 68 | / if stream.session.wants_write() { [INFO] [stdout] 69 | | match stream.complete_io() { [INFO] [stdout] 70 | | Ok(t) => t, [INFO] [stdout] | | ^ expected `()`, found `(usize, usize)` [INFO] [stdout] 71 | | Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found tuple `(usize, usize)` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 75 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 76 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `imp::MidHandshakeTlsStream` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | fmt::Debug::fmt(&self.0, fmt) [INFO] [stdout] | --------------- ^^^^^^^ `imp::MidHandshakeTlsStream` cannot be formatted using `{:?}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `imp::MidHandshakeTlsStream` [INFO] [stdout] = note: add `#[derive(Debug)]` to `imp::MidHandshakeTlsStream` or manually `impl Debug for imp::MidHandshakeTlsStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/imp/rustls-sync.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `imp::MidHandshakeTlsStream` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | fmt::Debug::fmt(&self.0, fmt) [INFO] [stdout] | --------------- ^^^^^^^ `imp::MidHandshakeTlsStream` cannot be formatted using `{:?}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `imp::MidHandshakeTlsStream` [INFO] [stdout] = note: add `#[derive(Debug)]` to `imp::MidHandshakeTlsStream` or manually `impl Debug for imp::MidHandshakeTlsStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Future` [INFO] [stdout] --> src/imp/rustls-sync.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{Async, Future, Poll}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `imp` [INFO] [stdout] --> src/imp/rustls-sync.rs:216:25 [INFO] [stdout] | [INFO] [stdout] 216 | pub struct TlsStream(imp::TlsStream); [INFO] [stdout] | ^^^ use of undeclared crate or module `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `imp` [INFO] [stdout] --> src/imp/rustls-sync.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | pub struct TlsSession(imp::TlsSession); [INFO] [stdout] | ^^^ use of undeclared crate or module `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0255, E0277, E0308, E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0255`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-native-rustls` (lib) due to 42 previous errors; 42 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `imp` [INFO] [stdout] --> src/imp/rustls-sync.rs:216:25 [INFO] [stdout] | [INFO] [stdout] 216 | pub struct TlsStream(imp::TlsStream); [INFO] [stdout] | ^^^ use of undeclared crate or module `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `imp` [INFO] [stdout] --> src/imp/rustls-sync.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | pub struct TlsSession(imp::TlsSession); [INFO] [stdout] | ^^^ use of undeclared crate or module `imp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0255, E0277, E0308, E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0255`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-native-rustls` (lib test) due to 42 previous errors; 42 warnings emitted [INFO] running `Command { std: "docker" "inspect" "99853b37c47c2303f5c0e0df43130aca94eb76a8bfdb17acac49976b4b5b30a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99853b37c47c2303f5c0e0df43130aca94eb76a8bfdb17acac49976b4b5b30a4", kill_on_drop: false }` [INFO] [stdout] 99853b37c47c2303f5c0e0df43130aca94eb76a8bfdb17acac49976b4b5b30a4