Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Sep 3, 2019
1 parent 8786671 commit c44ffaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustc_typeck/impl_wf_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ fn enforce_impl_params_are_constrained(
if impl_self_ty.references_error() {
// Don't complain about unconstrained type params when self ty isn't known due to errors.
// (#36836)
tcx.sess.delay_span_bug(tcx.def_span(impl_def_id), &format(
"potentially unconstrained type parameters weren't evaluated on `{:?}`",
impl_self_ty,
));
tcx.sess.delay_span_bug(
tcx.def_span(impl_def_id),
"potentially unconstrained type parameters weren't evaluated",
);
return;
}
let impl_generics = tcx.generics_of(impl_def_id);
Expand Down

0 comments on commit c44ffaf

Please sign in to comment.