mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +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.