mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 09:28:18 +00:00
Add diagnostics for specific cases for const/type mismatch err For now, this adds at least more information so better diagnostics can be emitted for const mismatch errors. I'm not sure what exactly we want to emit, so I've left notes there temporarily, also to see if this is the right approach r? ```@lcnr``` cc: ```@estebank```
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.