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_error_messages | |
| 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_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs index e174cba7813..a1abe8fd4f3 100644 --- a/compiler/rustc_error_messages/src/lib.rs +++ b/compiler/rustc_error_messages/src/lib.rs @@ -376,7 +376,7 @@ impl From<Cow<'static, str>> for DiagnosticMessage { } } -/// A workaround for good_path_delayed_bug ICEs when formatting types in disabled lints. +/// A workaround for must_produce_diag ICEs when formatting types in disabled lints. /// /// Delays formatting until `.into(): DiagnosticMessage` is used. pub struct DelayDm<F>(pub F); |
