We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SyncView::{as_pin => as_pin_ref}
1 parent 8954863 commit ce94e80Copy full SHA for ce94e80
1 file changed
library/core/src/sync/sync_view.rs
@@ -188,7 +188,7 @@ impl<T: ?Sized + Sync> SyncView<T> {
188
#[rustc_const_unstable(feature = "exclusive_wrapper", issue = "98407")]
189
#[must_use]
190
#[inline]
191
- pub const fn as_pin(self: Pin<&Self>) -> Pin<&T> {
+ pub const fn as_pin_ref(self: Pin<&Self>) -> Pin<&T> {
192
// SAFETY: `SyncView` can only produce `&T` if itself is unpinned
193
// `Pin::map_unchecked` is not const, so we do this conversion manually
194
unsafe { Pin::new_unchecked(&self.get_ref().inner) }
0 commit comments