@@ -53,7 +53,7 @@ impl<'tcx> HasDepContext for QueryCtxt<'tcx> {
5353}
5454
5555impl QueryContext for QueryCtxt < ' _ > {
56- fn next_job_id ( & self ) -> QueryJobId {
56+ fn next_job_id ( self ) -> QueryJobId {
5757 QueryJobId (
5858 NonZeroU64 :: new (
5959 self . queries . jobs . fetch_add ( 1 , rustc_data_structures:: sync:: Ordering :: Relaxed ) ,
@@ -62,31 +62,31 @@ impl QueryContext for QueryCtxt<'_> {
6262 )
6363 }
6464
65- fn current_query_job ( & self ) -> Option < QueryJobId > {
66- tls:: with_related_context ( * * self , |icx| icx. query )
65+ fn current_query_job ( self ) -> Option < QueryJobId > {
66+ tls:: with_related_context ( * self , |icx| icx. query )
6767 }
6868
69- fn try_collect_active_jobs ( & self ) -> Option < QueryMap < DepKind > > {
70- self . queries . try_collect_active_jobs ( * * self )
69+ fn try_collect_active_jobs ( self ) -> Option < QueryMap < DepKind > > {
70+ self . queries . try_collect_active_jobs ( * self )
7171 }
7272
7373 // Interactions with on_disk_cache
74- fn load_side_effects ( & self , prev_dep_node_index : SerializedDepNodeIndex ) -> QuerySideEffects {
74+ fn load_side_effects ( self , prev_dep_node_index : SerializedDepNodeIndex ) -> QuerySideEffects {
7575 self . queries
7676 . on_disk_cache
7777 . as_ref ( )
78- . map ( |c| c. load_side_effects ( * * self , prev_dep_node_index) )
78+ . map ( |c| c. load_side_effects ( * self , prev_dep_node_index) )
7979 . unwrap_or_default ( )
8080 }
8181
82- fn store_side_effects ( & self , dep_node_index : DepNodeIndex , side_effects : QuerySideEffects ) {
82+ fn store_side_effects ( self , dep_node_index : DepNodeIndex , side_effects : QuerySideEffects ) {
8383 if let Some ( c) = self . queries . on_disk_cache . as_ref ( ) {
8484 c. store_side_effects ( dep_node_index, side_effects)
8585 }
8686 }
8787
8888 fn store_side_effects_for_anon_node (
89- & self ,
89+ self ,
9090 dep_node_index : DepNodeIndex ,
9191 side_effects : QuerySideEffects ,
9292 ) {
@@ -100,7 +100,7 @@ impl QueryContext for QueryCtxt<'_> {
100100 /// captured during execution and the actual result.
101101 #[ inline( always) ]
102102 fn start_query < R > (
103- & self ,
103+ self ,
104104 token : QueryJobId ,
105105 depth_limit : bool ,
106106 diagnostics : Option < & Lock < ThinVec < Diagnostic > > > ,
@@ -109,14 +109,14 @@ impl QueryContext for QueryCtxt<'_> {
109109 // The `TyCtxt` stored in TLS has the same global interner lifetime
110110 // as `self`, so we use `with_related_context` to relate the 'tcx lifetimes
111111 // when accessing the `ImplicitCtxt`.
112- tls:: with_related_context ( * * self , move |current_icx| {
112+ tls:: with_related_context ( * self , move |current_icx| {
113113 if depth_limit && !self . recursion_limit ( ) . value_within_limit ( current_icx. query_depth ) {
114114 self . depth_limit_error ( token) ;
115115 }
116116
117117 // Update the `ImplicitCtxt` to point to our new query job.
118118 let new_icx = ImplicitCtxt {
119- tcx : * * self ,
119+ tcx : * self ,
120120 query : Some ( token) ,
121121 diagnostics,
122122 query_depth : current_icx. query_depth + depth_limit as usize ,
@@ -130,7 +130,7 @@ impl QueryContext for QueryCtxt<'_> {
130130 } )
131131 }
132132
133- fn depth_limit_error ( & self , job : QueryJobId ) {
133+ fn depth_limit_error ( self , job : QueryJobId ) {
134134 let mut span = None ;
135135 let mut layout_of_depth = None ;
136136 if let Some ( map) = self . try_collect_active_jobs ( ) {
0 commit comments