mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-31 21:16:44 +00:00
Fix ICE when forgetting to `Box` a parameter to a `Self::func` call Closes #90213 . Assuming we can get the `DefId` of the receiver causes an ICE if the receiver is `Self`. We can just avoid doing this though.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.