File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2313,6 +2313,8 @@ rustc_queries! {
2313
2313
key: ( LocalDefId , DefId )
2314
2314
) -> Result <( ) , ErrorGuaranteed > {
2315
2315
desc { |tcx| "checking assoc item `{}` is compatible with trait definition" , tcx. def_path_str( key. 0 ) }
2316
+ cache_on_disk_if { true }
2317
+ ensure_forwards_result_if_red
2316
2318
}
2317
2319
2318
2320
query deduced_param_attrs( def_id: DefId ) -> & ' tcx [ ty:: DeducedParamAttrs ] {
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ fn resolve_associated_item<'tcx>(
217
217
if trait_item_id != leaf_def. item . def_id
218
218
&& let Some ( leaf_def_item) = leaf_def. item . def_id . as_local ( )
219
219
{
220
- tcx. compare_impl_item ( ( leaf_def_item, trait_item_id) ) ?;
220
+ tcx. ensure ( ) . compare_impl_item ( ( leaf_def_item, trait_item_id) ) ?;
221
221
}
222
222
223
223
Some ( ty:: Instance :: new ( leaf_def. item . def_id , args) )
You can’t perform that action at this time.
0 commit comments