@@ -612,6 +612,7 @@ rustc_queries! {
612
612
613
613
query check_coroutine_obligations( key: LocalDefId ) -> Result <( ) , ErrorGuaranteed > {
614
614
desc { |tcx| "verify auto trait bounds for coroutine interior type `{}`" , tcx. def_path_str( key) }
615
+ return_result_from_ensure_ok
615
616
}
616
617
617
618
/// MIR after our optimization passes have run. This is MIR that is ready
@@ -1033,13 +1034,12 @@ rustc_queries! {
1033
1034
/// Unsafety-check this `LocalDefId`.
1034
1035
query check_unsafety( key: LocalDefId ) {
1035
1036
desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key) }
1036
- cache_on_disk_if { true }
1037
1037
}
1038
1038
1039
1039
/// Checks well-formedness of tail calls (`become f()`).
1040
1040
query check_tail_calls( key: LocalDefId ) -> Result <( ) , rustc_errors:: ErrorGuaranteed > {
1041
1041
desc { |tcx| "tail-call-checking `{}`" , tcx. def_path_str( key) }
1042
- cache_on_disk_if { true }
1042
+ return_result_from_ensure_ok
1043
1043
}
1044
1044
1045
1045
/// Returns the types assumed to be well formed while "inside" of the given item.
@@ -1308,7 +1308,7 @@ rustc_queries! {
1308
1308
1309
1309
query check_match( key: LocalDefId ) -> Result <( ) , rustc_errors:: ErrorGuaranteed > {
1310
1310
desc { |tcx| "match-checking `{}`" , tcx. def_path_str( key) }
1311
- cache_on_disk_if { true }
1311
+ return_result_from_ensure_ok
1312
1312
}
1313
1313
1314
1314
/// Performs part of the privacy check and computes effective visibilities.
@@ -1607,7 +1607,6 @@ rustc_queries! {
1607
1607
/// `Err(AlwaysRequiresDrop)` is returned.
1608
1608
query adt_significant_drop_tys( def_id: DefId ) -> Result <& ' tcx ty:: List <Ty <' tcx>>, AlwaysRequiresDrop > {
1609
1609
desc { |tcx| "computing when `{}` has a significant destructor" , tcx. def_path_str( def_id) }
1610
- cache_on_disk_if { false }
1611
1610
}
1612
1611
1613
1612
/// Returns a list of types which (a) have a potentially significant destructor
@@ -1629,7 +1628,6 @@ rustc_queries! {
1629
1628
/// Otherwise, there is a risk of query cycles.
1630
1629
query list_significant_drop_tys( ty: ty:: PseudoCanonicalInput <' tcx, Ty <' tcx>>) -> & ' tcx ty:: List <Ty <' tcx>> {
1631
1630
desc { |tcx| "computing when `{}` has a significant destructor" , ty. value }
1632
- cache_on_disk_if { false }
1633
1631
}
1634
1632
1635
1633
/// Computes the layout of a type. Note that this implicitly
@@ -2517,7 +2515,6 @@ rustc_queries! {
2517
2515
/// monomorphized.
2518
2516
query check_mono_item( key: ty:: Instance <' tcx>) {
2519
2517
desc { "monomorphization-time checking" }
2520
- cache_on_disk_if { true }
2521
2518
}
2522
2519
2523
2520
/// Builds the set of functions that should be skipped for the move-size check.
0 commit comments