Skip to content

Commit 08b27ff

Browse files
committed
Add some comments
1 parent cff9efd commit 08b27ff

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

compiler/rustc_interface/src/interface.rs

+4
Original file line numberDiff line numberDiff 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

compiler/rustc_middle/src/ty/context.rs

+1
Original file line numberDiff line numberDiff 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

compiler/rustc_query_system/src/query/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ pub enum QuerySideEffect {
152152
pub 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;

0 commit comments

Comments
 (0)