rust/compiler/rustc_typeck
Camille GILLOT 056951d628 Take &mut Diagnostic in emit_diagnostic.
Taking a Diagnostic by move would break the usual pattern
`diag.label(..).emit()`.
2022-03-20 20:36:08 +01:00
..

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