[INFO] fetching crate alloc-no-stdlib 2.0.4... [INFO] checking alloc-no-stdlib-2.0.4 against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] extracting crate alloc-no-stdlib 2.0.4 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate alloc-no-stdlib 2.0.4 [INFO] finished tweaking crates.io crate alloc-no-stdlib 2.0.4 [INFO] tweaked toml for crates.io crate alloc-no-stdlib 2.0.4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate alloc-no-stdlib 2.0.4 on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate alloc-no-stdlib 2.0.4 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ea35acdbde96083c3be45e61066554457ba8b5ad4dd7a2a5a22b00803ce74c1 [INFO] running `Command { std: "docker" "start" "-a" "8ea35acdbde96083c3be45e61066554457ba8b5ad4dd7a2a5a22b00803ce74c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ea35acdbde96083c3be45e61066554457ba8b5ad4dd7a2a5a22b00803ce74c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ea35acdbde96083c3be45e61066554457ba8b5ad4dd7a2a5a22b00803ce74c1", kill_on_drop: false }` [INFO] [stdout] 8ea35acdbde96083c3be45e61066554457ba8b5ad4dd7a2a5a22b00803ce74c1 [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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8fade266973a3659c14e31604eac1c3ade9ffedd65b831ccedc3a2b03a89a30 [INFO] running `Command { std: "docker" "start" "-a" "d8fade266973a3659c14e31604eac1c3ade9ffedd65b831ccedc3a2b03a89a30", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::ops::IndexMut` [INFO] [stdout] --> src/allocated_memory/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use core::ops::IndexMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Index` [INFO] [stdout] --> src/allocated_memory/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use core::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Range` [INFO] [stdout] --> src/allocated_memory/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use core::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/stack_allocator.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn alloc_cell(self : &mut StackAllocator<'a, T, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/stack_allocator.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn free_cell(self : &mut StackAllocator<'a, T, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::IndexMut` [INFO] [stdout] --> src/allocated_memory/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use core::ops::IndexMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Index` [INFO] [stdout] --> src/allocated_memory/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use core::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Range` [INFO] [stdout] --> src/allocated_memory/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use core::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/stack_allocator.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn alloc_cell(self : &mut StackAllocator<'a, T, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] = note: `#[deny(self_lifetime_elision_not_applicable)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `self` parameter type does not contain `Self` [INFO] [stdout] --> src/stack_allocator.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn free_cell(self : &mut StackAllocator<'a, T, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `&self`, `&mut self`, or `self: &Self` for correct lifetime elision [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #140611 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | core::mem::forget(core::mem::replace(&mut self.data, &mut[])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut [T]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 78 - core::mem::forget(core::mem::replace(&mut self.data, &mut[])); [INFO] [stdout] 78 + let _ = core::mem::replace(&mut self.data, &mut[]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | core::mem::forget(core::mem::replace(&mut self.data, &mut[])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut [T]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 78 - core::mem::forget(core::mem::replace(&mut self.data, &mut[])); [INFO] [stdout] 78 + let _ = core::mem::replace(&mut self.data, &mut[]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alloc-no-stdlib` (lib test) due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `alloc-no-stdlib` (lib) due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d8fade266973a3659c14e31604eac1c3ade9ffedd65b831ccedc3a2b03a89a30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8fade266973a3659c14e31604eac1c3ade9ffedd65b831ccedc3a2b03a89a30", kill_on_drop: false }` [INFO] [stdout] d8fade266973a3659c14e31604eac1c3ade9ffedd65b831ccedc3a2b03a89a30