@@ -1087,15 +1087,15 @@ rustc_queries! {
10871087
10881088 query check_mod_type_wf( key: LocalModDefId ) -> Result <( ) , ErrorGuaranteed > {
10891089 desc { |tcx| "checking that types are well-formed in {}" , describe_as_module( key, tcx) }
1090- ensure_forwards_result_if_red
1090+ return_result_from_ensure_ok
10911091 }
10921092
10931093 /// Caches `CoerceUnsized` kinds for impls on custom types.
10941094 query coerce_unsized_info( key: DefId ) -> Result <ty:: adjustment:: CoerceUnsizedInfo , ErrorGuaranteed > {
10951095 desc { |tcx| "computing CoerceUnsized info for `{}`" , tcx. def_path_str( key) }
10961096 cache_on_disk_if { key. is_local( ) }
10971097 separate_provide_extern
1098- ensure_forwards_result_if_red
1098+ return_result_from_ensure_ok
10991099 }
11001100
11011101 query typeck( key: LocalDefId ) -> & ' tcx ty:: TypeckResults <' tcx> {
@@ -1110,7 +1110,7 @@ rustc_queries! {
11101110
11111111 query coherent_trait( def_id: DefId ) -> Result <( ) , ErrorGuaranteed > {
11121112 desc { |tcx| "coherence checking all impls of trait `{}`" , tcx. def_path_str( def_id) }
1113- ensure_forwards_result_if_red
1113+ return_result_from_ensure_ok
11141114 }
11151115
11161116 /// Borrow-checks the function body. If this is a closure, returns
@@ -1140,7 +1140,7 @@ rustc_queries! {
11401140 /// </div>
11411141 query crate_inherent_impls_validity_check( _: ( ) ) -> Result <( ) , ErrorGuaranteed > {
11421142 desc { "check for inherent impls that should not be defined in crate" }
1143- ensure_forwards_result_if_red
1143+ return_result_from_ensure_ok
11441144 }
11451145
11461146 /// Checks all types in the crate for overlap in their inherent impls. Reports errors.
@@ -1152,7 +1152,7 @@ rustc_queries! {
11521152 /// </div>
11531153 query crate_inherent_impls_overlap_check( _: ( ) ) -> Result <( ) , ErrorGuaranteed > {
11541154 desc { "check for overlap between inherent impls defined in this crate" }
1155- ensure_forwards_result_if_red
1155+ return_result_from_ensure_ok
11561156 }
11571157
11581158 /// Checks whether all impls in the crate pass the overlap check, returning
@@ -1162,7 +1162,7 @@ rustc_queries! {
11621162 "checking whether impl `{}` follows the orphan rules" ,
11631163 tcx. def_path_str( key) ,
11641164 }
1165- ensure_forwards_result_if_red
1165+ return_result_from_ensure_ok
11661166 }
11671167
11681168 /// Check whether the function has any recursion that could cause the inliner to trigger
@@ -1479,7 +1479,7 @@ rustc_queries! {
14791479 query specialization_graph_of( trait_id: DefId ) -> Result <& ' tcx specialization_graph:: Graph , ErrorGuaranteed > {
14801480 desc { |tcx| "building specialization graph of trait `{}`" , tcx. def_path_str( trait_id) }
14811481 cache_on_disk_if { true }
1482- ensure_forwards_result_if_red
1482+ return_result_from_ensure_ok
14831483 }
14841484 query dyn_compatibility_violations( trait_id: DefId ) -> & ' tcx [ DynCompatibilityViolation ] {
14851485 desc { |tcx| "determining dyn-compatibility of trait `{}`" , tcx. def_path_str( trait_id) }
@@ -1715,12 +1715,12 @@ rustc_queries! {
17151715
17161716 query check_well_formed( key: LocalDefId ) -> Result <( ) , ErrorGuaranteed > {
17171717 desc { |tcx| "checking that `{}` is well-formed" , tcx. def_path_str( key) }
1718- ensure_forwards_result_if_red
1718+ return_result_from_ensure_ok
17191719 }
17201720
17211721 query enforce_impl_non_lifetime_params_are_constrained( key: LocalDefId ) -> Result <( ) , ErrorGuaranteed > {
17221722 desc { |tcx| "checking that `{}`'s generics are constrained by the impl header" , tcx. def_path_str( key) }
1723- ensure_forwards_result_if_red
1723+ return_result_from_ensure_ok
17241724 }
17251725
17261726 // The `DefId`s of all non-generic functions and statics in the given crate
@@ -2442,7 +2442,7 @@ rustc_queries! {
24422442 /// Any other def id will ICE.
24432443 query compare_impl_item( key: LocalDefId ) -> Result <( ) , ErrorGuaranteed > {
24442444 desc { |tcx| "checking assoc item `{}` is compatible with trait definition" , tcx. def_path_str( key) }
2445- ensure_forwards_result_if_red
2445+ return_result_from_ensure_ok
24462446 }
24472447
24482448 query deduced_param_attrs( def_id: DefId ) -> & ' tcx [ ty:: DeducedParamAttrs ] {
0 commit comments