Skip to content

Commit c44ffaf

Browse files
committed
review comment
1 parent 8786671 commit c44ffaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_typeck/impl_wf_check.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ fn enforce_impl_params_are_constrained(
102102
if impl_self_ty.references_error() {
103103
// Don't complain about unconstrained type params when self ty isn't known due to errors.
104104
// (#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-
));
105+
tcx.sess.delay_span_bug(
106+
tcx.def_span(impl_def_id),
107+
"potentially unconstrained type parameters weren't evaluated",
108+
);
109109
return;
110110
}
111111
let impl_generics = tcx.generics_of(impl_def_id);

0 commit comments

Comments
 (0)