[INFO] fetching crate safer_owning_ref 0.5.1... [INFO] checking safer_owning_ref-0.5.1 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] extracting crate safer_owning_ref 0.5.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate safer_owning_ref 0.5.1 [INFO] finished tweaking crates.io crate safer_owning_ref 0.5.1 [INFO] tweaked toml for crates.io crate safer_owning_ref 0.5.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate safer_owning_ref 0.5.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] crate crates.io crate safer_owning_ref 0.5.1 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" "+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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 0a6a82edd375225633c2b7f1d4b65411d01d507f0afdd9f3d918eeab4d0599f7 [INFO] running `Command { std: "docker" "start" "-a" "0a6a82edd375225633c2b7f1d4b65411d01d507f0afdd9f3d918eeab4d0599f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a6a82edd375225633c2b7f1d4b65411d01d507f0afdd9f3d918eeab4d0599f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a6a82edd375225633c2b7f1d4b65411d01d507f0afdd9f3d918eeab4d0599f7", kill_on_drop: false }` [INFO] [stdout] 0a6a82edd375225633c2b7f1d4b65411d01d507f0afdd9f3d918eeab4d0599f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 0776ee58e0e78493ea44946e9365250d035f21ddf1afde39178312945a6ef3cd [INFO] running `Command { std: "docker" "start" "-a" "0776ee58e0e78493ea44946e9365250d035f21ddf1afde39178312945a6ef3cd", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking maybe-dangling v0.1.2 [INFO] [stderr] Checking safer_owning_ref v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1143:28 [INFO] [stdout] | [INFO] [stdout] 1143 | 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] 1143 - where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] 1143 + 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:1145:28 [INFO] [stdout] | [INFO] [stdout] 1145 | where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1145 - where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] 1145 + 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:1148:28 [INFO] [stdout] | [INFO] [stdout] 1148 | where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1148 - where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] 1148 + 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:1150:28 [INFO] [stdout] | [INFO] [stdout] 1150 | where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1150 - where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] 1150 + where O: Sync, for<'a> &'a mut T: Sync {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `OwningRefMut::<'t, O, T>::map`: unsafe function. can create aliased references [INFO] [stdout] --> src/lib.rs:1780:50 [INFO] [stdout] | [INFO] [stdout] 1780 | let or: BoxRef<_, str> = unsafe { or.map(|_| "hello") }; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1143:28 [INFO] [stdout] | [INFO] [stdout] 1143 | 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] 1143 - where O: Send, for<'a> (&'a T): Send {} [INFO] [stdout] 1143 + 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:1145:28 [INFO] [stdout] | [INFO] [stdout] 1145 | where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1145 - where O: Sync, for<'a> (&'a T): Sync {} [INFO] [stdout] 1145 + 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:1148:28 [INFO] [stdout] | [INFO] [stdout] 1148 | where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1148 - where O: Send, for<'a> (&'a mut T): Send {} [INFO] [stdout] 1148 + 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:1150:28 [INFO] [stdout] | [INFO] [stdout] 1150 | where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1150 - where O: Sync, for<'a> (&'a mut T): Sync {} [INFO] [stdout] 1150 + where O: Sync, for<'a> &'a mut T: Sync {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `OwningRefMut::<'t, O, T>::as_owner`: unsafe function. can create aliased references [INFO] [stdout] --> src/lib.rs:1845:40 [INFO] [stdout] | [INFO] [stdout] 1845 | assert_eq!(&** unsafe { or.as_owner() }, "hello world"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `OwningRefMut::<'t, O, T>::map`: unsafe function. can create aliased references [INFO] [stdout] --> src/lib.rs:2057:46 [INFO] [stdout] | [INFO] [stdout] 2057 | let or: BoxRef<()> = unsafe { or.map(|x| x) }; [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:368:30 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn map(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:381:55 [INFO] [stdout] | [INFO] [stdout] 381 | pub unsafe fn map_with_owner_direct(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:414:41 [INFO] [stdout] | [INFO] [stdout] 414 | pub fn map_with_owner(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:447:37 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn try_map(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:469:62 [INFO] [stdout] | [INFO] [stdout] 469 | pub unsafe fn try_map_with_owner_direct(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:503:48 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn try_map_with_owner(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:519:35 [INFO] [stdout] | [INFO] [stdout] 519 | pub unsafe fn map_owner(self, f: F) -> OwningRef<'t, P, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:536:26 [INFO] [stdout] | [INFO] [stdout] 536 | pub fn map_owner_box(self) -> OwningRef<'t, Box, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:576:28 [INFO] [stdout] | [INFO] [stdout] 576 | pub fn erase_owner<'a>(self) -> OwningRef<'t, O::Erased, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:594:23 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:663:37 [INFO] [stdout] | [INFO] [stdout] 663 | pub unsafe fn map(mut self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:694:34 [INFO] [stdout] | [INFO] [stdout] 694 | pub fn map_mut(mut self, f: F) -> OwningRefMut<'t, O, U> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:731:44 [INFO] [stdout] | [INFO] [stdout] 731 | pub unsafe fn try_map(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:764:41 [INFO] [stdout] | [INFO] [stdout] 764 | pub fn try_map_mut(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:780:35 [INFO] [stdout] | [INFO] [stdout] 780 | pub unsafe fn map_owner(self, f: F) -> OwningRefMut<'t, P, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:797:26 [INFO] [stdout] | [INFO] [stdout] 797 | pub fn map_owner_box(self) -> OwningRefMut<'t, Box, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:837:28 [INFO] [stdout] | [INFO] [stdout] 837 | pub fn erase_owner<'a>(self) -> OwningRefMut<'t, O::Erased, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:849:28 [INFO] [stdout] | [INFO] [stdout] 849 | pub unsafe fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:855:32 [INFO] [stdout] | [INFO] [stdout] 855 | pub unsafe fn as_owner_mut(&mut self) -> &mut O { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:860:23 [INFO] [stdout] | [INFO] [stdout] 860 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `safer_owning_ref` (lib) due to 21 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:368:30 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn map(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:381:55 [INFO] [stdout] | [INFO] [stdout] 381 | pub unsafe fn map_with_owner_direct(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | type Target = T; [INFO] [stdout] | ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `safer_owning_ref` (lib test) due to 21 previous errors; 8 warnings emitted [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/lib.rs:414:41 [INFO] [stdout] | [INFO] [stdout] 414 | pub fn map_with_owner(self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:447:37 [INFO] [stdout] | [INFO] [stdout] 447 | pub fn try_map(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:469:62 [INFO] [stdout] | [INFO] [stdout] 469 | pub unsafe fn try_map_with_owner_direct(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:503:48 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn try_map_with_owner(self, f: F) -> Result, E> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:519:35 [INFO] [stdout] | [INFO] [stdout] 519 | pub unsafe fn map_owner(self, f: F) -> OwningRef<'t, P, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:536:26 [INFO] [stdout] | [INFO] [stdout] 536 | pub fn map_owner_box(self) -> OwningRef<'t, Box, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:576:28 [INFO] [stdout] | [INFO] [stdout] 576 | pub fn erase_owner<'a>(self) -> OwningRef<'t, O::Erased, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:594:23 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1016 | impl<'t, O, T: ?Sized> Deref for OwningRef<'t, O, T> { [INFO] [stdout] | ---------------------------------------------------- trait implemented here [INFO] [stdout] 1017 | 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:663:37 [INFO] [stdout] | [INFO] [stdout] 663 | pub unsafe fn map(mut self, f: F) -> OwningRef<'t, O, U> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:694:34 [INFO] [stdout] | [INFO] [stdout] 694 | pub fn map_mut(mut self, f: F) -> OwningRefMut<'t, O, U> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:731:44 [INFO] [stdout] | [INFO] [stdout] 731 | pub unsafe fn try_map(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:764:41 [INFO] [stdout] | [INFO] [stdout] 764 | pub fn try_map_mut(mut self, f: F) -> Result, E> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:780:35 [INFO] [stdout] | [INFO] [stdout] 780 | pub unsafe fn map_owner(self, f: F) -> OwningRefMut<'t, P, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:797:26 [INFO] [stdout] | [INFO] [stdout] 797 | pub fn map_owner_box(self) -> OwningRefMut<'t, Box, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:837:28 [INFO] [stdout] | [INFO] [stdout] 837 | pub fn erase_owner<'a>(self) -> OwningRefMut<'t, O::Erased, T> [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:849:28 [INFO] [stdout] | [INFO] [stdout] 849 | pub unsafe fn as_owner(&self) -> &O { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:855:32 [INFO] [stdout] | [INFO] [stdout] 855 | pub unsafe fn as_owner_mut(&mut self) -> &mut O { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:860:23 [INFO] [stdout] | [INFO] [stdout] 860 | pub fn into_owner(self) -> O { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1026 | impl<'t, O, T: ?Sized> Deref for OwningRefMut<'t, O, T> { [INFO] [stdout] | ------------------------------------------------------- trait implemented here [INFO] [stdout] 1027 | 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:1806:53 [INFO] [stdout] | [INFO] [stdout] 1806 | 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] 1806 | let mut_s: &'static mut [u8] = unsafe { &raw mut MUT_S }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0776ee58e0e78493ea44946e9365250d035f21ddf1afde39178312945a6ef3cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0776ee58e0e78493ea44946e9365250d035f21ddf1afde39178312945a6ef3cd", kill_on_drop: false }` [INFO] [stdout] 0776ee58e0e78493ea44946e9365250d035f21ddf1afde39178312945a6ef3cd