mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-06 10:42:38 +00:00
Much of the compiler calls functions on Align projected from AbiAlign. AbiAlign impls Deref to its inner Align, so we can simplify these away. Also, it will minimize disruption when AbiAlign is removed. For now, preserve usages that might resolve to PartialOrd or PartialEq, as those have odd inference.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.