rust/compiler/rustc_typeck
Michael Goulet e0409200d9
Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank
Don't suggest adding `let` in certain `if` conditions

Avoid being too eager to suggest `let` in an `if` condition with an `=`, namely when the LHS of the `=` isn't even valid as a pattern (to a first degree approximation).

This heustic I came up with kinda sucks. Let me know if it needs to be refined.
2022-06-08 13:32:20 -07:00
..
src Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank 2022-06-08 13:32:20 -07:00
Cargo.toml Initial fixes on top of type interner commit 2022-05-28 11:38:22 -07:00
README.md

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