[INFO] fetching crate bytes-expand 0.4.12... [INFO] testing bytes-expand-0.4.12 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate bytes-expand 0.4.12 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate bytes-expand 0.4.12 [INFO] finished tweaking crates.io crate bytes-expand 0.4.12 [INFO] tweaked toml for crates.io crate bytes-expand 0.4.12 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bytes-expand 0.4.12 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2602a6324e0c61f705d8f8ac69a596f37522bd2f4e31b89adbc256c3651e3826 [INFO] running `Command { std: "docker" "start" "-a" "2602a6324e0c61f705d8f8ac69a596f37522bd2f4e31b89adbc256c3651e3826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2602a6324e0c61f705d8f8ac69a596f37522bd2f4e31b89adbc256c3651e3826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2602a6324e0c61f705d8f8ac69a596f37522bd2f4e31b89adbc256c3651e3826", kill_on_drop: false }` [INFO] [stdout] 2602a6324e0c61f705d8f8ac69a596f37522bd2f4e31b89adbc256c3651e3826 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d3e7609f06ce73fd1d9cf5bbab13bf66f5716b11d4073b18da37fcf0fa63be8 [INFO] running `Command { std: "docker" "start" "-a" "0d3e7609f06ce73fd1d9cf5bbab13bf66f5716b11d4073b18da37fcf0fa63be8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling bytes-expand v0.4.12 (/opt/rustwide/workdir) [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(write!(fmt, "b\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | #![deny(warnings, missing_docs, missing_debug_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(write!(fmt, "\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | try!(write!(fmt, "\\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | try!(write!(fmt, "\\r")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | try!(write!(fmt, "\\t")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | try!(write!(fmt, "\\{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | try!(write!(fmt, "\\0")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | try!(write!(fmt, "{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(fmt, "\\x{:02x}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1680:45 [INFO] [stdout] | [INFO] [stdout] 1680 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1873:45 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:2166:41 [INFO] [stdout] | [INFO] [stdout] 2166 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf.rs:1154:30 [INFO] [stdout] | [INFO] [stdout] 1154 | fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 1154 | fn _assert_trait_object(_b: &dyn Buf) {} [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf_mut.rs:1167:30 [INFO] [stdout] | [INFO] [stdout] 1167 | fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 1167 | fn _assert_trait_object(_b: &dyn BufMut) {} [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated method `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/bytes.rs:2271:31 [INFO] [stdout] | [INFO] [stdout] 2271 | let actual = self.arc.compare_and_swap(arc as *mut Shared, shared, AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:834:9 [INFO] [stdout] | [INFO] [stdout] 834 | mem::replace(self, result.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 834 | let _ = mem::replace(self, result.freeze()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:1029:9 [INFO] [stdout] | [INFO] [stdout] 1029 | mem::replace(self, bytes_mut.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1029 | let _ = mem::replace(self, bytes_mut.freeze()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the type `Inner` does not permit being left uninitialized [INFO] [stdout] --> src/bytes.rs:1680:40 [INFO] [stdout] | [INFO] [stdout] 1680 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: raw pointers must be initialized (in this struct field) [INFO] [stdout] --> src/bytes.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | arc: AtomicPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(invalid_value)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the type `Inner` does not permit being left uninitialized [INFO] [stdout] --> src/bytes.rs:1873:40 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: raw pointers must be initialized (in this struct field) [INFO] [stdout] --> src/bytes.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | arc: AtomicPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the type `Inner` does not permit being left uninitialized [INFO] [stdout] --> src/bytes.rs:2166:36 [INFO] [stdout] | [INFO] [stdout] 2166 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: raw pointers must be initialized (in this struct field) [INFO] [stdout] --> src/bytes.rs:302:5 [INFO] [stdout] | [INFO] [stdout] 302 | arc: AtomicPtr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/bytes.rs:2605:9 [INFO] [stdout] | [INFO] [stdout] 2605 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 2605 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` (lib) due to 21 previous errors [INFO] running `Command { std: "docker" "inspect" "0d3e7609f06ce73fd1d9cf5bbab13bf66f5716b11d4073b18da37fcf0fa63be8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d3e7609f06ce73fd1d9cf5bbab13bf66f5716b11d4073b18da37fcf0fa63be8", kill_on_drop: false }` [INFO] [stdout] 0d3e7609f06ce73fd1d9cf5bbab13bf66f5716b11d4073b18da37fcf0fa63be8