mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 03:38:27 +00:00
`SetOnce` trait was introduced in the subdiagnostic derive to simplify the code a little bit, re-use it in the diagnostic derive too. Signed-off-by: David Wood <david.wood@huawei.com>