mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
d6940fb43d
Use `tcx.types.unit` instead of `Ty::new_unit(tcx)` I don't think there is any need for the function, given that we can just access the `.types`, similarly to all other primitives?
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.