rust/compiler/rustc_macros/src/diagnostics
David Wood 81cf2294b4 macros: support adding warnings to diags
Both diagnostic and subdiagnostic derives were missing the ability to
add warnings to diagnostics - this is made more difficult by the `warn`
attribute already existing, so this name being unavailable for the
derives to use. `#[warn_]` is used instead, which requires
special-casing so that `{span_,}warn` is called instead of
`{span_,}warn_`.

Signed-off-by: David Wood <david.wood@huawei.com>
2022-07-15 16:13:49 +01:00
..
diagnostic_builder.rs macros: support adding warnings to diags 2022-07-15 16:13:49 +01:00
diagnostic.rs macros: support adding warnings to diags 2022-07-15 16:13:49 +01:00
error.rs macros: add diagnostic derive for lints 2022-07-05 16:00:21 +01:00
fluent.rs macros: support adding warnings to diags 2022-07-15 16:13:49 +01:00
mod.rs macros: add diagnostic derive for lints 2022-07-05 16:00:21 +01:00
subdiagnostic.rs macros: support adding warnings to diags 2022-07-15 16:13:49 +01:00
utils.rs macros: support MultiSpan in diag derives 2022-07-15 16:13:49 +01:00