[INFO] cloning repository https://github.com/brendano257/test_mockall_tokio_mutex [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brendano257/test_mockall_tokio_mutex" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrendano257%2Ftest_mockall_tokio_mutex", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrendano257%2Ftest_mockall_tokio_mutex'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a67385e11999e46baa22ed39a74648429c589a87 [INFO] testing brendano257/test_mockall_tokio_mutex against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrendano257%2Ftest_mockall_tokio_mutex" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/brendano257/test_mockall_tokio_mutex [INFO] finished tweaking git repo https://github.com/brendano257/test_mockall_tokio_mutex [INFO] tweaked toml for git repo https://github.com/brendano257/test_mockall_tokio_mutex written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/brendano257/test_mockall_tokio_mutex on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/brendano257/test_mockall_tokio_mutex already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50550030ec7e96cf7464e570c08afcc0e26b215792bf95a8197850b0914c9b9b [INFO] running `Command { std: "docker" "start" "-a" "50550030ec7e96cf7464e570c08afcc0e26b215792bf95a8197850b0914c9b9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50550030ec7e96cf7464e570c08afcc0e26b215792bf95a8197850b0914c9b9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50550030ec7e96cf7464e570c08afcc0e26b215792bf95a8197850b0914c9b9b", kill_on_drop: false }` [INFO] [stdout] 50550030ec7e96cf7464e570c08afcc0e26b215792bf95a8197850b0914c9b9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f0b183e04fd089a60d367ca9c195134aed396bc85837301c7cc2b72faacc71c [INFO] running `Command { std: "docker" "start" "-a" "5f0b183e04fd089a60d367ca9c195134aed396bc85837301c7cc2b72faacc71c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling predicates v3.1.0 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling mockall v0.12.1 [INFO] [stderr] Compiling test_mockall_tokio v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MyThing { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | shared: Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.12s [INFO] running `Command { std: "docker" "inspect" "5f0b183e04fd089a60d367ca9c195134aed396bc85837301c7cc2b72faacc71c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f0b183e04fd089a60d367ca9c195134aed396bc85837301c7cc2b72faacc71c", kill_on_drop: false }` [INFO] [stdout] 5f0b183e04fd089a60d367ca9c195134aed396bc85837301c7cc2b72faacc71c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e231e443a610a8906229035722dc3919fdcc290dec7a35bc5c0d206a20e1699 [INFO] running `Command { std: "docker" "start" "-a" "8e231e443a610a8906229035722dc3919fdcc290dec7a35bc5c0d206a20e1699", kill_on_drop: false }` [INFO] [stderr] Compiling test_mockall_tokio v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MyThing { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | shared: Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MyThing { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | shared: Arc>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/mocks/mock_thing.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 6 | / mock! { [INFO] [stdout] 7 | | pub MyThing {} [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | impl Thing for MyThing { [INFO] [stdout] 10 | | fn new(shared: Arc>) -> Self; [INFO] [stdout] | | ^^^^^^ expected `std::sync::Mutex`, found `tokio::sync::Mutex` [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `tokio::sync::Mutex` and `std::sync::Mutex` have similar names, but are actually distinct types [INFO] [stdout] note: `tokio::sync::Mutex` is defined in crate `tokio` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/sync/mutex.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Mutex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `std::sync::Mutex` is defined in crate `std` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sync/poison/mutex.rs:227:1 [INFO] [stdout] note: method defined here [INFO] [stdout] --> tests/mocks/mock_thing.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / mock! { [INFO] [stdout] 7 | | pub MyThing {} [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | impl Thing for MyThing { [INFO] [stdout] 10 | | fn new(shared: Arc>) -> Self; [INFO] [stdout] | | -------------------------- [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [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] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/mocks/mock_thing.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 6 | / mock! { [INFO] [stdout] 7 | | pub MyThing {} [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | impl Thing for MyThing { [INFO] [stdout] 10 | | fn new(shared: Arc>) -> Self; [INFO] [stdout] | | ^^^^^^ expected `std::sync::Mutex`, found `tokio::sync::Mutex` [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `tokio::sync::Mutex` and `std::sync::Mutex` have similar names, but are actually distinct types [INFO] [stdout] note: `tokio::sync::Mutex` is defined in crate `tokio` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/sync/mutex.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Mutex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `std::sync::Mutex` is defined in crate `std` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sync/poison/mutex.rs:227:1 [INFO] [stdout] note: method defined here [INFO] [stdout] --> tests/mocks/mock_thing.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / mock! { [INFO] [stdout] 7 | | pub MyThing {} [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | impl Thing for MyThing { [INFO] [stdout] 10 | | fn new(shared: Arc>) -> Self; [INFO] [stdout] | | -------------------------- [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [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] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thing` [INFO] [stdout] --> tests/test.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let thing = MockMyThing::new(Arc::new(Mutex::new("".to_string()))); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_thing` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `test_mockall_tokio` (test "mod") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `test_mockall_tokio` (test "test") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8e231e443a610a8906229035722dc3919fdcc290dec7a35bc5c0d206a20e1699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e231e443a610a8906229035722dc3919fdcc290dec7a35bc5c0d206a20e1699", kill_on_drop: false }` [INFO] [stdout] 8e231e443a610a8906229035722dc3919fdcc290dec7a35bc5c0d206a20e1699