Skip to content

Commit 2373333

Browse files
committed
Use IntoDiagnostic default.
`IntoDiagnostic` defaults to `G = ErrorGuaranteed`. Take advantage of this in one place that currently doesn't.
1 parent 194f150 commit 2373333

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_const_eval/src/const_eval

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/const_eval/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_middle::mir::AssertKind;
66
use rustc_middle::query::TyCtxtAt;
77
use rustc_middle::ty::TyCtxt;
88
use rustc_middle::ty::{layout::LayoutError, ConstInt};
9-
use rustc_span::{ErrorGuaranteed, Span, Symbol, DUMMY_SP};
9+
use rustc_span::{Span, Symbol, DUMMY_SP};
1010

1111
use super::{CompileTimeInterpreter, InterpCx};
1212
use crate::errors::{self, FrameNote, ReportErrorExt};
@@ -133,7 +133,7 @@ pub(super) fn report<'tcx, C, F, E>(
133133
where
134134
C: FnOnce() -> (Span, Vec<FrameNote>),
135135
F: FnOnce(Span, Vec<FrameNote>) -> E,
136-
E: IntoDiagnostic<'tcx, ErrorGuaranteed>,
136+
E: IntoDiagnostic<'tcx>,
137137
{
138138
// Special handling for certain errors
139139
match error {

0 commit comments

Comments
 (0)