@@ -372,7 +372,7 @@ fn execute_job<'tcx, C: QueryCache, const INCR: bool>(
372372 debug_assert_eq ! ( tcx. dep_graph. is_fully_enabled( ) , INCR ) ;
373373
374374 // Delegate to another function to actually execute the query job.
375- let ( result , dep_node_index) = if INCR {
375+ let ( value , dep_node_index) = if INCR {
376376 execute_job_incr ( query, tcx, key, dep_node, id)
377377 } else {
378378 execute_job_non_incr ( query, tcx, key, id)
@@ -384,18 +384,18 @@ fn execute_job<'tcx, C: QueryCache, const INCR: bool>(
384384 // This can't happen, as query feeding adds the very dependencies to the fed query
385385 // as its feeding query had. So if the fed query is red, so is its feeder, which will
386386 // get evaluated first, and re-feed the query.
387- if let Some ( ( cached_result , _) ) = cache. lookup ( & key) {
388- let Some ( hasher ) = query. hash_result else {
387+ if let Some ( ( cached_value , _) ) = cache. lookup ( & key) {
388+ let Some ( hash_value_fn ) = query. hash_value_fn else {
389389 panic ! (
390390 "no_hash fed query later has its value computed.\n \
391391 Remove `no_hash` modifier to allow recomputation.\n \
392392 The already cached value: {}",
393- ( query. format_value) ( & cached_result )
393+ ( query. format_value) ( & cached_value )
394394 ) ;
395395 } ;
396396
397397 let ( old_hash, new_hash) = tcx. with_stable_hashing_context ( |mut hcx| {
398- ( hasher ( & mut hcx, & cached_result ) , hasher ( & mut hcx, & result ) )
398+ ( hash_value_fn ( & mut hcx, & cached_value ) , hash_value_fn ( & mut hcx, & value ) )
399399 } ) ;
400400 let formatter = query. format_value ;
401401 if old_hash != new_hash {
@@ -407,17 +407,17 @@ fn execute_job<'tcx, C: QueryCache, const INCR: bool>(
407407 computed={:#?}\n fed={:#?}",
408408 query. dep_kind,
409409 key,
410- formatter( & result ) ,
411- formatter( & cached_result ) ,
410+ formatter( & value ) ,
411+ formatter( & cached_value ) ,
412412 ) ;
413413 }
414414 }
415415 }
416416
417417 // Tell the guard to perform completion bookkeeping, and also to not poison the query.
418- job_guard. complete ( cache, result , dep_node_index) ;
418+ job_guard. complete ( cache, value , dep_node_index) ;
419419
420- ( result , Some ( dep_node_index) )
420+ ( value , Some ( dep_node_index) )
421421}
422422
423423// Fast path for when incr. comp. is off.
@@ -438,22 +438,22 @@ fn execute_job_non_incr<'tcx, C: QueryCache>(
438438
439439 let prof_timer = tcx. prof . query_provider ( ) ;
440440 // Call the query provider.
441- let result =
441+ let value =
442442 start_query ( tcx, job_id, query. depth_limit , || ( query. invoke_provider_fn ) ( tcx, key) ) ;
443443 let dep_node_index = tcx. dep_graph . next_virtual_depnode_index ( ) ;
444444 prof_timer. finish_with_query_invocation_id ( dep_node_index. into ( ) ) ;
445445
446446 // Similarly, fingerprint the result to assert that
447447 // it doesn't have anything not considered hashable.
448448 if cfg ! ( debug_assertions)
449- && let Some ( hash_result ) = query. hash_result
449+ && let Some ( hash_value_fn ) = query. hash_value_fn
450450 {
451451 tcx. with_stable_hashing_context ( |mut hcx| {
452- hash_result ( & mut hcx, & result ) ;
452+ hash_value_fn ( & mut hcx, & value ) ;
453453 } ) ;
454454 }
455455
456- ( result , dep_node_index)
456+ ( value , dep_node_index)
457457}
458458
459459#[ inline( always) ]
@@ -509,7 +509,7 @@ fn execute_job_incr<'tcx, C: QueryCache>(
509509 tcx,
510510 ( query, key) ,
511511 |tcx, ( query, key) | ( query. invoke_provider_fn ) ( tcx, key) ,
512- query. hash_result ,
512+ query. hash_value_fn ,
513513 )
514514 } ) ;
515515
@@ -560,7 +560,7 @@ fn load_from_disk_or_invoke_provider_green<'tcx, C: QueryCache>(
560560 dep_graph_data,
561561 & value,
562562 prev_index,
563- query. hash_result ,
563+ query. hash_value_fn ,
564564 query. format_value ,
565565 ) ;
566566 }
@@ -607,7 +607,7 @@ fn load_from_disk_or_invoke_provider_green<'tcx, C: QueryCache>(
607607 dep_graph_data,
608608 & value,
609609 prev_index,
610- query. hash_result ,
610+ query. hash_value_fn ,
611611 query. format_value ,
612612 ) ;
613613
0 commit comments