1
Fork 0

Don't reinvoke impl_trait_ref query after it was already invoked

This commit is contained in:
Oli Scherer 2024-02-09 20:33:23 +00:00
parent 97b4b7f72b
commit 614ff0fae9
2 changed files with 81 additions and 84 deletions

View file

@ -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));
}