mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
12f8364d4d
This annotates the `Arc` type with the diagnostic attribute `#[diagnostic::on_move]`. Now when a moved `Arc` is borrowed, a suggestion to clone it is made, with a label explaining why.