rust/compiler/rustc_hir_analysis
Matthias Krüger d6940fb43d
Rollup merge of #124624 - WaffleLapkin:old_unit, r=fmease
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?
2024-05-02 19:42:50 +02:00
..
2024-03-08 12:34:05 +03:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.