@@ -612,6 +612,7 @@ rustc_queries! {
612612
613613 query check_coroutine_obligations( key: LocalDefId ) -> Result <( ) , ErrorGuaranteed > {
614614 desc { |tcx| "verify auto trait bounds for coroutine interior type `{}`" , tcx. def_path_str( key) }
615+ return_result_from_ensure_ok
615616 }
616617
617618 /// MIR after our optimization passes have run. This is MIR that is ready
@@ -1033,13 +1034,13 @@ rustc_queries! {
10331034 /// Unsafety-check this `LocalDefId`.
10341035 query check_unsafety( key: LocalDefId ) {
10351036 desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key) }
1036- cache_on_disk_if { true }
1037+ return_result_from_ensure_ok
10371038 }
10381039
10391040 /// Checks well-formedness of tail calls (`become f()`).
10401041 query check_tail_calls( key: LocalDefId ) -> Result <( ) , rustc_errors:: ErrorGuaranteed > {
10411042 desc { |tcx| "tail-call-checking `{}`" , tcx. def_path_str( key) }
1042- cache_on_disk_if { true }
1043+ return_result_from_ensure_ok
10431044 }
10441045
10451046 /// Returns the types assumed to be well formed while "inside" of the given item.
@@ -1308,7 +1309,7 @@ rustc_queries! {
13081309
13091310 query check_match( key: LocalDefId ) -> Result <( ) , rustc_errors:: ErrorGuaranteed > {
13101311 desc { |tcx| "match-checking `{}`" , tcx. def_path_str( key) }
1311- cache_on_disk_if { true }
1312+ return_result_from_ensure_ok
13121313 }
13131314
13141315 /// Performs part of the privacy check and computes effective visibilities.
@@ -1602,7 +1603,6 @@ rustc_queries! {
16021603 /// `Err(AlwaysRequiresDrop)` is returned.
16031604 query adt_significant_drop_tys( def_id: DefId ) -> Result <& ' tcx ty:: List <Ty <' tcx>>, AlwaysRequiresDrop > {
16041605 desc { |tcx| "computing when `{}` has a significant destructor" , tcx. def_path_str( def_id) }
1605- cache_on_disk_if { false }
16061606 }
16071607
16081608 /// Returns a list of types which (a) have a potentially significant destructor
@@ -1624,7 +1624,6 @@ rustc_queries! {
16241624 /// Otherwise, there is a risk of query cycles.
16251625 query list_significant_drop_tys( ty: ty:: PseudoCanonicalInput <' tcx, Ty <' tcx>>) -> & ' tcx ty:: List <Ty <' tcx>> {
16261626 desc { |tcx| "computing when `{}` has a significant destructor" , ty. value }
1627- cache_on_disk_if { false }
16281627 }
16291628
16301629 /// Computes the layout of a type. Note that this implicitly
@@ -2512,7 +2511,6 @@ rustc_queries! {
25122511 /// monomorphized.
25132512 query check_mono_item( key: ty:: Instance <' tcx>) {
25142513 desc { "monomorphization-time checking" }
2515- cache_on_disk_if { true }
25162514 }
25172515
25182516 /// Builds the set of functions that should be skipped for the move-size check.
0 commit comments