mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +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.