diff options
author | Benno Lossin <benno.lossin@proton.me> | 2024-07-30 18:23:04 +0000 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-08-18 23:10:53 +0200 |
commit | 7adcdd572248591c3932e27d98b4a086662d5cbe (patch) | |
tree | 10d251f98c7c4514729bcb0e796c6addcafee712 /scripts | |
parent | 6c2d0ad53b8ff25cb1a12570191576d834e9108d (diff) | |
download | linux-7adcdd572248591c3932e27d98b4a086662d5cbe.tar.gz linux-7adcdd572248591c3932e27d98b4a086662d5cbe.tar.bz2 linux-7adcdd572248591c3932e27d98b4a086662d5cbe.zip |
rust: types: improve `ForeignOwnable` documentation
There are no guarantees for the pointer returned by `into_foreign`.
This is simply because there is no safety documentation stating any
guarantees. Therefore dereferencing and all other operations for that
pointer are not allowed in a general context (i.e. when the concrete
type implementing the trait is not known).
This might be confusing, therefore add normal documentation to state
that there are no guarantees given for the pointer.
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240730182251.1466684-1-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions