about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-06 18:46:04 +0000
committerbors <bors@rust-lang.org>2023-11-06 18:46:04 +0000
commitfb61292105708ea45cf5a4ed596dbbd54c8ed429 (patch)
treec9c32c9269eb6f166211bed9ffdc54939f960711 /compiler/rustc_parse/src/errors.rs
parentaea82b268a7680b736be00e837eb8e32bc42a2da (diff)
parent4b7aacaa4f5b2a5ceb05584f18b1a20f2572efa0 (diff)
downloadrust-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