You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 33c2a6e
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #151365 - RalfJung:unsafe-unpin-opsem, r=BoxyUwU
UnsafePinned: implement opsem effects of UnsafeUnpin
This implements the next step for #125735: actually making `UnsafePinned` have special opsem effects by suppressing the `noalias` *even if* the type is wrapped in an `Unpin` wrapper.
For backwards compatibility we also still keep the `Unpin` hack, i.e. a type must be both `Unpin` and `UnsafeUnpin` to get `noalias`.
/// Checks whether values of this type `T` implement the `Unpin` trait.
1198
+
///
1199
+
/// Note that this is a safe trait, so it cannot be very semantically meaningful.
1200
+
/// However, as a hack to mitigate <https://github.com/rust-lang/rust/issues/63818> until a
1201
+
/// proper solution is implemented, we do give special semantics to the `Unpin` trait.
Copy file name to clipboardExpand all lines: library/core/src/marker.rs
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -927,14 +927,20 @@ marker_impls! {
927
927
/// This is part of [RFC 3467](https://rust-lang.github.io/rfcs/3467-unsafe-pinned.html), and is
928
928
/// tracked by [#125735](https://github.com/rust-lang/rust/issues/125735).
0 commit comments