This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
rustc_query_system/src/query Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ pub struct Compiler {
4040 pub sess : Session ,
4141 pub codegen_backend : Box < dyn CodegenBackend > ,
4242 pub ( crate ) override_queries : Option < fn ( & Session , & mut Providers ) > ,
43+
44+ /// A reference to the current `GlobalCtxt` which we pass on to `GlobalCtxt`.
4345 pub ( crate ) current_gcx : CurrentGcx ,
46+
47+ /// A jobserver reference which we pass on to `GlobalCtxt`.
4448 pub ( crate ) jobserver_proxy : Arc < Proxy > ,
4549}
4650
Original file line number Diff line number Diff line change @@ -1440,6 +1440,7 @@ pub struct GlobalCtxt<'tcx> {
14401440
14411441 current_gcx : CurrentGcx ,
14421442
1443+ /// A jobserver reference used to release then acquire a token while waiting on a query.
14431444 pub jobserver_proxy : Arc < Proxy > ,
14441445}
14451446
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ pub enum QuerySideEffect {
152152pub trait QueryContext : HasDepContext {
153153 type QueryInfo : Clone ;
154154
155+ /// Gets a jobserver reference which is used to release then acquire
156+ /// a token while waiting on a query.
155157 fn jobserver_proxy ( & self ) -> & Proxy ;
156158
157159 fn next_job_id ( self ) -> QueryJobId ;
You can’t perform that action at this time.
0 commit comments