]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/pin.rs
Fix two false positive lints
[rust.git] / library / core / src / pin.rs
index 34fc874ada09b7171017fcf43f9ec3b01462ab31..09fc6df5429759ce336bd08b7670b710d68dfce3 100644 (file)
@@ -705,6 +705,7 @@ pub unsafe fn map_unchecked<U, F>(self, func: F) -> Pin<&'a U>
     ///
     /// ["pinning projections"]: self#projections-and-structural-pinning
     #[inline(always)]
+    #[must_use]
     #[rustc_const_unstable(feature = "const_pin", issue = "76654")]
     #[stable(feature = "pin", since = "1.33.0")]
     pub const fn get_ref(self) -> &'a T {