[INFO] fetching crate bytes-expand 0.4.12... [INFO] checking bytes-expand-0.4.12 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate bytes-expand 0.4.12 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate bytes-expand 0.4.12 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6858b55dd4352b30f315291d848d2478b6017f9d360f379f2f9dfcfe946790e1 [INFO] running `Command { std: "docker" "start" "-a" "6858b55dd4352b30f315291d848d2478b6017f9d360f379f2f9dfcfe946790e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6858b55dd4352b30f315291d848d2478b6017f9d360f379f2f9dfcfe946790e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6858b55dd4352b30f315291d848d2478b6017f9d360f379f2f9dfcfe946790e1", kill_on_drop: false }` [INFO] [stdout] 6858b55dd4352b30f315291d848d2478b6017f9d360f379f2f9dfcfe946790e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db52249d1d19d9ae12a790ec1b9548ccc9cd7e7d16846f1c93e43621ec4d35c9 [INFO] running `Command { std: "docker" "start" "-a" "db52249d1d19d9ae12a790ec1b9548ccc9cd7e7d16846f1c93e43621ec4d35c9", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking 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 an object-safe 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 an object-safe 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] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` (lib) due to 22 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "db52249d1d19d9ae12a790ec1b9548ccc9cd7e7d16846f1c93e43621ec4d35c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db52249d1d19d9ae12a790ec1b9548ccc9cd7e7d16846f1c93e43621ec4d35c9", kill_on_drop: false }` [INFO] [stdout] db52249d1d19d9ae12a790ec1b9548ccc9cd7e7d16846f1c93e43621ec4d35c9