[INFO] fetching crate galvanic-mock 0.1.3... [INFO] checking galvanic-mock-0.1.3 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate galvanic-mock 0.1.3 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate galvanic-mock 0.1.3 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate galvanic-mock 0.1.3 [INFO] finished tweaking crates.io crate galvanic-mock 0.1.3 [INFO] tweaked toml for crates.io crate galvanic-mock 0.1.3 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages [INFO] [stderr] Adding lazy_static v0.2.11 (latest: v1.4.0) [INFO] [stderr] Adding quote v0.3.15 (latest: v1.0.35) [INFO] [stderr] Adding syn v0.11.11 (latest: v2.0.57) [INFO] [stderr] Adding unicode-xid v0.0.4 (latest: v0.2.4) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded galvanic-assert v0.8.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b0c085ee3ccfac7c0455dad1b90cc969a1ef83c97a472a63672a2966b4155ae [INFO] running `Command { std: "docker" "start" "-a" "6b0c085ee3ccfac7c0455dad1b90cc969a1ef83c97a472a63672a2966b4155ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b0c085ee3ccfac7c0455dad1b90cc969a1ef83c97a472a63672a2966b4155ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b0c085ee3ccfac7c0455dad1b90cc969a1ef83c97a472a63672a2966b4155ae", kill_on_drop: false }` [INFO] [stdout] 6b0c085ee3ccfac7c0455dad1b90cc969a1ef83c97a472a63672a2966b4155ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee093b654b06105cf1639a462bad2dba719500341aea310dda96cfef064a45ae [INFO] running `Command { std: "docker" "start" "-a" "ee093b654b06105cf1639a462bad2dba719500341aea310dda96cfef064a45ae", kill_on_drop: false }` [INFO] [stderr] Checking unicode-xid v0.0.4 [INFO] [stderr] Checking quote v0.3.15 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Checking galvanic-assert v0.8.7 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking syn v0.11.11 [INFO] [stderr] Checking galvanic-mock v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/new_mock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/given.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/expect.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `GivenStatement` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `GivenStatement` is already imported here [INFO] [stdout] 19 | use data::GivenStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/data.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/new_mock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/expect.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `GivenStatement` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `GivenStatement` is already imported here [INFO] [stdout] 19 | use data::GivenStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/data.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | #[cfg(test)]#[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | / lazy_static! { [INFO] [stdout] 43 | | pub static ref MOCKABLE_TRAITS: Mutex = { [INFO] [stdout] 44 | | Mutex::new(HashMap::new()) [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / lazy_static! { [INFO] [stdout] 55 | | pub static ref REQUESTED_MOCKS: Mutex> = { [INFO] [stdout] 56 | | Mutex::new(Vec::new()) [INFO] [stdout] 57 | | }; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | / lazy_static! { [INFO] [stdout] 74 | | pub static ref BINDINGS: Mutex = { [INFO] [stdout] 75 | | Mutex::new(Vec::new()) [INFO] [stdout] 76 | | }; [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | / lazy_static! { [INFO] [stdout] 156 | | pub static ref GIVEN_STATEMENTS: Mutex = { [INFO] [stdout] 157 | | Mutex::new(HashMap::new()) [INFO] [stdout] 158 | | }; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 218 | / lazy_static! { [INFO] [stdout] 219 | | pub static ref EXPECT_STATEMENTS: Mutex = { [INFO] [stdout] 220 | | Mutex::new(HashMap::new()) [INFO] [stdout] 221 | | }; [INFO] [stdout] 222 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | / lazy_static! { [INFO] [stdout] 43 | | pub static ref MOCKABLE_TRAITS: Mutex = { [INFO] [stdout] 44 | | Mutex::new(HashMap::new()) [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / lazy_static! { [INFO] [stdout] 55 | | pub static ref REQUESTED_MOCKS: Mutex> = { [INFO] [stdout] 56 | | Mutex::new(Vec::new()) [INFO] [stdout] 57 | | }; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | / lazy_static! { [INFO] [stdout] 74 | | pub static ref BINDINGS: Mutex = { [INFO] [stdout] 75 | | Mutex::new(Vec::new()) [INFO] [stdout] 76 | | }; [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | / lazy_static! { [INFO] [stdout] 156 | | pub static ref GIVEN_STATEMENTS: Mutex = { [INFO] [stdout] 157 | | Mutex::new(HashMap::new()) [INFO] [stdout] 158 | | }; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 218 | / lazy_static! { [INFO] [stdout] 219 | | pub static ref EXPECT_STATEMENTS: Mutex = { [INFO] [stdout] 220 | | Mutex::new(HashMap::new()) [INFO] [stdout] 221 | | }; [INFO] [stdout] 222 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `safety` and `generic_bounds` are never read [INFO] [stdout] --> src/data.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TraitInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | pub safety: syn::Unsafety, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | pub generics: syn::Generics, [INFO] [stdout] 23 | pub generic_bounds: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TraitInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> src/lib.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 236 | IntoIterator::into_iter(macro_names) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/new_mock.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | panic!(format!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] | ____________^ [INFO] [stdout] 59 | | "\tGot: {}"), source)); [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 58 ~ panic!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] 59 ~ "\tGot: {}"), source); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `safety` and `generic_bounds` are never read [INFO] [stdout] --> src/data.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TraitInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | pub safety: syn::Unsafety, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | pub generics: syn::Generics, [INFO] [stdout] 23 | pub generic_bounds: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TraitInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> src/lib.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 236 | IntoIterator::into_iter(macro_names) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/new_mock.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | panic!(format!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] | ____________^ [INFO] [stdout] 59 | | "\tGot: {}"), source)); [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 58 ~ panic!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] 59 ~ "\tGot: {}"), source); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/new_mock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/given.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/expect.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/binding_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/type_param_mapper.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mock_struct_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/generate/trait_implementer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `GivenStatement` is imported redundantly [INFO] [stdout] --> src/generate/behaviour.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `GivenStatement` is already imported here [INFO] [stdout] 19 | use data::GivenStatement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `quote` is imported redundantly [INFO] [stdout] --> src/generate/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use quote; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[macro_use] extern crate quote; [INFO] [stdout] | ------------------- the item `quote` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> src/data.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use syn; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | extern crate syn; [INFO] [stdout] | ----------------- the item `syn` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | / lazy_static! { [INFO] [stdout] 43 | | pub static ref MOCKABLE_TRAITS: Mutex = { [INFO] [stdout] 44 | | Mutex::new(HashMap::new()) [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / lazy_static! { [INFO] [stdout] 55 | | pub static ref REQUESTED_MOCKS: Mutex> = { [INFO] [stdout] 56 | | Mutex::new(Vec::new()) [INFO] [stdout] 57 | | }; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | / lazy_static! { [INFO] [stdout] 74 | | pub static ref BINDINGS: Mutex = { [INFO] [stdout] 75 | | Mutex::new(Vec::new()) [INFO] [stdout] 76 | | }; [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | / lazy_static! { [INFO] [stdout] 156 | | pub static ref GIVEN_STATEMENTS: Mutex = { [INFO] [stdout] 157 | | Mutex::new(HashMap::new()) [INFO] [stdout] 158 | | }; [INFO] [stdout] 159 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/data.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 218 | / lazy_static! { [INFO] [stdout] 219 | | pub static ref EXPECT_STATEMENTS: Mutex = { [INFO] [stdout] 220 | | Mutex::new(HashMap::new()) [INFO] [stdout] 221 | | }; [INFO] [stdout] 222 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `safety` and `generic_bounds` are never read [INFO] [stdout] --> src/data.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TraitInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | pub safety: syn::Unsafety, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | pub generics: syn::Generics, [INFO] [stdout] 23 | pub generic_bounds: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TraitInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> src/lib.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 236 | macro_names.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 236 | IntoIterator::into_iter(macro_names) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/new_mock.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | panic!(format!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] | ____________^ [INFO] [stdout] 59 | | "\tGot: {}"), source)); [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 58 ~ panic!(concat!("Expecting a new_mock defintion of the form: new_mock!(paths::to::Traits, ... #[optional_attributes]...);\n", [INFO] [stdout] 59 ~ "\tGot: {}"), source); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_trait_and_apply_attributes.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/mock_trait_in_submodules.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | #[mockable(::sub1::sub2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: failed to parse #[mockable(..)] requires the absolute path of the trait's module.It must be preceded with `extern`/`intern` if the trait is defined in another crate/module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/mock_trait_in_submodules.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | #[test]#[use_mocks] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: PoisonError { .. } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_method_without_args.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/expect_method_without_args.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_different_returns.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_void_method_without_args.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/mock_referred_trait.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | #[mockable(intern ::sub1::sub2)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: failed to parse #[mockable(..)] requires the absolute path of the trait's module.It must be preceded with `extern`/`intern` if the trait is defined in another crate/module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/mock_referred_trait.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | #[test]#[use_mocks] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: PoisonError { .. } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_generic_trait.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_generic_trait_method.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/verify_on_drop.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_method_with_single_arg.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_trait_in_submodules.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_mock_from_other_submodule` in this scope [INFO] [stdout] --> tests/mock_trait_in_submodules.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | / fn create_mock_from_other_submodule() { [INFO] [stdout] 33 | | let mock = new_mock!(::sub1::sub2::EmptyTrait); [INFO] [stdout] 34 | | } [INFO] [stdout] | |_____^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_method_with_multiple_args.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_referred_trait.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/mock_with_explicit_type_name.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_mock_for_referred_trait` in this scope [INFO] [stdout] --> tests/mock_referred_trait.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | / fn create_mock_for_referred_trait() { [INFO] [stdout] 31 | | let mock = new_mock!(::sub1::sub2::EmptyTrait); [INFO] [stdout] 32 | | } [INFO] [stdout] | |_^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/given_different_repeats.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `galvanic-mock` (test "mock_trait_in_submodules") due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> tests/given_different_returns.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | #[use_mocks] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `use_mocks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `galvanic-mock` (test "mock_referred_trait") due to 4 previous errors; 1 warning emitted [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/expect_different_interactions.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | #[mockable(::multiple_traits)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: failed to parse #[mockable(..)] requires the absolute path of the trait's module.It must be preceded with `extern`/`intern` if the trait is defined in another crate/module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/use_mocks_on_module.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> tests/expect_different_interactions.rs:400:5 [INFO] [stdout] | [INFO] [stdout] 400 | #[use_mocks] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: PoisonError { .. } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `matching_expectation` in this scope [INFO] [stdout] --> tests/expect_different_interactions.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | / fn matching_expectation() { [INFO] [stdout] 402 | | let mock = new_mock!(TestTrait, ::multiple_traits::OtherTrait); [INFO] [stdout] 403 | | [INFO] [stdout] 404 | | given! { [INFO] [stdout] ... | [INFO] [stdout] 417 | | mock.verify(); [INFO] [stdout] 418 | | } [INFO] [stdout] | |_____^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 392 + use test_at_least::matching_expectation; [INFO] [stdout] | [INFO] [stdout] 392 + use test_never::matching_expectation; [INFO] [stdout] | [INFO] [stdout] 392 + use test_times::matching_expectation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `proc_macro` has been stable since 1.29.0 and no longer requires an attribute to enable [INFO] [stdout] --> tests/expect_different_interactions.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | #![feature(proc_macro)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `galvanic-mock` (test "expect_different_interactions") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ee093b654b06105cf1639a462bad2dba719500341aea310dda96cfef064a45ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee093b654b06105cf1639a462bad2dba719500341aea310dda96cfef064a45ae", kill_on_drop: false }` [INFO] [stdout] ee093b654b06105cf1639a462bad2dba719500341aea310dda96cfef064a45ae