File tree Expand file tree Collapse file tree
compiler/rustc_query_impl/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 Some ( ( ) )
9494}
9595
96- /// Guard object representing the responsibility to execute a query job and
97- /// mark it as completed.
98- ///
99- /// This will poison the relevant query key if it is dropped without calling
100- /// [`Self::complete`].
101- struct ActiveJobGuard < ' tcx , K >
102- where
103- K : Eq + Hash + Copy ,
104- {
105- state : & ' tcx QueryState < ' tcx , K > ,
106- key : K ,
107- key_hash : u64 ,
108- }
109-
11096#[ cold]
11197#[ inline( never) ]
11298fn mk_cycle < ' tcx , C : QueryCache > (
@@ -137,6 +123,20 @@ fn mk_cycle<'tcx, C: QueryCache>(
137123 }
138124}
139125
126+ /// Guard object representing the responsibility to execute a query job and
127+ /// mark it as completed.
128+ ///
129+ /// This will poison the relevant query key if it is dropped without calling
130+ /// [`Self::complete`].
131+ struct ActiveJobGuard < ' tcx , K >
132+ where
133+ K : Eq + Hash + Copy ,
134+ {
135+ state : & ' tcx QueryState < ' tcx , K > ,
136+ key : K ,
137+ key_hash : u64 ,
138+ }
139+
140140impl < ' tcx , K > ActiveJobGuard < ' tcx , K >
141141where
142142 K : Eq + Hash + Copy ,
You can’t perform that action at this time.
0 commit comments