[INFO] fetching crate mail-core 0.6.2...
[INFO] checking mail-core-0.6.2 against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3
[INFO] extracting crate mail-core 0.6.2 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate mail-core 0.6.2
[INFO] finished tweaking crates.io crate mail-core 0.6.2
[INFO] tweaked toml for crates.io crate mail-core 0.6.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate mail-core 0.6.2 on toolchain a5689b034ad287112f709693384a37f1377eb9cc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 99 packages to highest compatible versions
[INFO] [stderr]       Adding futures v0.1.31 (available: v0.3.34)
[INFO] [stderr]       Adding log v0.3.9 (available: v0.4.34)
[INFO] [stderr]       Adding rand v0.3.23 (available: v0.10.3)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `mail-core` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb
[INFO] running `Command { std: "docker" "start" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `mail-core` (manifest) generated 1 warning
[INFO] [stderr]    Compiling libc v0.2.191
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking lazy_static v0.2.11
[INFO] [stderr]     Checking object v0.37.3
[INFO] [stderr]     Checking percent-encoding v1.0.1
[INFO] [stderr]     Checking tinyvec v1.13.3
[INFO] [stderr]     Checking rustc-demangle v0.1.28
[INFO] [stderr]     Checking lut v0.1.0-unstable
[INFO] [stderr]     Checking quoted-string v0.6.1
[INFO] [stderr]     Checking matches v0.1.10
[INFO] [stderr]     Checking safemem v0.2.0
[INFO] [stderr]     Checking stable_deref_trait v1.2.1
[INFO] [stderr]     Checking base64 v0.6.0
[INFO] [stderr]     Checking vec-drain-where v1.0.1
[INFO] [stderr]     Checking media-type-impl-utils v0.3.0-unstable
[INFO] [stderr]     Checking vec1 v1.12.1
[INFO] [stderr]     Checking soft-ascii-string v1.1.0
[INFO] [stderr]    Compiling checked_command v0.2.4
[INFO] [stderr]     Checking unicode-normalization v0.1.26
[INFO] [stderr]     Checking media-type v0.4.0-unstable
[INFO] [stderr]     Checking quoted_printable v0.4.8
[INFO] [stderr]    Compiling serde v1.0.229
[INFO] [stderr]     Checking total-order-multi-map v0.4.6
[INFO] [stderr]     Checking owning_ref v0.4.1
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]     Checking futures v0.1.31
[INFO] [stderr]     Checking idna v0.1.5
[INFO] [stderr]     Checking log v0.3.9
[INFO] [stderr]     Checking serde_json v1.0.154
[INFO] [stderr]     Checking serde_test v1.0.177
[INFO] [stderr]     Checking memchr v1.0.2
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking num_cpus v1.17.0
[INFO] [stderr]     Checking nom v3.2.1
[INFO] [stderr]     Checking futures-cpupool v0.1.8
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]     Checking backtrace v0.3.76
[INFO] [stderr]     Checking failure v0.1.8
[INFO] [stderr]     Checking mail-internals v0.2.3
[INFO] [stderr]     Checking mail-headers v0.6.6
[INFO] [stderr]     Checking mail-core v0.6.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trailing semicolon in macro used in expression position
[INFO] [stdout]    --> src/encode.rs:159:17
[INFO] [stdout]     |
[INFO] [stdout] 159 |                 warn!("\"hidden text\" in multipart bodies is dropped")
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: macro invocations at the end of a block are treated as expressions
[INFO] [stdout]     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `warn`
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stdout]     = note: `#[warn(semicolon_in_expressions_from_non_local_macros)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout]     = note: this warning originates in the macro `warn` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils.rs:13:36
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub type SendBoxFuture<I, E> = Box<Future<Item=I, Error=E> + Send + 'static>;
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub type SendBoxFuture<I, E> = Box<dyn Future<Item=I, Error=E> + Send + 'static>;
[INFO] [stdout]    |                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/error.rs:78:32
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn cause(&self) -> Option<&Fail> {
[INFO] [stdout]    |                                ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn cause(&self) -> Option<&dyn Fail> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trailing semicolon in macro used in expression position
[INFO] [stdout]    --> src/encode.rs:159:17
[INFO] [stdout]     |
[INFO] [stdout] 159 |                 warn!("\"hidden text\" in multipart bodies is dropped")
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: macro invocations at the end of a block are treated as expressions
[INFO] [stdout]     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `warn`
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stdout]     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stdout]     = note: `#[warn(semicolon_in_expressions_from_non_local_macros)]` (part of `#[warn(future_incompatible)]`) on by default
[INFO] [stdout]     = note: this warning originates in the macro `warn` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/utils.rs:13:36
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub type SendBoxFuture<I, E> = Box<Future<Item=I, Error=E> + Send + 'static>;
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub type SendBoxFuture<I, E> = Box<dyn Future<Item=I, Error=E> + Send + 'static>;
[INFO] [stdout]    |                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/error.rs:78:32
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn cause(&self) -> Option<&Fail> {
[INFO] [stdout]    |                                ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn cause(&self) -> Option<&dyn Fail> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead
[INFO] [stdout]    --> src/mail.rs:885:37
[INFO] [stdout]     |
[INFO] [stdout] 885 |             let provided_date = Utc.ymd(1992, 5, 25).and_hms(23, 41, 12);
[INFO] [stdout]     |                                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead
[INFO] [stdout]    --> src/mail.rs:885:54
[INFO] [stdout]     |
[INFO] [stdout] 885 |             let provided_date = Utc.ymd(1992, 5, 25).and_hms(23, 41, 12);
[INFO] [stdout]     |                                                      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mail.rs:600:17
[INFO] [stdout]     |
[INFO] [stdout] 600 |             let mut headers: &mut HeaderMap = headers;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `headers::header_components::MessageId`
[INFO] [stdout]    --> src/default_impl/message_id_gen.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 |        self.generate_message_id().into()
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 100 -        self.generate_message_id().into()
[INFO] [stdout] 100 +        self.generate_message_id()
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 100 -        self.generate_message_id().into()
[INFO] [stdout] 100 +        <headers::header_components::MessageId as Into<_>>::into(self.generate_message_id())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/iri.rs:14:30
[INFO] [stdout]    |
[INFO] [stdout] 14 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Fail` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_InvalidIRIScheme`
[INFO] [stdout] 15 | #[fail(display = "invalid syntax for iri/uri scheme")]
[INFO] [stdout] 16 | pub struct InvalidIRIScheme;
[INFO] [stdout]    |            ---------------- `InvalidIRIScheme` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/iri.rs:14:30
[INFO] [stdout]    |
[INFO] [stdout] 14 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Display` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_InvalidIRIScheme`
[INFO] [stdout] 15 | #[fail(display = "invalid syntax for iri/uri scheme")]
[INFO] [stdout] 16 | pub struct InvalidIRIScheme;
[INFO] [stdout]    |            ---------------- `InvalidIRIScheme` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Fail` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceError`
[INFO] [stdout] 23 | pub enum ResourceError {
[INFO] [stdout]    |          ------------- `ResourceError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Display` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceError`
[INFO] [stdout] 23 | pub enum ResourceError {
[INFO] [stdout]    |          ------------- `ResourceError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | #[derive(Copy, Clone, Debug, Fail, PartialEq, Eq, Hash)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Fail` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceLoadingErrorKind`
[INFO] [stdout] 51 | pub enum ResourceLoadingErrorKind {
[INFO] [stdout]    |          ------------------------ `ResourceLoadingErrorKind` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | #[derive(Copy, Clone, Debug, Fail, PartialEq, Eq, Hash)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Display` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceLoadingErrorKind`
[INFO] [stdout] 51 | pub enum ResourceLoadingErrorKind {
[INFO] [stdout]    |          ------------------------ `ResourceLoadingErrorKind` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Fail` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_OtherValidationError`
[INFO] [stdout] 156 | pub enum OtherValidationError {
[INFO] [stdout]     |          -------------------- `OtherValidationError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Display` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_OtherValidationError`
[INFO] [stdout] 156 | pub enum OtherValidationError {
[INFO] [stdout]     |          -------------------- `OtherValidationError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:203:17
[INFO] [stdout]     |
[INFO] [stdout] 203 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Fail` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_MailError`
[INFO] [stdout] 204 | pub enum MailError {
[INFO] [stdout]     |          --------- `MailError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:203:17
[INFO] [stdout]     |
[INFO] [stdout] 203 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Display` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_MailError`
[INFO] [stdout] 204 | pub enum MailError {
[INFO] [stdout]     |          --------- `MailError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:281:30
[INFO] [stdout]     |
[INFO] [stdout] 281 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]     |                              ^---
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              `Fail` is not local
[INFO] [stdout]     |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceNotUnloadableError`
[INFO] [stdout] 282 | pub enum ResourceNotUnloadableError {
[INFO] [stdout]     |          -------------------------- `ResourceNotUnloadableError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:281:30
[INFO] [stdout]     |
[INFO] [stdout] 281 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]     |                              ^---
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              `Display` is not local
[INFO] [stdout]     |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceNotUnloadableError`
[INFO] [stdout] 282 | pub enum ResourceNotUnloadableError {
[INFO] [stdout]     |          -------------------------- `ResourceNotUnloadableError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/resource/loading.rs:184:21
[INFO] [stdout]     |
[INFO] [stdout] 184 |                     mem::replace(resource_ref, new_resource.to_resource());
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 184 |                     let _ = mem::replace(resource_ref, new_resource.to_resource());
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:466:21
[INFO] [stdout]     |
[INFO] [stdout] 466 | /                     mem::replace(
[INFO] [stdout] 467 | |                         &mut self.inner,
[INFO] [stdout] 468 | |                         InnerMailFuture::Loading {
[INFO] [stdout] 469 | |                             mail, ctx,
[INFO] [stdout] ...   |
[INFO] [stdout] 472 | |                     );
[INFO] [stdout]     | |_____________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _unused = ...` to ignore the resulting value without dropping it immediately
[INFO] [stdout]     |
[INFO] [stdout] 466 |                     let _unused = mem::replace(
[INFO] [stdout]     |                     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:478:29
[INFO] [stdout]     |
[INFO] [stdout] 478 | / ...                   mem::replace(
[INFO] [stdout] 479 | | ...                       &mut self.inner,
[INFO] [stdout] 480 | | ...                       InnerMailFuture::Loading { mail, pending, ctx }
[INFO] [stdout] 481 | | ...                   );
[INFO] [stdout]     | |_______________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _unused = ...` to ignore the resulting value without dropping it immediately
[INFO] [stdout]     |
[INFO] [stdout] 478 |                             let _unused = mem::replace(
[INFO] [stdout]     |                             +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:554:9
[INFO] [stdout]     |
[INFO] [stdout] 554 |         mem::replace(resource, Resource::EncData(enc_data));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 554 |         let _ = mem::replace(resource, Resource::EncData(enc_data));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/default_impl/simple_context.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Fail` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ContextSetupError`
[INFO] [stdout] 42 | pub enum ContextSetupError {
[INFO] [stdout]    |          ----------------- `ContextSetupError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/default_impl/simple_context.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Display` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ContextSetupError`
[INFO] [stdout] 42 | pub enum ContextSetupError {
[INFO] [stdout]    |          ----------------- `ContextSetupError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mail-core` (lib) due to 1 previous error; 22 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mail.rs:600:17
[INFO] [stdout]     |
[INFO] [stdout] 600 |             let mut headers: &mut HeaderMap = headers;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `AssertDebug` is never used
[INFO] [stdout]    --> src/mail.rs:677:11
[INFO] [stdout]     |
[INFO] [stdout] 677 |     trait AssertDebug: Debug {}
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `AssertSend` is never used
[INFO] [stdout]    --> src/mail.rs:678:11
[INFO] [stdout]     |
[INFO] [stdout] 678 |     trait AssertSend: Send {}
[INFO] [stdout]     |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `AssertSync` is never used
[INFO] [stdout]    --> src/mail.rs:679:11
[INFO] [stdout]     |
[INFO] [stdout] 679 |     trait AssertSync: Sync {}
[INFO] [stdout]     |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `headers::header_components::MessageId`
[INFO] [stdout]    --> src/default_impl/message_id_gen.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 |        self.generate_message_id().into()
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 100 -        self.generate_message_id().into()
[INFO] [stdout] 100 +        self.generate_message_id()
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 100 -        self.generate_message_id().into()
[INFO] [stdout] 100 +        <headers::header_components::MessageId as Into<_>>::into(self.generate_message_id())
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/iri.rs:14:30
[INFO] [stdout]    |
[INFO] [stdout] 14 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Fail` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_InvalidIRIScheme`
[INFO] [stdout] 15 | #[fail(display = "invalid syntax for iri/uri scheme")]
[INFO] [stdout] 16 | pub struct InvalidIRIScheme;
[INFO] [stdout]    |            ---------------- `InvalidIRIScheme` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/iri.rs:14:30
[INFO] [stdout]    |
[INFO] [stdout] 14 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Display` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_InvalidIRIScheme`
[INFO] [stdout] 15 | #[fail(display = "invalid syntax for iri/uri scheme")]
[INFO] [stdout] 16 | pub struct InvalidIRIScheme;
[INFO] [stdout]    |            ---------------- `InvalidIRIScheme` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Fail` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceError`
[INFO] [stdout] 23 | pub enum ResourceError {
[INFO] [stdout]    |          ------------- `ResourceError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Display` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceError`
[INFO] [stdout] 23 | pub enum ResourceError {
[INFO] [stdout]    |          ------------- `ResourceError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | #[derive(Copy, Clone, Debug, Fail, PartialEq, Eq, Hash)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Fail` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceLoadingErrorKind`
[INFO] [stdout] 51 | pub enum ResourceLoadingErrorKind {
[INFO] [stdout]    |          ------------------------ `ResourceLoadingErrorKind` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/error.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | #[derive(Copy, Clone, Debug, Fail, PartialEq, Eq, Hash)]
[INFO] [stdout]    |                              ^---
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              `Display` is not local
[INFO] [stdout]    |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceLoadingErrorKind`
[INFO] [stdout] 51 | pub enum ResourceLoadingErrorKind {
[INFO] [stdout]    |          ------------------------ `ResourceLoadingErrorKind` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Fail` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_OtherValidationError`
[INFO] [stdout] 156 | pub enum OtherValidationError {
[INFO] [stdout]     |          -------------------- `OtherValidationError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Display` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_OtherValidationError`
[INFO] [stdout] 156 | pub enum OtherValidationError {
[INFO] [stdout]     |          -------------------- `OtherValidationError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:203:17
[INFO] [stdout]     |
[INFO] [stdout] 203 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Fail` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_MailError`
[INFO] [stdout] 204 | pub enum MailError {
[INFO] [stdout]     |          --------- `MailError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:203:17
[INFO] [stdout]     |
[INFO] [stdout] 203 | #[derive(Debug, Fail)]
[INFO] [stdout]     |                 ^---
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 `Display` is not local
[INFO] [stdout]     |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_MailError`
[INFO] [stdout] 204 | pub enum MailError {
[INFO] [stdout]     |          --------- `MailError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:281:30
[INFO] [stdout]     |
[INFO] [stdout] 281 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]     |                              ^---
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              `Fail` is not local
[INFO] [stdout]     |                              move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ResourceNotUnloadableError`
[INFO] [stdout] 282 | pub enum ResourceNotUnloadableError {
[INFO] [stdout]     |          -------------------------- `ResourceNotUnloadableError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/error.rs:281:30
[INFO] [stdout]     |
[INFO] [stdout] 281 | #[derive(Copy, Clone, Debug, Fail)]
[INFO] [stdout]     |                              ^---
[INFO] [stdout]     |                              |
[INFO] [stdout]     |                              `Display` is not local
[INFO] [stdout]     |                              move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ResourceNotUnloadableError`
[INFO] [stdout] 282 | pub enum ResourceNotUnloadableError {
[INFO] [stdout]     |          -------------------------- `ResourceNotUnloadableError` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/resource/loading.rs:184:21
[INFO] [stdout]     |
[INFO] [stdout] 184 |                     mem::replace(resource_ref, new_resource.to_resource());
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 184 |                     let _ = mem::replace(resource_ref, new_resource.to_resource());
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:466:21
[INFO] [stdout]     |
[INFO] [stdout] 466 | /                     mem::replace(
[INFO] [stdout] 467 | |                         &mut self.inner,
[INFO] [stdout] 468 | |                         InnerMailFuture::Loading {
[INFO] [stdout] 469 | |                             mail, ctx,
[INFO] [stdout] ...   |
[INFO] [stdout] 472 | |                     );
[INFO] [stdout]     | |_____________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _unused = ...` to ignore the resulting value without dropping it immediately
[INFO] [stdout]     |
[INFO] [stdout] 466 |                     let _unused = mem::replace(
[INFO] [stdout]     |                     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:478:29
[INFO] [stdout]     |
[INFO] [stdout] 478 | / ...                   mem::replace(
[INFO] [stdout] 479 | | ...                       &mut self.inner,
[INFO] [stdout] 480 | | ...                       InnerMailFuture::Loading { mail, pending, ctx }
[INFO] [stdout] 481 | | ...                   );
[INFO] [stdout]     | |_______________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _unused = ...` to ignore the resulting value without dropping it immediately
[INFO] [stdout]     |
[INFO] [stdout] 478 |                             let _unused = mem::replace(
[INFO] [stdout]     |                             +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used
[INFO] [stdout]    --> src/mail.rs:554:9
[INFO] [stdout]     |
[INFO] [stdout] 554 |         mem::replace(resource, Resource::EncData(enc_data));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: if you don't need the old value, you can just assign the new value directly
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 554 |         let _ = mem::replace(resource, Resource::EncData(enc_data));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/default_impl/simple_context.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Fail` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ContextSetupError`
[INFO] [stdout] 42 | pub enum ContextSetupError {
[INFO] [stdout]    |          ----------------- `ContextSetupError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/default_impl/simple_context.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 | #[derive(Debug, Fail)]
[INFO] [stdout]    |                 ^---
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `Display` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ContextSetupError`
[INFO] [stdout] 42 | pub enum ContextSetupError {
[INFO] [stdout]    |          ----------------- `ContextSetupError` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mail-core` (lib test) due to 1 previous error; 27 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb", kill_on_drop: false }`
[INFO] [stdout] c0f1a56966d3f4628b966161f7c0033968bb5773e7f8de15993e9141f5ab5bcb
