mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
4f4abf4e06
Warn about assignments where left-hand side place expression is the same
as right-hand side value expression. For example, warn about assignment in:
```rust
pub struct Event {
id: usize,
x: i32,
y: i32,
}
pub fn copy_position(a: &mut Event, b: &Event) {
a.x = b.x;
a.y = a.y;
}
```