about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-30 04:29:17 +0000
committerbors <bors@rust-lang.org>2023-08-30 04:29:17 +0000
commit82c2eb48ee275638b437fa2a044e9d44de0ca0c6 (patch)
treee0235901ba1c0df333e5a19a0fecfc99a592a9bc /compiler/rustc_hir_analysis/src
parentd64c84562f634efde5eb5506942b6af293d8358d (diff)
parent023b367037252e4aa1ceb3d394fa37e667fd3185 (diff)
downloadrust-82c2eb48ee275638b437fa2a044e9d44de0ca0c6.tar.gz
rust-82c2eb48ee275638b437fa2a044e9d44de0ca0c6.zip
Auto merge of #114908 - cjgillot:no-let-under, r=compiler-errors
Do not compute unneeded query results.

r? `@ghost`
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/check/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs
index 46e8cf81bc1..c0cf1ea34cf 100644
--- a/compiler/rustc_hir_analysis/src/check/check.rs
+++ b/compiler/rustc_hir_analysis/src/check/check.rs
@@ -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(),
                 ));