mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-23 00:03:33 -04:00
3f413d2abb
Currently, the only API for creating errors from a diagnostic derive
will emit it immediately. This makes it difficult to add subdiagnostics
to diagnostics from the derive, so add `create_{err,warning}` functions
that return the diagnostic without emitting it.
Signed-off-by: David Wood <david.wood@huawei.com>