Skip to content

Commit 0031b21

Browse files
committed
Auto merge of #122132 - nnethercote:diag-renaming3, r=nnethercote
Diagnostic renaming 3 A sequel to rust-lang/rust#121780. r? `@davidtwco`
2 parents dd9407d + 915646f commit 0031b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/errors.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use rustc_errors::{Diag, DiagCtxt, EmissionGuarantee, IntoDiagnostic, Level};
1+
use rustc_errors::{Diag, DiagCtxt, Diagnostic, EmissionGuarantee, Level};
22
use rustc_macros::{Diagnostic, Subdiagnostic};
33
use rustc_span::Span;
44

@@ -89,8 +89,8 @@ pub(crate) struct TargetFeatureDisableOrEnable<'a> {
8989
#[help(codegen_gcc_missing_features)]
9090
pub(crate) struct MissingFeatures;
9191

92-
impl<G: EmissionGuarantee> IntoDiagnostic<'_, G> for TargetFeatureDisableOrEnable<'_> {
93-
fn into_diagnostic(self, dcx: &'_ DiagCtxt, level: Level) -> Diag<'_, G> {
92+
impl<G: EmissionGuarantee> Diagnostic<'_, G> for TargetFeatureDisableOrEnable<'_> {
93+
fn into_diag(self, dcx: &'_ DiagCtxt, level: Level) -> Diag<'_, G> {
9494
let mut diag = Diag::new(dcx, level, fluent::codegen_gcc_target_feature_disable_or_enable);
9595
if let Some(span) = self.span {
9696
diag.span(span);

0 commit comments

Comments
 (0)