Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2886ca4

Browse files
committed
imrpove type_op failure ICE
1 parent 32d24f9 commit 2886ca4

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_trait_selection/src/traits/query/type_op

1 file changed

+3
-3
lines changed

compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ where
100100
} else if let Err(guar) = infcx.tcx.check_potentially_region_dependent_goals(root_def_id) {
101101
Err(guar)
102102
} else {
103-
Err(infcx
104-
.dcx()
105-
.delayed_bug(format!("errors selecting obligation during MIR typeck: {errors:?}")))
103+
Err(infcx.dcx().delayed_bug(format!(
104+
"errors selecting obligation during MIR typeck: {name} {root_def_id:?} {errors:?}"
105+
)))
106106
}
107107
})?;
108108

0 commit comments

Comments
 (0)