Do not compute unneeded results.
This commit is contained in:
parent
3e50a641da
commit
023b367037
2 changed files with 3 additions and 4 deletions
|
@ -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(),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue