mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
691ab1b396
prevent deref coercions in `pin!` Mitigates rust-lang/rust#153438 using a (hopefully temporary!) typed macro idiom to ensure that when `pin!` produces a `Pin<&mut T>`, its argument is of type `T`. See https://github.com/rust-lang/rust/issues/153438#issuecomment-4006727101 for my ideas on how this could be changed in the future.