mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
7913288d66
implement `StructuralPartialEq` for `MaybeDangling` This fixes -- a stable-to-stable regression where constants of type `ManuallyDrop<T>` would not be allowed to be used as a pattern due to `MaybeDangling<T>` in `ManuallyDrop<T>` not implementing `StructuralPartialEq`. Fixes https://github.com/rust-lang/rust/issues/154890 I'm sorry, @theemathas, I forgot to address your [comment](https://github.com/rust-lang/rust/pull/149614#discussion_r2587340079) 😭