@@ -80,14 +80,14 @@ impl QueryContext for QueryCtxt<'_> {
80
80
tls:: with_related_context ( self . tcx , |icx| icx. query )
81
81
}
82
82
83
- fn try_collect_active_jobs ( self ) -> Option < QueryMap > {
83
+ fn collect_active_jobs ( self ) -> QueryMap {
84
84
let mut jobs = QueryMap :: default ( ) ;
85
85
86
86
for collect in super :: TRY_COLLECT_ACTIVE_JOBS . iter ( ) {
87
87
collect ( self . tcx , & mut jobs) ;
88
88
}
89
89
90
- Some ( jobs)
90
+ jobs
91
91
}
92
92
93
93
// Interactions with on_disk_cache
@@ -155,11 +155,11 @@ impl QueryContext for QueryCtxt<'_> {
155
155
fn depth_limit_error ( self , job : QueryJobId ) {
156
156
let mut span = None ;
157
157
let mut layout_of_depth = None ;
158
- if let Some ( map ) = self . try_collect_active_jobs ( ) {
159
- if let Some ( ( info , depth ) ) = job. try_find_layout_root ( map , dep_kinds:: layout_of) {
160
- span = Some ( info . job . span ) ;
161
- layout_of_depth = Some ( LayoutOfDepth { desc : info. query . description , depth } ) ;
162
- }
158
+ if let Some ( ( info , depth ) ) =
159
+ job. try_find_layout_root ( self . collect_active_jobs ( ) , dep_kinds:: layout_of)
160
+ {
161
+ span = Some ( info. job . span ) ;
162
+ layout_of_depth = Some ( LayoutOfDepth { desc : info . query . description , depth } ) ;
163
163
}
164
164
165
165
let suggested_limit = match self . recursion_limit ( ) {
0 commit comments