File tree 3 files changed +7
-0
lines changed
rustc_query_system/src/query
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ pub struct Compiler {
40
40
pub sess : Session ,
41
41
pub codegen_backend : Box < dyn CodegenBackend > ,
42
42
pub ( crate ) override_queries : Option < fn ( & Session , & mut Providers ) > ,
43
+
44
+ /// A reference to the current `GlobalCtxt` which we pass on to `GlobalCtxt`.
43
45
pub ( crate ) current_gcx : CurrentGcx ,
46
+
47
+ /// A jobserver reference which we pass on to `GlobalCtxt`.
44
48
pub ( crate ) jobserver_proxy : Arc < Proxy > ,
45
49
}
46
50
Original file line number Diff line number Diff line change @@ -1440,6 +1440,7 @@ pub struct GlobalCtxt<'tcx> {
1440
1440
1441
1441
current_gcx : CurrentGcx ,
1442
1442
1443
+ /// A jobserver reference used to release then acquire a token while waiting on a query.
1443
1444
pub jobserver_proxy : Arc < Proxy > ,
1444
1445
}
1445
1446
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ pub enum QuerySideEffect {
152
152
pub trait QueryContext : HasDepContext {
153
153
type QueryInfo : Clone ;
154
154
155
+ /// Gets a jobserver reference which is used to release then acquire
156
+ /// a token while waiting on a query.
155
157
fn jobserver_proxy ( & self ) -> & Proxy ;
156
158
157
159
fn next_job_id ( self ) -> QueryJobId ;
You can’t perform that action at this time.
0 commit comments