[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 master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbradyjoestar%2Frust-native-rustls" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bradyjoestar/rust-native-rustls on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-14/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: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47fb15949db71439c181045edd41ddaf58828a1dea74f2ca06ad24a9651074d3 [INFO] running `Command { std: "docker" "start" "-a" "47fb15949db71439c181045edd41ddaf58828a1dea74f2ca06ad24a9651074d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47fb15949db71439c181045edd41ddaf58828a1dea74f2ca06ad24a9651074d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47fb15949db71439c181045edd41ddaf58828a1dea74f2ca06ad24a9651074d3", kill_on_drop: false }` [INFO] [stdout] 47fb15949db71439c181045edd41ddaf58828a1dea74f2ca06ad24a9651074d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b34fb65e2de6eef563d9ac6a750e26d75ced1201f06547d085b271b741666fd9 [INFO] running `Command { std: "docker" "start" "-a" "b34fb65e2de6eef563d9ac6a750e26d75ced1201f06547d085b271b741666fd9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking spin v0.5.1 [INFO] [stderr] Checking untrusted v0.7.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[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] [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] [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] [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] 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] [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] 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[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[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`, `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: 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ServerConfig`, `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: 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: unused imports: `ClientConfig`, `ClientSession`, `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: 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:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [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 issue #80165 [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [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 issue #80165 [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[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[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`, `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: 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientConfig`, `ServerConfig`, `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: 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: unused imports: `ClientConfig`, `ClientSession`, `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: 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:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [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 issue #80165 [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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [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 issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `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 associated function `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 associated function `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 associated function `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: use of deprecated associated function `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 associated function `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 associated function `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 associated function `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] error[E0392]: parameter `S` is never used [INFO] [stdout] --> src/lib.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TlsStream(imp::TlsStream); [INFO] [stdout] | ^ unused parameter [INFO] [stdout] | [INFO] [stdout] = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData` [INFO] [stdout] = help: if you intended `S` to be a const parameter, use `const S: usize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0392]: parameter `S` is never used [INFO] [stdout] --> src/lib.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TlsStream(imp::TlsStream); [INFO] [stdout] | ^ unused parameter [INFO] [stdout] | [INFO] [stdout] = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData` [INFO] [stdout] = help: if you intended `S` to be a const parameter, use `const S: usize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0255, E0392, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0255`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0255, E0392, E0412, E0433. [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` due to 12 previous errors; 28 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b34fb65e2de6eef563d9ac6a750e26d75ced1201f06547d085b271b741666fd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b34fb65e2de6eef563d9ac6a750e26d75ced1201f06547d085b271b741666fd9", kill_on_drop: false }` [INFO] [stdout] b34fb65e2de6eef563d9ac6a750e26d75ced1201f06547d085b271b741666fd9