about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/graph.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-10-27 17:19:32 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-10-27 17:19:32 +0000
commit231f93524d19cdcd241f314f812479c429a5c5ca (patch)
tree37452dde3f61cf200d32b4e42b53df415437af03 /compiler/rustc_mir_transform/src/coverage/graph.rs
parent6f65201659e54ccd40e3285de3e1b7c989af5cc0 (diff)
downloadrust-231f93524d19cdcd241f314f812479c429a5c5ca.tar.gz
rust-231f93524d19cdcd241f314f812479c429a5c5ca.zip
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 multiplyiable 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.

Fix #80446.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions