diff options
| author | bors <bors@rust-lang.org> | 2023-11-06 18:46:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-06 18:46:04 +0000 |
| commit | fb61292105708ea45cf5a4ed596dbbd54c8ed429 (patch) | |
| tree | c9c32c9269eb6f166211bed9ffdc54939f960711 /compiler/rustc_parse/src/errors.rs | |
| parent | aea82b268a7680b736be00e837eb8e32bc42a2da (diff) | |
| parent | 4b7aacaa4f5b2a5ceb05584f18b1a20f2572efa0 (diff) | |
| download | rust-fb61292105708ea45cf5a4ed596dbbd54c8ed429.tar.gz rust-fb61292105708ea45cf5a4ed596dbbd54c8ed429.zip | |
Auto merge of #117292 - estebank:issue-80446, r=davidtwco
Detect misparsed binop caused by missing semi When encountering ```rust foo() *bar = baz; ``` We currently emit potentially two errors, one for the return type of `foo` not being multiplicative by the type of `bar`, and another for `foo() * bar` not being assignable. We now check for this case and suggest adding a semicolon in the right place and emit only a single error. Fix #80446.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
