mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 19:57:02 +00:00

deref patterns: implement implicit deref patterns This implements implicit deref patterns (per https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Implicit-deref-patterns) and adds tests and an unstable book chapter. Best reviewed commit-by-commit. Overall there's a lot of additions, but a lot of that is tests, documentation, and simple(?) refactoring. Tracking issue: #87121 r? ``@Nadrieril``
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.