Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9909cb9

Browse files
committed
Make the ICEs in the mir typechecker have more spans helpful
1 parent 6773e7e commit 9909cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_const_eval/src/transform/validate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct TypeChecker<'a, 'tcx> {
8181
}
8282

8383
impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
84+
#[track_caller]
8485
fn fail(&self, location: Location, msg: impl AsRef<str>) {
8586
let span = self.body.source_info(location).span;
8687
// We use `delay_span_bug` as we might see broken MIR when other errors have already

0 commit comments

Comments
 (0)