[INFO] fetching crate mockers 0.22.0... [INFO] checking mockers-0.22.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate mockers 0.22.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate mockers 0.22.0 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mockers 0.22.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate mockers 0.22.0 [INFO] tweaked toml for crates.io crate mockers 0.22.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1bd0c77aa49e80b7159af52aa80abd4c25522081e15729451967c7c59bcaaac5 [INFO] running `Command { std: "docker" "start" "-a" "1bd0c77aa49e80b7159af52aa80abd4c25522081e15729451967c7c59bcaaac5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1bd0c77aa49e80b7159af52aa80abd4c25522081e15729451967c7c59bcaaac5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bd0c77aa49e80b7159af52aa80abd4c25522081e15729451967c7c59bcaaac5", kill_on_drop: false }` [INFO] [stdout] 1bd0c77aa49e80b7159af52aa80abd4c25522081e15729451967c7c59bcaaac5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 800c4a570885302c98c2768f49eec410cb048a46a75463618b0ba4ea58d83842 [INFO] running `Command { std: "docker" "start" "-a" "800c4a570885302c98c2768f49eec410cb048a46a75463618b0ba4ea58d83842", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling itertools v0.4.19 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling proc-quote-impl v0.2.2 [INFO] [stderr] Checking mockers v0.22.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:734:26 [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { Box::from_raw(args_to_destroy as *mut ($($Arg,)*)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 758 | define_verify!(verify0 { }); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `define_verify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { let _ = Box::from_raw(args_to_destroy as *mut ($($Arg,)*)); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:734:26 [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { Box::from_raw(args_to_destroy as *mut ($($Arg,)*)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 759 | define_verify!(verify1 { (0, arg0, Arg0) }); [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: this warning originates in the macro `define_verify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { let _ = Box::from_raw(args_to_destroy as *mut ($($Arg,)*)); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:734:26 [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { Box::from_raw(args_to_destroy as *mut ($($Arg,)*)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 760 | define_verify!(verify2 { (0, arg0, Arg0), (1, arg1, Arg1) }); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: this warning originates in the macro `define_verify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { let _ = Box::from_raw(args_to_destroy as *mut ($($Arg,)*)); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:734:26 [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { Box::from_raw(args_to_destroy as *mut ($($Arg,)*)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 761 | define_verify!(verify3 { (0, arg0, Arg0), (1, arg1, Arg1), (2, arg2, Arg2) }); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: this warning originates in the macro `define_verify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { let _ = Box::from_raw(args_to_destroy as *mut ($($Arg,)*)); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:734:26 [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { Box::from_raw(args_to_destroy as *mut ($($Arg,)*)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 762 | define_verify!(verify4 { (0, arg0, Arg0), (1, arg1, Arg1), (2, arg2, Arg2), (3, arg3, Arg3) }); [INFO] [stdout] | ---------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: this warning originates in the macro `define_verify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 734 | unsafe { let _ = Box::from_raw(args_to_destroy as *mut ($($Arg,)*)); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Compiling indoc v0.3.6 [INFO] [stderr] Compiling proc-quote v0.2.2 [INFO] [stderr] Compiling mockers_derive v0.22.0 [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/named_mock_type.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[mocked(MockForA)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 7 + let binding = #[mocked(MockForA)]; [INFO] [stdout] 8 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "named_mock_type") due to 2 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/fn_mut_reaction.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 6 + let binding = #[mocked]; [INFO] [stdout] 7 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "fn_mut_reaction") due to 2 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/type_param_bounds.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[mocked(debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 6 + let binding = #[mocked(debug)]; [INFO] [stdout] 7 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "type_param_bounds") due to 2 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/expect_in_action.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 5 + let binding = #[mocked]; [INFO] [stdout] 6 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/expect_in_action.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 11 + let binding = #[mocked]; [INFO] [stdout] 12 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / mock! { [INFO] [stdout] 15 | | AShared, [INFO] [stdout] 16 | | self, [INFO] [stdout] 17 | | trait A { [INFO] [stdout] 18 | | fn foo(&self, a: u32); [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 14 + let binding = mock! { [INFO] [stdout] 15 + AShared, [INFO] [stdout] 16 + self, [INFO] [stdout] 17 + trait A { [INFO] [stdout] 18 + fn foo(&self, a: u32); [INFO] [stdout] 19 + } [INFO] [stdout] 20 + }; [INFO] [stdout] 21 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / mock! { [INFO] [stdout] 25 | | AMock, [INFO] [stdout] 26 | | self, [INFO] [stdout] 27 | | trait A { [INFO] [stdout] 28 | | fn foo(&self, a: u32); [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 24 + let binding = mock! { [INFO] [stdout] 25 + AMock, [INFO] [stdout] 26 + self, [INFO] [stdout] 27 + trait A { [INFO] [stdout] 28 + fn foo(&self, a: u32); [INFO] [stdout] 29 + } [INFO] [stdout] 30 + }; [INFO] [stdout] 31 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | mock_clone!(AMock, AMockHandle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | temporary value is freed at the end of this statement [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `mock_clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | #[mocked(derive(Clone))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 33 + let binding = #[mocked(derive(Clone))]; [INFO] [stdout] 34 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/static_methods.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 7 + let binding = #[mocked]; [INFO] [stdout] 8 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | #[mocked(derive(Clone(share_expectations)))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 38 + let binding = #[mocked(derive(Clone(share_expectations)))]; [INFO] [stdout] 39 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/clone.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | #[mocked(derive(Clone))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 43 + let binding = #[mocked(derive(Clone))]; [INFO] [stdout] 44 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/static_methods.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 14 + let binding = #[mocked]; [INFO] [stdout] 15 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "clone") due to 7 previous errors [INFO] [stderr] error: could not compile `mockers` (test "expect_in_action") due to 3 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/static_methods.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 59 + let binding = #[mocked]; [INFO] [stdout] 60 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | #[mocked(module = "crate::derive_inherited_trait")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 12 ~ let binding = #[mocked(module = "crate::derive_inherited_trait")]; [INFO] [stdout] 13 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | #[mocked(refs = "A => crate::derive_inherited_trait::A")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 17 ~ let binding = #[mocked(refs = "A => crate::derive_inherited_trait::A")]; [INFO] [stdout] 18 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | #[mocked(module = "crate::derive_inherited_trait_different_modules::a")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 42 ~ let binding = #[mocked(module = "crate::derive_inherited_trait_different_modules::a")]; [INFO] [stdout] 43 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | #[mocked(refs = "super::a::A => crate::derive_inherited_trait_different_modules::a::A")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 51 ~ let binding = #[mocked(refs = "super::a::A => crate::derive_inherited_trait_different_modules::a::A")]; [INFO] [stdout] 52 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "static_methods") due to 4 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / mock! { [INFO] [stdout] 87 | | BMock, [INFO] [stdout] 88 | | [INFO] [stdout] 89 | | self, [INFO] [stdout] ... | [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_____creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 86 ~ let binding = mock! { [INFO] [stdout] 87 + BMock, [INFO] [stdout] 88 + [INFO] [stdout] 89 + self, [INFO] [stdout] 90 + trait A { [INFO] [stdout] 91 + fn foo(&self, a: u32); [INFO] [stdout] 92 + }, [INFO] [stdout] 93 + [INFO] [stdout] 94 + self, [INFO] [stdout] 95 + trait B { [INFO] [stdout] 96 + fn bar(&self, b: u32); [INFO] [stdout] 97 + } [INFO] [stdout] 98 + }; [INFO] [stdout] 99 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | / mock! { [INFO] [stdout] 127 | | ABMock, [INFO] [stdout] 128 | | [INFO] [stdout] 129 | | self, [INFO] [stdout] ... | [INFO] [stdout] 137 | | } [INFO] [stdout] 138 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_____creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 126 ~ let binding = mock! { [INFO] [stdout] 127 + ABMock, [INFO] [stdout] 128 + [INFO] [stdout] 129 + self, [INFO] [stdout] 130 + trait A { [INFO] [stdout] 131 + fn foo(&self, a: u32); [INFO] [stdout] 132 + }, [INFO] [stdout] 133 + [INFO] [stdout] 134 + self, [INFO] [stdout] 135 + trait B { [INFO] [stdout] 136 + fn bar(&self, b: u32); [INFO] [stdout] 137 + } [INFO] [stdout] 138 + }; [INFO] [stdout] 139 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/multi_trait.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / mock! { [INFO] [stdout] 172 | | BMock, [INFO] [stdout] 173 | | [INFO] [stdout] 174 | | self, [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_____creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 171 ~ let binding = mock! { [INFO] [stdout] 172 + BMock, [INFO] [stdout] 173 + [INFO] [stdout] 174 + self, [INFO] [stdout] 175 + trait A { [INFO] [stdout] 176 + fn foo(&self, a: u32); [INFO] [stdout] 177 + }, [INFO] [stdout] 178 + [INFO] [stdout] 179 + self, [INFO] [stdout] 180 + trait B: A { [INFO] [stdout] 181 + fn bar(&self, b: u32); [INFO] [stdout] 182 + } [INFO] [stdout] 183 + }; [INFO] [stdout] 184 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[mocked] [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 8 + let binding = #[mocked]; [INFO] [stdout] 9 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "multi_trait") due to 8 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / mock! { [INFO] [stdout] 22 | | AMockByMacro, [INFO] [stdout] 23 | | self, [INFO] [stdout] 24 | | trait A { [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value is freed at the end of this statement [INFO] [stdout] | |_creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `mock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 21 + let binding = mock! { [INFO] [stdout] 22 + AMockByMacro, [INFO] [stdout] 23 + self, [INFO] [stdout] 24 + trait A { [INFO] [stdout] 25 + fn foo(&self); [INFO] [stdout] 26 + fn bar(&self, arg: u32); [INFO] [stdout] 27 + fn baz(&self) -> u32; [INFO] [stdout] 28 + fn modify(&mut self); [INFO] [stdout] 29 + fn ask(&self, arg: u32) -> u32; [INFO] [stdout] 30 + fn consume(self); [INFO] [stdout] 31 + fn consume_result(&self) -> String; [INFO] [stdout] 32 + fn consume_arg(&self, arg: String) -> String; [INFO] [stdout] 33 + fn consume_rc(&self, arg: Rc); [INFO] [stdout] 34 + } [INFO] [stdout] 35 + }; [INFO] [stdout] 36 ~ binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mockers` (test "lib") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "800c4a570885302c98c2768f49eec410cb048a46a75463618b0ba4ea58d83842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "800c4a570885302c98c2768f49eec410cb048a46a75463618b0ba4ea58d83842", kill_on_drop: false }` [INFO] [stdout] 800c4a570885302c98c2768f49eec410cb048a46a75463618b0ba4ea58d83842