mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-10 06:09:21 +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>