diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 14:12:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-19 09:19:25 +1100 |
| commit | 472ea06999ce6ecfb78554a74b14dec9dae97f38 (patch) | |
| tree | ae7fb0fd5558fdbb7f50984c3fc55ea0e4ed88b2 /tests/debuginfo/enum-thinlto.rs | |
| parent | 5ea71c1150a7ef7a35be240c0e0d40525a94afe0 (diff) | |
| download | rust-472ea06999ce6ecfb78554a74b14dec9dae97f38.tar.gz rust-472ea06999ce6ecfb78554a74b14dec9dae97f38.zip | |
Add `level` arg to `into_diagnostic`.
And make all hand-written `IntoDiagnostic` impls generic, by using `DiagnosticBuilder::new(dcx, level, ...)` instead of e.g. `dcx.struct_err(...)`. This means the `create_*` functions are the source of the error level. This change will let us remove `struct_diagnostic`. Note: `#[rustc_lint_diagnostics]` is added to `DiagnosticBuilder::new`, it's necessary to pass diagnostics tests now that it's used in `into_diagnostic` functions.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
