about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-07-11 18:46:24 +0100
committerDavid Wood <david.wood@huawei.com>2022-07-15 16:13:49 +0100
commit81cf2294b4d912ec410696c5e2dec7659243d191 (patch)
tree6859d706f4be0d1bd9963d02681f12900a747b37 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent88c11c5bfffea445c6cc49b62da17f172eb8f055 (diff)
downloadrust-81cf2294b4d912ec410696c5e2dec7659243d191.tar.gz
rust-81cf2294b4d912ec410696c5e2dec7659243d191.zip
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>
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions