mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-06 12:16:22 +00:00

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 more information about how rustc works, see the rustc dev guide.