diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-12 16:48:45 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-13 09:33:35 +1100 |
| commit | 9f2aa09765d49a8f5645352f73008f594dca61b4 (patch) | |
| tree | 80023012e00196b6c4d5f5ded1664c1d6676ac2f /compiler/rustc_errors/src/diagnostic.rs | |
| parent | 173dbc9e13247290d2f69aed83e6e662e5a91136 (diff) | |
| download | rust-9f2aa09765d49a8f5645352f73008f594dca61b4.tar.gz rust-9f2aa09765d49a8f5645352f73008f594dca61b4.zip | |
Remove `good_path_delayed_bug`.
It's only has a single remaining purpose: to ensure that a diagnostic is printed when `trimmed_def_paths` is used. It's an annoying mechanism: weak, with odd semantics, badly named, and gets in the way of other changes. This commit replaces it with a simpler `must_produce_diag` mechanism, getting rid of a diagnostic `Level` along the way.
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 2deb18484ec..b14a12175c7 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -237,8 +237,7 @@ impl Diagnostic { match self.level { Level::Bug | Level::Fatal | Level::Error | Level::DelayedBug => true, - Level::GoodPathDelayedBug - | Level::ForceWarning(_) + Level::ForceWarning(_) | Level::Warning | Level::Note | Level::OnceNote |
