[INFO] fetching crate flex-alloc 0.0.5... [INFO] checking flex-alloc-0.0.5 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied-retry-0 [INFO] extracting crate flex-alloc 0.0.5 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate flex-alloc 0.0.5 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate flex-alloc 0.0.5 [INFO] tweaked toml for crates.io crate flex-alloc 0.0.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate flex-alloc 0.0.5 on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 76 packages to latest compatible versions [INFO] [stderr] Adding allocator-api2 v0.2.21 (available: v0.4.0) [INFO] [stderr] Adding criterion v0.5.1 (available: v0.8.2) [INFO] [stderr] Adding rstest v0.23.0 (available: v0.26.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e809a697978eb861ce93305b3f765b01d79300955d56712f6613e9919fe1c45 [INFO] running `Command { std: "docker" "start" "-a" "2e809a697978eb861ce93305b3f765b01d79300955d56712f6613e9919fe1c45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e809a697978eb861ce93305b3f765b01d79300955d56712f6613e9919fe1c45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e809a697978eb861ce93305b3f765b01d79300955d56712f6613e9919fe1c45", kill_on_drop: false }` [INFO] [stdout] 2e809a697978eb861ce93305b3f765b01d79300955d56712f6613e9919fe1c45 [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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f72a5ebe056e743e10131d7e62adbdbac2f1b211eb326afd5c7e0f48b0912dd0 [INFO] running `Command { std: "docker" "start" "-a" "f72a5ebe056e743e10131d7e62adbdbac2f1b211eb326afd5c7e0f48b0912dd0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling zmij v1.0.20 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling libc v0.2.181 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Checking clap_builder v4.5.57 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling rstest_macros v0.23.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking const-default v1.0.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking flex-alloc v0.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stdout] warning: transmuting an integer to a pointer creates a pointer without provenance [INFO] [stdout] --> src/alloc.rs:289:40 [INFO] [stdout] | [INFO] [stdout] 289 | NonNull::new_unchecked(transmute(layout.align())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is dangerous because dereferencing the resulting pointer is undefined behavior [INFO] [stdout] = note: exposed provenance semantics can be used to create a pointer based on some previously exposed provenance [INFO] [stdout] = help: if you truly mean to create a pointer without provenance, use `std::ptr::without_provenance_mut` [INFO] [stdout] = help: for more information about transmute, see [INFO] [stdout] = help: for more information about exposed provenance, see [INFO] [stdout] = note: `#[warn(integer_to_ptr_transmutes)]` on by default [INFO] [stdout] help: use `std::ptr::with_exposed_provenance_mut` instead to use a previously exposed provenance [INFO] [stdout] | [INFO] [stdout] 289 - NonNull::new_unchecked(transmute(layout.align())) [INFO] [stdout] 289 + NonNull::new_unchecked(std::ptr::with_exposed_provenance_mut::(layout.align())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/boxed.rs:285:22 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn allocator(&self) -> &A { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | impl Deref for Box { [INFO] [stdout] | ------------------------------------------------- trait implemented here [INFO] [stdout] 498 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/boxed.rs:292:19 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn as_ptr(&self) -> *const T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | impl Deref for Box { [INFO] [stdout] | ------------------------------------------------- trait implemented here [INFO] [stdout] 498 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/boxed.rs:299:23 [INFO] [stdout] | [INFO] [stdout] 299 | pub fn as_mut_ptr(&mut self) -> *mut T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | impl Deref for Box { [INFO] [stdout] | ------------------------------------------------- trait implemented here [INFO] [stdout] 498 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn is_borrowed(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn is_owned(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn to_mut(&mut self) -> &mut Owned [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn to_mut_in(&mut self, alloc_in: I) -> &mut Owned [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn into_owned(self) -> Owned [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:114:29 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn into_owned_in(self, alloc_in: I) -> Owned [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:126:27 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn try_into_owned(self) -> Result, StorageError> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/borrow.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn try_into_owned_in(self, storage: I) -> Result, StorageError> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | impl + ?Sized, A: Allocator> Deref for Cow<'_, T, A> { [INFO] [stdout] | -------------------------------------------------------------------- trait implemented here [INFO] [stdout] 215 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `flex-alloc` (lib) due to 11 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "f72a5ebe056e743e10131d7e62adbdbac2f1b211eb326afd5c7e0f48b0912dd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f72a5ebe056e743e10131d7e62adbdbac2f1b211eb326afd5c7e0f48b0912dd0", kill_on_drop: false }` [INFO] [stdout] f72a5ebe056e743e10131d7e62adbdbac2f1b211eb326afd5c7e0f48b0912dd0