Don't reinvoke impl_trait_ref
query after it was already invoked
This commit is contained in:
parent
97b4b7f72b
commit
614ff0fae9
2 changed files with 81 additions and 84 deletions
|
@ -131,7 +131,7 @@ fn coherent_trait(tcx: TyCtxt<'_>, def_id: DefId) -> Result<(), ErrorGuaranteed>
|
|||
res = res.and(check_impl(tcx, impl_def_id, trait_ref));
|
||||
res = res.and(check_object_overlap(tcx, impl_def_id, trait_ref));
|
||||
|
||||
res = res.and(unsafety::check_item(tcx, impl_def_id));
|
||||
res = res.and(unsafety::check_item(tcx, impl_def_id, trait_ref));
|
||||
res = res.and(tcx.ensure().orphan_check_impl(impl_def_id));
|
||||
res = res.and(builtin::check_trait(tcx, def_id, impl_def_id));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue