You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Kyuuhachi Assigns to a temporary that is then dropped [1]
$ cargo clippy --fix --allow-dirty --allow-no-vcs
Checking rust_test v0.1.0 (./tests/rust)
warning: failed to automatically apply fixes suggested by rustc to crate `rust_test`
after fixes were automatically applied the compiler reported errors within these files:
* src/main.rs
This likely indicates a bug in either rustc or cargo itself,
and we would appreciate a bug report! You're likely to see
a number of compiler warnings after this message which cargo
attempted to fix but failed. If you could open an issue at
https://github.com/rust-lang/rust-clippy/issues
quoting the full output of this command we'd be very appreciative!
Note that you may be able to make some more progress in the near-term
fixing code with the `--broken-code` flag
The following errors were reported:
error[E0070]: invalid left-hand side of assignment
--> src/main.rs:2:7
|
2 | 4 = 5;
| - ^
| |
| cannot assign to this expression
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0070`.
Original diagnostics will follow.
Summary
This corner case triggers an incorrect fix suggestion, leading to a compilation error.
Reproducer
main.rs
Version
The text was updated successfully, but these errors were encountered: