Skip to content

Commit c3815aa

Browse files
onestackedBennoLossin
authored andcommitted
rust: pin-init: Update the structural pinning link in readme.
The previous link anchor was broken in rust 1.77, because the documentation was refactored in upstream rust. Change the link to refer to the new section in the rust documentation. Signed-off-by: Christian Schrefl <chrisi.schrefl@gmail.com> Link: Rust-for-Linux/pin-init@a146142 [ Fixed commit authorship. - Benno ] Signed-off-by: Benno Lossin <benno.lossin@proton.me>
1 parent bc5f3e0 commit c3815aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/pin-init/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ the `kernel` crate. The [`sync`] module is a good starting point.
222222

223223
[`sync`]: https://rust.docs.kernel.org/kernel/sync/index.html
224224
[pinning]: https://doc.rust-lang.org/std/pin/index.html
225-
[structurally pinned fields]: https://doc.rust-lang.org/std/pin/index.html#pinning-is-structural-for-field
225+
[structurally pinned fields]: https://doc.rust-lang.org/std/pin/index.html#projections-and-structural-pinning
226226
[stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html
227227
[`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
228228
[`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html

rust/pin-init/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
//! [`sync`]: https://rust.docs.kernel.org/kernel/sync/index.html
248248
//! [pinning]: https://doc.rust-lang.org/std/pin/index.html
249249
//! [structurally pinned fields]:
250-
//! https://doc.rust-lang.org/std/pin/index.html#pinning-is-structural-for-field
250+
//! https://doc.rust-lang.org/std/pin/index.html#projections-and-structural-pinning
251251
//! [stack]: crate::stack_pin_init
252252
#![cfg_attr(
253253
kernel,

0 commit comments

Comments
 (0)