diff options
| author | bors <bors@rust-lang.org> | 2023-08-30 04:29:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-30 04:29:17 +0000 |
| commit | 82c2eb48ee275638b437fa2a044e9d44de0ca0c6 (patch) | |
| tree | e0235901ba1c0df333e5a19a0fecfc99a592a9bc /compiler/rustc_hir_analysis/src/check | |
| parent | d64c84562f634efde5eb5506942b6af293d8358d (diff) | |
| parent | 023b367037252e4aa1ceb3d394fa37e667fd3185 (diff) | |
| download | rust-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/check')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/check.rs | 2 |
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(), )); |
