mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
review comment
This commit is contained in:
parent
87866714ee
commit
c44ffafab9
@ -102,10 +102,10 @@ fn enforce_impl_params_are_constrained(
|
|||||||
if impl_self_ty.references_error() {
|
if impl_self_ty.references_error() {
|
||||||
// Don't complain about unconstrained type params when self ty isn't known due to errors.
|
// Don't complain about unconstrained type params when self ty isn't known due to errors.
|
||||||
// (#36836)
|
// (#36836)
|
||||||
tcx.sess.delay_span_bug(tcx.def_span(impl_def_id), &format(
|
tcx.sess.delay_span_bug(
|
||||||
"potentially unconstrained type parameters weren't evaluated on `{:?}`",
|
tcx.def_span(impl_def_id),
|
||||||
impl_self_ty,
|
"potentially unconstrained type parameters weren't evaluated",
|
||||||
));
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let impl_generics = tcx.generics_of(impl_def_id);
|
let impl_generics = tcx.generics_of(impl_def_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user