[INFO] fetching crate owning_ref 0.4.1... [INFO] checking owning_ref-0.4.1 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied-retry-0 [INFO] extracting crate owning_ref 0.4.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate owning_ref 0.4.1 [INFO] finished tweaking crates.io crate owning_ref 0.4.1 [INFO] tweaked toml for crates.io crate owning_ref 0.4.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate owning_ref 0.4.1 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 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 55a816fddb2bce613589b4b195574f5b4b918122c55f68989ce6b391e151b302 [INFO] running `Command { std: "docker" "start" "-a" "55a816fddb2bce613589b4b195574f5b4b918122c55f68989ce6b391e151b302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55a816fddb2bce613589b4b195574f5b4b918122c55f68989ce6b391e151b302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55a816fddb2bce613589b4b195574f5b4b918122c55f68989ce6b391e151b302", kill_on_drop: false }` [INFO] [stdout] 55a816fddb2bce613589b4b195574f5b4b918122c55f68989ce6b391e151b302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 9082342418c79dc25561835a8bb0603001c2a20d20e3ad9fa1d276d153a9a60f [INFO] running `Command { std: "docker" "start" "-a" "9082342418c79dc25561835a8bb0603001c2a20d20e3ad9fa1d276d153a9a60f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking owning_ref v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1074:28 [INFO] [stdout] | [INFO] [stdout] 1074 | where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1074 - where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] 1074 + where O: Send, for<'a> &'a T: Send {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1076:28 [INFO] [stdout] | [INFO] [stdout] 1076 | where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1076 - where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] 1076 + where O: Sync, for<'a> &'a T: Sync {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1079:28 [INFO] [stdout] | [INFO] [stdout] 1079 | where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1079 - where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] 1079 + where O: Send, for<'a> &'a mut T: Send {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1081:28 [INFO] [stdout] | [INFO] [stdout] 1081 | where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1081 - where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] 1081 + where O: Sync, for<'a> &'a mut T: Sync {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1074:28 [INFO] [stdout] | [INFO] [stdout] 1074 | where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1074 - where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] 1074 + where O: Send, for<'a> &'a T: Send {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1076:28 [INFO] [stdout] | [INFO] [stdout] 1076 | where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1076 - where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] 1076 + where O: Sync, for<'a> &'a T: Sync {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1079:28 [INFO] [stdout] | [INFO] [stdout] 1079 | where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1079 - where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] 1079 + where O: Send, for<'a> &'a mut T: Send {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1081:28 [INFO] [stdout] | [INFO] [stdout] 1081 | where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1081 - where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] 1081 + where O: Sync, for<'a> &'a mut T: Sync {} [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/lib.rs:355:30 [INFO] [stdout] | [INFO] [stdout] 355 | pub fn map(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:387:41 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn map_with_owner(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:419:37 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn try_map(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:452:48 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn try_map_with_owner(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | pub unsafe fn map_owner(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:483:26 [INFO] [stdout] | [INFO] [stdout] 483 | pub fn map_owner_box(self) -> OwningRef, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:522:28 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn erase_owner<'a>(self) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:534:21 [INFO] [stdout] | [INFO] [stdout] 534 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:539:23 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:602:30 [INFO] [stdout] | [INFO] [stdout] 602 | pub fn map(mut self, f: F) -> OwningRef [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:632:34 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn map_mut(mut self, f: F) -> OwningRefMut [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:664:37 [INFO] [stdout] | [INFO] [stdout] 664 | pub fn try_map(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:696:41 [INFO] [stdout] | [INFO] [stdout] 696 | pub fn try_map_mut(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:711:35 [INFO] [stdout] | [INFO] [stdout] 711 | pub unsafe fn map_owner(self, f: F) -> OwningRefMut [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:727:26 [INFO] [stdout] | [INFO] [stdout] 727 | pub fn map_owner_box(self) -> OwningRefMut, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:766:28 [INFO] [stdout] | [INFO] [stdout] 766 | pub fn erase_owner<'a>(self) -> OwningRefMut [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:778:21 [INFO] [stdout] | [INFO] [stdout] 778 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:783:25 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn as_owner_mut(&mut self) -> &mut O { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:788:23 [INFO] [stdout] | [INFO] [stdout] 788 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `owning_ref` (lib) due to 19 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/lib.rs:355:30 [INFO] [stdout] | [INFO] [stdout] 355 | pub fn map(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:387:41 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn map_with_owner(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:419:37 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn try_map(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:452:48 [INFO] [stdout] | [INFO] [stdout] 452 | pub fn try_map_with_owner(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | pub unsafe fn map_owner(self, f: F) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:483:26 [INFO] [stdout] | [INFO] [stdout] 483 | pub fn map_owner_box(self) -> OwningRef, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:522:28 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn erase_owner<'a>(self) -> OwningRef [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:534:21 [INFO] [stdout] | [INFO] [stdout] 534 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:539:23 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 947 | impl Deref for OwningRef { [INFO] [stdout] | -------------------------------------------- trait implemented here [INFO] [stdout] 948 | 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/lib.rs:602:30 [INFO] [stdout] | [INFO] [stdout] 602 | pub fn map(mut self, f: F) -> OwningRef [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:632:34 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn map_mut(mut self, f: F) -> OwningRefMut [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:664:37 [INFO] [stdout] | [INFO] [stdout] 664 | pub fn try_map(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:696:41 [INFO] [stdout] | [INFO] [stdout] 696 | pub fn try_map_mut(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:711:35 [INFO] [stdout] | [INFO] [stdout] 711 | pub unsafe fn map_owner(self, f: F) -> OwningRefMut [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:727:26 [INFO] [stdout] | [INFO] [stdout] 727 | pub fn map_owner_box(self) -> OwningRefMut, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:766:28 [INFO] [stdout] | [INFO] [stdout] 766 | pub fn erase_owner<'a>(self) -> OwningRefMut [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:778:21 [INFO] [stdout] | [INFO] [stdout] 778 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:783:25 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn as_owner_mut(&mut self) -> &mut O { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | 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/lib.rs:788:23 [INFO] [stdout] | [INFO] [stdout] 788 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 957 | impl Deref for OwningRefMut { [INFO] [stdout] | ----------------------------------------------- trait implemented here [INFO] [stdout] 958 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1737:53 [INFO] [stdout] | [INFO] [stdout] 1737 | let mut_s: &'static mut [u8] = unsafe { &mut MUT_S }; [INFO] [stdout] | ^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1737 | let mut_s: &'static mut [u8] = unsafe { &raw mut MUT_S }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `owning_ref` (lib test) due to 19 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9082342418c79dc25561835a8bb0603001c2a20d20e3ad9fa1d276d153a9a60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9082342418c79dc25561835a8bb0603001c2a20d20e3ad9fa1d276d153a9a60f", kill_on_drop: false }` [INFO] [stdout] 9082342418c79dc25561835a8bb0603001c2a20d20e3ad9fa1d276d153a9a60f