mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
rust: pin-init: Update Changelog and Readme
Add Changelog entry for the `Wrapper` trait and document the
`unsafe-pinned` feature in the Readme.
Signed-off-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Link: 986555f564
[ Fixed commit authorship. - Benno ]
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
This commit is contained in:
committed by
Benno Lossin
parent
b862aac8fd
commit
bc5f3e0e01
@@ -40,6 +40,12 @@ However, using the crate on stable compilers is possible by disabling `alloc`. I
|
||||
will require the `std` feature, because stable compilers have neither `Box` nor `Arc` in no-std
|
||||
mode.
|
||||
|
||||
### Nightly needed for `unsafe-pinned` feature
|
||||
|
||||
This feature enables the `Wrapper` implementation on the unstable `core::pin::UnsafePinned` type.
|
||||
This requires the [`unsafe_pinned` unstable feature](https://github.com/rust-lang/rust/issues/125735)
|
||||
and therefore a nightly compiler. Note that this feature is not enabled by default.
|
||||
|
||||
## Overview
|
||||
|
||||
To initialize a `struct` with an in-place constructor you will need two things:
|
||||
|
||||
@@ -32,6 +32,12 @@
|
||||
//! will require the `std` feature, because stable compilers have neither `Box` nor `Arc` in no-std
|
||||
//! mode.
|
||||
//!
|
||||
//! ## Nightly needed for `unsafe-pinned` feature
|
||||
//!
|
||||
//! This feature enables the `Wrapper` implementation on the unstable `core::pin::UnsafePinned` type.
|
||||
//! This requires the [`unsafe_pinned` unstable feature](https://github.com/rust-lang/rust/issues/125735)
|
||||
//! and therefore a nightly compiler. Note that this feature is not enabled by default.
|
||||
//!
|
||||
//! # Overview
|
||||
//!
|
||||
//! To initialize a `struct` with an in-place constructor you will need two things:
|
||||
|
||||
Reference in New Issue
Block a user