@@ -665,7 +665,6 @@ impl IntoDiagnostic<'_> for UndefinedBehaviorInfoExt<'_> {
665
665
pub struct ValidationErrorInfoExt < ' tcx > ( ValidationErrorInfo < ' tcx > ) ;
666
666
667
667
impl IntoDiagnostic < ' _ > for ValidationErrorInfoExt < ' _ > {
668
- // TODO: This has to be changed to EmissionGuarantee
669
668
fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
670
669
use crate :: fluent_generated:: * ;
671
670
use crate :: interpret:: ValidationErrorKind :: * ;
@@ -1236,7 +1235,6 @@ impl ReportErrorExt for UnsupportedOpInfo {
1236
1235
1237
1236
pub struct UnsupportedExt ( UnsupportedOpInfo ) ;
1238
1237
1239
- // TODO: change to EmissionGuarantee
1240
1238
impl IntoDiagnostic < ' _ > for UnsupportedExt {
1241
1239
fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
1242
1240
use crate :: fluent_generated:: * ;
@@ -1291,7 +1289,6 @@ impl IntoDiagnostic<'_> for UnsupportedExt {
1291
1289
1292
1290
pub struct InterpErrorExt < ' a > ( pub InterpError < ' a > ) ;
1293
1291
1294
- // TODO: EmissionGuarantee
1295
1292
impl IntoDiagnostic < ' _ > for InterpErrorExt < ' _ > {
1296
1293
fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
1297
1294
match self . 0 {
@@ -1308,7 +1305,6 @@ impl IntoDiagnostic<'_> for InterpErrorExt<'_> {
1308
1305
1309
1306
pub struct MachineStopExt ( Box < dyn MachineStopType > ) ;
1310
1307
1311
- // TODO: EmissionGuarantee
1312
1308
impl IntoDiagnostic < ' _ > for MachineStopExt {
1313
1309
fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
1314
1310
let mut builder = handler. struct_diagnostic ( self . 0 . diagnostic_message ( ) . clone ( ) ) ;
@@ -1349,7 +1345,6 @@ impl<'tcx> ReportErrorExt for InterpError<'tcx> {
1349
1345
1350
1346
pub struct InvalidProgramInfoExt < ' a > ( InvalidProgramInfo < ' a > ) ;
1351
1347
1352
- // TODO: EmissionGuarantee
1353
1348
impl IntoDiagnostic < ' _ > for InvalidProgramInfoExt < ' _ > {
1354
1349
fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
1355
1350
use crate :: fluent_generated:: * ;
0 commit comments