[INFO] fetching crate zbuf 0.1.2... [INFO] checking zbuf-0.1.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate zbuf 0.1.2 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate zbuf 0.1.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate zbuf 0.1.2 [INFO] tweaked toml for crates.io crate zbuf 0.1.2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate zbuf 0.1.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac0b7e5397be5bb8a38c99d5ff197a8b3a6651c0d55911fcf97064fdf2b71807 [INFO] running `Command { std: "docker" "start" "-a" "ac0b7e5397be5bb8a38c99d5ff197a8b3a6651c0d55911fcf97064fdf2b71807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac0b7e5397be5bb8a38c99d5ff197a8b3a6651c0d55911fcf97064fdf2b71807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac0b7e5397be5bb8a38c99d5ff197a8b3a6651c0d55911fcf97064fdf2b71807", kill_on_drop: false }` [INFO] [stdout] ac0b7e5397be5bb8a38c99d5ff197a8b3a6651c0d55911fcf97064fdf2b71807 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2f56cc3efcf5e455eb8c411c22524e0f76d68790d6df47d7ac24d79af185dca [INFO] running `Command { std: "docker" "start" "-a" "d2f56cc3efcf5e455eb8c411c22524e0f76d68790d6df47d7ac24d79af185dca", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking zbuf v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> bytesbuf.rs:683:24 [INFO] [stdout] | [INFO] [stdout] 683 | if let b' '...b'~' = byte { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> bytesbuf.rs:683:24 [INFO] [stdout] | [INFO] [stdout] 683 | if let b' '...b'~' = byte { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (*data)[start..].split_at_mut(len); [INFO] [stdout] | ^^----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [u8]` [INFO] [stdout] --> bytesbuf.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (*data)[start..].split_at_mut(len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (&mut (*data))[start..].split_at_mut(len); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (*tail).len()); [INFO] [stdout] | ^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (*tail).len()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (&(*tail)).len()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:604:5 [INFO] [stdout] | [INFO] [stdout] 604 | (*dest)[..len].copy_from_slice(source); [INFO] [stdout] | ^^----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [u8]` [INFO] [stdout] --> bytesbuf.rs:604:5 [INFO] [stdout] | [INFO] [stdout] 604 | (*dest)[..len].copy_from_slice(source); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 604 | (&mut (*dest))[..len].copy_from_slice(source); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^----------------------^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 618 | &(&(*heap_allocation.data())[start..])[..len] [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^----------------------^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 618 | &(&(*heap_allocation.data()))[start..][..len] [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> strbuf.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | &tail_str[..additional_len]; // Check char boundary [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 467 | let _ = &tail_str[..additional_len]; // Check char boundary [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zbuf` (lib) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (*data)[start..].split_at_mut(len); [INFO] [stdout] | ^^----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [u8]` [INFO] [stdout] --> bytesbuf.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (*data)[start..].split_at_mut(len); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 200 | let (initialized, tail) = (&mut (*data))[start..].split_at_mut(len); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (*tail).len()); [INFO] [stdout] | ^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (*tail).len()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 442 | assert!(written <= (&(*tail)).len()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:604:5 [INFO] [stdout] | [INFO] [stdout] 604 | (*dest)[..len].copy_from_slice(source); [INFO] [stdout] | ^^----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [u8]` [INFO] [stdout] --> bytesbuf.rs:604:5 [INFO] [stdout] | [INFO] [stdout] 604 | (*dest)[..len].copy_from_slice(source); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 604 | (&mut (*dest))[..len].copy_from_slice(source); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^----------------------^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 618 | &(&(*heap_allocation.data())[start..])[..len] [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^----------------------^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const [u8]` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> bytesbuf.rs:618:22 [INFO] [stdout] | [INFO] [stdout] 618 | &(*heap_allocation.data())[start..][..len] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 618 | &(&(*heap_allocation.data()))[start..][..len] [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> strbuf.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | &tail_str[..additional_len]; // Check char boundary [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 467 | let _ = &tail_str[..additional_len]; // Check char boundary [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zbuf` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d2f56cc3efcf5e455eb8c411c22524e0f76d68790d6df47d7ac24d79af185dca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f56cc3efcf5e455eb8c411c22524e0f76d68790d6df47d7ac24d79af185dca", kill_on_drop: false }` [INFO] [stdout] d2f56cc3efcf5e455eb8c411c22524e0f76d68790d6df47d7ac24d79af185dca