1
Fork 0

Don't reinvoke trait_header query twice

This commit is contained in:
Oli Scherer 2024-02-13 09:38:13 +00:00
parent 55bbb054c9
commit 40b3cb0eb1
2 changed files with 11 additions and 11 deletions

View file

@ -142,7 +142,7 @@ fn coherent_trait(tcx: TyCtxt<'_>, def_id: DefId) -> Result<(), ErrorGuaranteed>
res = res.and(unsafety::check_item(tcx, impl_def_id, trait_header, trait_def));
res = res.and(tcx.ensure().orphan_check_impl(impl_def_id));
res = res.and(builtin::check_trait(tcx, def_id, impl_def_id));
res = res.and(builtin::check_trait(tcx, def_id, impl_def_id, trait_header));
}
res