We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pin!
1 parent 8279176 commit 6ca8cbbCopy full SHA for 6ca8cbb
library/core/src/pin.rs
@@ -2014,5 +2014,5 @@ pub macro pin($value:expr $(,)?) {
2014
//
2015
// See https://doc.rust-lang.org/1.58.1/reference/destructors.html#temporary-lifetime-extension
2016
// for more info.
2017
- $crate::pin::Pin::<&mut _> { __pointer: &mut { $value } }
+ $crate::pin::Pin::<&mut _> { __pointer: &mut $crate::convert::identity($value) }
2018
}
0 commit comments