1
Fork 0

Auto merge of #114908 - cjgillot:no-let-under, r=compiler-errors

Do not compute unneeded query results.

r? `@ghost`
This commit is contained in:
bors 2023-08-30 04:29:17 +00:00
commit 82c2eb48ee
2 changed files with 3 additions and 4 deletions

View file

@ -823,7 +823,7 @@ fn check_impl_items_against_trait<'tcx>(
};
match ty_impl_item.kind {
ty::AssocKind::Const => {
let _ = tcx.compare_impl_const((
tcx.ensure().compare_impl_const((
impl_item.expect_local(),
ty_impl_item.trait_item_def_id.unwrap(),
));