[INFO] fetching crate pcast 0.3.0... [INFO] checking pcast-0.3.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate pcast 0.3.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate pcast 0.3.0 [INFO] finished tweaking crates.io crate pcast 0.3.0 [INFO] tweaked toml for crates.io crate pcast 0.3.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate pcast 0.3.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] [stderr] Adding try_from v0.2.2 (available: v0.3.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d52b262d7984ff396a41707e7c3774be8fe5fe31065241cbb545b3456b3389c [INFO] running `Command { std: "docker" "start" "-a" "7d52b262d7984ff396a41707e7c3774be8fe5fe31065241cbb545b3456b3389c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d52b262d7984ff396a41707e7c3774be8fe5fe31065241cbb545b3456b3389c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d52b262d7984ff396a41707e7c3774be8fe5fe31065241cbb545b3456b3389c", kill_on_drop: false }` [INFO] [stdout] 7d52b262d7984ff396a41707e7c3774be8fe5fe31065241cbb545b3456b3389c [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c13c88bfc49fcaaf22cffb4d850228d4cbd347409e76f5de5fe3ead8e7868bf7 [INFO] running `Command { std: "docker" "start" "-a" "c13c88bfc49fcaaf22cffb4d850228d4cbd347409e76f5de5fe3ead8e7868bf7", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking try_from v0.2.2 [INFO] [stderr] Checking pcast v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(&base)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(&base)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | / subtype_of!(Packet => PongPacket | PongConvError { [INFO] [stdout] 179 | | Err(PongConvError {}) [INFO] [stdout] 180 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | / subtype_of!(Packet => PongPacket | PongConvError { [INFO] [stdout] 179 | | Err(PongConvError {}) [INFO] [stdout] 180 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | / subtype_of!(Packet => PongPacket | PongConvError { [INFO] [stdout] 179 | | Err(PongConvError {}) [INFO] [stdout] 180 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(&base)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | / subtype_of!(Packet => StatusPacket | () { [INFO] [stdout] 182 | | Ok(()) [INFO] [stdout] 183 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | / subtype_of!(Packet => StatusPacket | () { [INFO] [stdout] 182 | | Ok(()) [INFO] [stdout] 183 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | / subtype_of!(Packet => StatusPacket | () { [INFO] [stdout] 182 | | Ok(()) [INFO] [stdout] 183 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let mut status_mut_ref: &mut StatusPacket = (&mut owned).try_into().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | let mut status_mut_view: &mut StatusPacket = pref.try_into().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut status_mut_view: &mut StatusPacket = (&mut owned).try_into().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:105:65 [INFO] [stdout] | [INFO] [stdout] 105 | fn try_from(base: $base) -> Result { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 106 | | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(&base)); [INFO] [stdout] 107 | | Ok(unsafe { ::std::mem::transmute::<$base, $sub>(base) }) [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try` which comes from the expansion of the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Ok(unsafe { ::std::mem::transmute::<$base, $sub>(base) }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:115:70 [INFO] [stdout] | [INFO] [stdout] 115 | fn try_from(base_ref: &$base) -> Result { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 116 | | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] 117 | | Ok(unsafe { ::std::mem::transmute::<&$base, &$sub>(base_ref) }) [INFO] [stdout] 118 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try` which comes from the expansion of the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | Ok(unsafe { ::std::mem::transmute::<&$base, &$sub>(base_ref) }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:125:74 [INFO] [stdout] | [INFO] [stdout] 125 | fn try_from(base_ref: &mut $base) -> Result { [INFO] [stdout] | __________________________________________________________________________^ [INFO] [stdout] 126 | | try!($crate::SubtypeCheck::<$base, $sub, $cerr>::check_is_valid_subtype(base_ref)); [INFO] [stdout] 127 | | Ok(unsafe { ::std::mem::transmute::<&mut $base, &mut $sub>(base_ref) }) [INFO] [stdout] 128 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `try` which comes from the expansion of the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&mut PingPacket, ConversionError> [INFO] [stdout] --> src/lib.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | Ok(unsafe { ::std::mem::transmute::<&mut $base, &mut $sub>(base_ref) }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / subtype_of!(Packet => PingPacket | ConversionError { [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `subtype_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pcast` (lib test) due to 9 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c13c88bfc49fcaaf22cffb4d850228d4cbd347409e76f5de5fe3ead8e7868bf7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c13c88bfc49fcaaf22cffb4d850228d4cbd347409e76f5de5fe3ead8e7868bf7", kill_on_drop: false }` [INFO] [stdout] c13c88bfc49fcaaf22cffb4d850228d4cbd347409e76f5de5fe3ead8e7868bf7