Skip to content

Commit 556062e

Browse files
Delay a good path bug for TypeErrCtxt
1 parent 31656e7 commit 556062e

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_infer/src/infer/error_reporting

1 file changed

+1
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ use rustc_middle::ty::{
7474
self, error::TypeError, List, Region, Ty, TyCtxt, TypeFoldable, TypeSuperVisitable,
7575
TypeVisitable, TypeVisitableExt,
7676
};
77-
use rustc_span::DUMMY_SP;
7877
use rustc_span::{sym, symbol::kw, BytePos, DesugaringKind, Pos, Span};
7978
use rustc_target::spec::abi;
8079
use std::ops::{ControlFlow, Deref};
@@ -138,7 +137,7 @@ impl Drop for TypeErrCtxt<'_, '_> {
138137
self.infcx
139138
.tcx
140139
.sess
141-
.delay_span_bug(DUMMY_SP, "used a `TypeErrCtxt` without failing compilation");
140+
.delay_good_path_bug("used a `TypeErrCtxt` without raising an error or lint");
142141
}
143142
}
144143
}

0 commit comments

Comments
 (0)