mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 09:06:53 +00:00
Use `tcx.require_lang_item` instead of unwrapping lang items I clearly remember esteban telling me that there is `require_lang_item` but he was from a phone atm and I couldn't find it, so I didn't use it. Stumbled on it today, so here we are :)
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.