[INFO] fetching crate zmq 0.10.0... [INFO] testing zmq-0.10.0 against nightly-2025-01-18+rustflags=-Zrandomize-layout for randomize-layout-3 [INFO] extracting crate zmq 0.10.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate zmq 0.10.0 on toolchain nightly-2025-01-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zmq 0.10.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate zmq 0.10.0 [INFO] tweaked toml for crates.io crate zmq 0.10.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate zmq 0.10.0 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" "+nightly-2025-01-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b500881c45bfdd0f62838b8b560e539d7f25a7835743b559026d76abb95c5dcb [INFO] running `Command { std: "docker" "start" "-a" "b500881c45bfdd0f62838b8b560e539d7f25a7835743b559026d76abb95c5dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b500881c45bfdd0f62838b8b560e539d7f25a7835743b559026d76abb95c5dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b500881c45bfdd0f62838b8b560e539d7f25a7835743b559026d76abb95c5dcb", kill_on_drop: false }` [INFO] [stdout] b500881c45bfdd0f62838b8b560e539d7f25a7835743b559026d76abb95c5dcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f01efc6ac214e2068c34c083d21923cc9831b032d94d504d7ce679f4b030c8ef [INFO] running `Command { std: "docker" "start" "-a" "f01efc6ac214e2068c34c083d21923cc9831b032d94d504d7ce679f4b030c8ef", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling zmq v0.10.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling cfg-expr v0.11.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling jwalk v0.6.0 [INFO] [stderr] Compiling dircpy v0.3.13 [INFO] [stderr] Compiling zeromq-src v0.2.2+4.3.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling system-deps v6.0.3 [INFO] [stderr] Compiling zmq-sys v0.12.0 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.41s [INFO] running `Command { std: "docker" "inspect" "f01efc6ac214e2068c34c083d21923cc9831b032d94d504d7ce679f4b030c8ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f01efc6ac214e2068c34c083d21923cc9831b032d94d504d7ce679f4b030c8ef", kill_on_drop: false }` [INFO] [stdout] f01efc6ac214e2068c34c083d21923cc9831b032d94d504d7ce679f4b030c8ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 918299fb09037ef329be4997e0c922e330d6ed8e29bcb6c46794563591043960 [INFO] running `Command { std: "docker" "start" "-a" "918299fb09037ef329be4997e0c922e330d6ed8e29bcb6c46794563591043960", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling atom v0.3.6 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num_threads v0.1.3 [INFO] [stderr] Compiling trybuild v1.0.56 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling time v0.3.7 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling env_logger v0.9.1 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling pulse v0.5.3 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling timebomb v0.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling jwalk v0.6.0 [INFO] [stderr] Compiling dircpy v0.3.13 [INFO] [stderr] Compiling zeromq-src v0.2.2+4.3.4 [INFO] [stderr] Compiling system-deps v6.0.3 [INFO] [stderr] Compiling zmq-sys v0.12.0 [INFO] [stderr] Compiling zmq v0.10.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> tests/z85.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Input(Vec); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `compiletest_rs` [INFO] [stdout] --> tests/test.rs:589:7 [INFO] [stdout] | [INFO] [stdout] 589 | #[cfg(feature = "compiletest_rs")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `zmq_has` [INFO] [stdout] = help: consider adding `compiletest_rs` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.90s [INFO] running `Command { std: "docker" "inspect" "918299fb09037ef329be4997e0c922e330d6ed8e29bcb6c46794563591043960", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "918299fb09037ef329be4997e0c922e330d6ed8e29bcb6c46794563591043960", kill_on_drop: false }` [INFO] [stdout] 918299fb09037ef329be4997e0c922e330d6ed8e29bcb6c46794563591043960 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Zrandomize-layout" "-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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 97e1750afb790f2d360619f4bc4b8de7dbe36ab76da2fa739d7671d06e46782a [INFO] running `Command { std: "docker" "start" "-a" "97e1750afb790f2d360619f4bc4b8de7dbe36ab76da2fa739d7671d06e46782a", kill_on_drop: false }` [INFO] [stderr] warning: struct `Input` is never constructed [INFO] [stderr] --> tests/z85.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | struct Input(Vec); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `zmq` (test "z85") generated 1 warning [INFO] [stderr] warning: unexpected `cfg` condition value: `compiletest_rs` [INFO] [stderr] --> tests/test.rs:589:7 [INFO] [stderr] | [INFO] [stderr] 589 | #[cfg(feature = "compiletest_rs")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `default` and `zmq_has` [INFO] [stderr] = help: consider adding `compiletest_rs` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `zmq` (test "test") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zmq-c8183911f3170a10) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/compile-tests.rs (/opt/rustwide/target/debug/deps/compile_tests-15ee8a215b393f1a) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] warning: `/opt/rustwide/target/tests/zmq/.cargo/config` is deprecated in favor of `config.toml` [INFO] [stderr] note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Checking atom v0.3.6 [INFO] [stderr] Compiling zmq v0.10.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling cfg-expr v0.11.0 [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking env_logger v0.9.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling jobserver v0.1.25 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking pulse v0.5.3 [INFO] [stderr] Checking timebomb v0.1.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling jwalk v0.6.0 [INFO] [stderr] Compiling system-deps v6.0.3 [INFO] [stderr] Compiling dircpy v0.3.13 [INFO] [stderr] Compiling zeromq-src v0.2.2+4.3.4 [INFO] [stderr] Compiling zmq-sys v0.12.0 [INFO] [stderr] Checking zmq-tests v0.0.0 (/opt/rustwide/target/tests/zmq) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.17s [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] test tests/compile-fail/no-leaking-poll-items.rs ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0597]: `socket` does not live long enough [INFO] [stderr] --> tests/compile-fail/no-leaking-poll-items.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 3 | let _poll_item = { [INFO] [stderr] | ---------- borrow later stored here [INFO] [stderr] 4 | let socket = context.socket(zmq::PAIR).unwrap(); [INFO] [stderr] 5 | socket.as_poll_item(zmq::POLLIN) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stderr] 6 | }; //~^ ERROR `socket` does not live long enough [E0597] [INFO] [stderr] | - `socket` dropped here while still borrowed [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] warning: `/opt/rustwide/target/tests/zmq/.cargo/config` is deprecated in favor of `config.toml` [INFO] [stderr] note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` [INFO] [stderr] error[E0597]: `socket` does not live long enough [INFO] [stderr] --> tests/compile-fail/no-leaking-poll-items.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 3 | let _poll_item = { [INFO] [stderr] | ---------- borrow later stored here [INFO] [stderr] 4 | let socket = context.socket(zmq::PAIR).unwrap(); [INFO] [stderr] | ------ binding `socket` declared here [INFO] [stderr] 5 | socket.as_poll_item(zmq::POLLIN) [INFO] [stderr] | ^^^^^^ borrowed value does not live long enough [INFO] [stderr] 6 | }; //~^ ERROR `socket` does not live long enough [E0597] [INFO] [stderr] | - `socket` dropped here while still borrowed [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/compile-fail/socket-thread-unsafe.rs ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0277]: `*mut c_void` cannot be shared between threads safely [INFO] [stderr] --> tests/compile-fail/socket-thread-unsafe.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | let t = thread::spawn(move || { [INFO] [stderr] | ^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `Socket`, the trait `Sync` is not implemented for `*mut c_void` [INFO] [stderr] = note: required because it appears within the type `Socket` [INFO] [stderr] = note: required because of the requirements on the impl of `Send` for `&Socket` [INFO] [stderr] note: required because it's used within this closure [INFO] [stderr] --> tests/compile-fail/socket-thread-unsafe.rs:13:27 [INFO] [stderr] | [INFO] [stderr] 13 | let t = thread::spawn(move || { [INFO] [stderr] | ___________________________^ [INFO] [stderr] 14 | | t!(s.bind("tcp://127.0.0.1:12345")) [INFO] [stderr] 15 | | }); [INFO] [stderr] | |_____^ [INFO] [stderr] note: required by a bound in `spawn` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] warning: `/opt/rustwide/target/tests/zmq/.cargo/config` is deprecated in favor of `config.toml` [INFO] [stderr] note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` [INFO] [stderr] error[E0277]: `*mut c_void` cannot be shared between threads safely [INFO] [stderr] --> tests/compile-fail/socket-thread-unsafe.rs:13:27 [INFO] [stderr] | [INFO] [stderr] 13 | let t = thread::spawn(move || { [INFO] [stderr] | _____________-------------_^ [INFO] [stderr] | | | [INFO] [stderr] | | required by a bound introduced by this call [INFO] [stderr] 14 | | t!(s.bind("tcp://127.0.0.1:12345")) [INFO] [stderr] 15 | | }); [INFO] [stderr] | |_____^ `*mut c_void` cannot be shared between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `Socket`, the trait `Sync` is not implemented for `*mut c_void` [INFO] [stderr] note: required because it appears within the type `Socket` [INFO] [stderr] --> src/lib.rs [INFO] [stderr] | [INFO] [stderr] | pub struct Socket { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] = note: required for `&Socket` to implement `Send` [INFO] [stderr] note: required because it's used within this closure [INFO] [stderr] --> tests/compile-fail/socket-thread-unsafe.rs:13:27 [INFO] [stderr] | [INFO] [stderr] 13 | let t = thread::spawn(move || { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] note: required by a bound in `spawn` [INFO] [stderr] --> /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:723:1 [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] [INFO] [stdout] test compile_fail ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- compile_fail stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'compile_fail' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.56/src/run.rs:74:13: [INFO] [stdout] 2 of 2 tests failed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x624a888adcca - std::backtrace_rs::backtrace::libunwind::trace::hb059275cfc8d6126 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 [INFO] [stdout] 1: 0x624a888adcca - std::backtrace_rs::backtrace::trace_unsynchronized::h2da071e4327ce3ee [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x624a888adcca - std::sys::backtrace::_print_fmt::h842a1474e6f8d23f [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x624a888adcca - ::fmt::h71a62eb3b9696b12 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x624a888d8353 - core::fmt::rt::Argument::fmt::hdb6b616786b41dc1 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/rt.rs:177:76 [INFO] [stdout] 5: 0x624a888d8353 - core::fmt::write::h2cc1698af7e2d686 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/mod.rs:1440:21 [INFO] [stdout] 6: 0x624a888a9bf3 - std::io::Write::write_fmt::hab1b4cd059a79022 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/io/mod.rs:1887:15 [INFO] [stdout] 7: 0x624a888adb12 - std::sys::backtrace::BacktraceLock::print::h147fe35b4ea13b08 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x624a888af0ef - std::panicking::default_hook::{{closure}}::hbd44223dbdc0d208 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x624a888aef08 - std::panicking::default_hook::h20f81eb0576efcec [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x624a888757e3 - as core::ops::function::Fn>::call::hdb53814c496a4d34 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2027:9 [INFO] [stdout] 11: 0x624a888757e3 - test::test_main::{{closure}}::hc0a4963c59427c24 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:134:21 [INFO] [stdout] 12: 0x624a888afbe3 - as core::ops::function::Fn>::call::h591b2225413a77e9 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2027:9 [INFO] [stdout] 13: 0x624a888afbe3 - std::panicking::rust_panic_with_hook::h625eea43051b2edc [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x624a888af89a - std::panicking::begin_panic_handler::{{closure}}::h4f9159cfbc3f6bd3 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x624a888ae1c9 - std::sys::backtrace::__rust_end_short_backtrace::h0390abce48353151 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x624a888af52d - rust_begin_unwind [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x624a888d6d30 - core::panicking::panic_fmt::h9e7c637e9e5f29c9 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x624a886a0146 - trybuild::run::::run::hd435a4cedc27b350 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.56/src/run.rs:74:13 [INFO] [stdout] 19: 0x624a886a5f68 - ::drop::h7fafa5d1b88bd82e [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.56/src/lib.rs:308:13 [INFO] [stdout] 20: 0x624a88699a87 - core::ptr::drop_in_place::h207d24cd411cfc9b [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ptr/mod.rs:523:1 [INFO] [stdout] 21: 0x624a8869a193 - compile_tests::compile_fail::had99eb476c6b9d67 [INFO] [stdout] at /opt/rustwide/workdir/tests/compile-tests.rs:5:1 [INFO] [stdout] 22: 0x624a8869a127 - compile_tests::compile_fail::{{closure}}::h06b5c9fe48534d3b [INFO] [stdout] at /opt/rustwide/workdir/tests/compile-tests.rs:2:18 [INFO] [stdout] 23: 0x624a88699a36 - core::ops::function::FnOnce::call_once::h808b68e6e48e7eff [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x624a8887af3b - core::ops::function::FnOnce::call_once::he27718dfdd183f43 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x624a8887af3b - test::__rust_begin_short_backtrace::h4e84902998457a5d [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:632:18 [INFO] [stdout] 26: 0x624a88879e73 - test::run_test_in_process::{{closure}}::h7176fd18fc1feca0 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:60 [INFO] [stdout] 27: 0x624a88879e73 - as core::ops::function::FnOnce<()>>::call_once::hf79cff2a624d8cf7 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x624a88879e73 - std::panicking::try::do_call::h3da0561d9ab99c25 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40 [INFO] [stdout] 29: 0x624a88879e73 - std::panicking::try::h41c9fa508bc61df6 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19 [INFO] [stdout] 30: 0x624a88879e73 - std::panic::catch_unwind::h6b3ff07bb5afad93 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14 [INFO] [stdout] 31: 0x624a88879e73 - test::run_test_in_process::hc7253dd11b39b9f4 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:27 [INFO] [stdout] 32: 0x624a88879e73 - test::run_test::{{closure}}::hfb2007f8649c30bb [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:576:43 [INFO] [stdout] 33: 0x624a8883cf55 - test::run_test::{{closure}}::h56a17aa7a282a9f4 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:606:41 [INFO] [stdout] 34: 0x624a8883cf55 - std::sys::backtrace::__rust_begin_short_backtrace::hd2d2d2fb8e8c6aac [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x624a8884083a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h4faa3f9db6133423 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x624a8884083a - as core::ops::function::FnOnce<()>>::call_once::hf2e855a36a4ea846 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x624a8884083a - std::panicking::try::do_call::h2f73af3616c35465 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40 [INFO] [stdout] 38: 0x624a8884083a - std::panicking::try::hd1660ce9efadef5a [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19 [INFO] [stdout] 39: 0x624a8884083a - std::panic::catch_unwind::h5ee8d7823b8ca744 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14 [INFO] [stdout] 40: 0x624a8884083a - std::thread::Builder::spawn_unchecked_::{{closure}}::h53c3a1894dce8407 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x624a8884083a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h048ce291ad4f62bf [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x624a888b4ebb - as core::ops::function::FnOnce>::call_once::ha52bedf99a3b4981 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2013:9 [INFO] [stdout] 43: 0x624a888b4ebb - as core::ops::function::FnOnce>::call_once::h567748934d80ccf8 [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2013:9 [INFO] [stdout] 44: 0x624a888b4ebb - std::sys::pal::unix::thread::Thread::new::thread_start::h2d970728ae887adc [INFO] [stdout] at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/pal/unix/thread.rs:106:17 [INFO] [stdout] 45: 0x7e132cb67ac3 - [INFO] [stdout] 46: 0x7e132cbf8a04 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] compile_fail [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.53s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test compile-tests` [INFO] running `Command { std: "docker" "inspect" "97e1750afb790f2d360619f4bc4b8de7dbe36ab76da2fa739d7671d06e46782a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97e1750afb790f2d360619f4bc4b8de7dbe36ab76da2fa739d7671d06e46782a", kill_on_drop: false }` [INFO] [stdout] 97e1750afb790f2d360619f4bc4b8de7dbe36ab76da2fa739d7671d06e46782a