mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
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.