diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-03 14:27:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-03 19:40:43 +1100 |
| commit | 096b844a2b38436d2e7a4eb4419a6be3eff7da67 (patch) | |
| tree | 62a52606c5e92d5d86ac14bc93656d5cf2625167 /compiler/rustc_errors/src/diagnostic_builder.rs | |
| parent | 5fe5d5da4e10eccdaf3d46aee5fc21701c32f206 (diff) | |
| download | rust-096b844a2b38436d2e7a4eb4419a6be3eff7da67.tar.gz rust-096b844a2b38436d2e7a4eb4419a6be3eff7da67.zip | |
Remove forward for `downgrade_to_delayed_bug`.
It's not used, and doesn't quite fit the general pattern. Also, `Diagnostic::downgrade_to_delayed_bug` doesn't need to return `&mut Self` for the same reason.
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_builder.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index d8838bbdbab..d3b11552aa1 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -357,11 +357,6 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> { } forward!( - #[track_caller] - pub fn downgrade_to_delayed_bug(&mut self,) -> &mut Self - ); - - forward!( /// Appends a labeled span to the diagnostic. /// /// Labels are used to convey additional context for the diagnostic's primary span. They will |
