We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8786671 commit c44ffafCopy full SHA for c44ffaf
src/librustc_typeck/impl_wf_check.rs
@@ -102,10 +102,10 @@ fn enforce_impl_params_are_constrained(
102
if impl_self_ty.references_error() {
103
// Don't complain about unconstrained type params when self ty isn't known due to errors.
104
// (#36836)
105
- tcx.sess.delay_span_bug(tcx.def_span(impl_def_id), &format(
106
- "potentially unconstrained type parameters weren't evaluated on `{:?}`",
107
- impl_self_ty,
108
- ));
+ tcx.sess.delay_span_bug(
+ tcx.def_span(impl_def_id),
+ "potentially unconstrained type parameters weren't evaluated",
+ );
109
return;
110
}
111
let impl_generics = tcx.generics_of(impl_def_id);
0 commit comments