]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #67538 - varkor:lhs-assign-diagnostics, r=Centril
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 23 Dec 2019 14:16:29 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Dec 2019 14:16:29 +0000 (15:16 +0100)
Improve diagnostics for invalid assignment

- Improve wording and span information for invalid assignment diagnostics.
- Link to https://github.com/rust-lang/rfcs/issues/372 when it appears the user is trying a destructuring assignment.
- Make the equality constraint in `where` clauses error consistent with the invalid assignment error.

1  2 
src/librustc/hir/mod.rs
src/librustc_typeck/check/demand.rs

Simple merge
Simple merge