about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-04-29 12:04:33 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-04-29 12:04:33 +0200
commit08b27ffbe89c26d0307b524c4f920bcc704ba23d (patch)
tree4982b352d9668e4ee3262620b400d1700fb96eba /compiler/rustc_interface/src/interface.rs
parentcff9efde748b6027fe9f135ddd5aaf8a3276601d (diff)
downloadrust-08b27ffbe89c26d0307b524c4f920bcc704ba23d.tar.gz
rust-08b27ffbe89c26d0307b524c4f920bcc704ba23d.zip
Add some comments
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
-rw-r--r--compiler/rustc_interface/src/interface.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
index 0178c1470fa..cf494f8d686 100644
--- a/compiler/rustc_interface/src/interface.rs
+++ b/compiler/rustc_interface/src/interface.rs
@@ -40,7 +40,11 @@ pub struct Compiler {
     pub sess: Session,
     pub codegen_backend: Box<dyn CodegenBackend>,
     pub(crate) override_queries: Option<fn(&Session, &mut Providers)>,
+
+    /// A reference to the current `GlobalCtxt` which we pass on to `GlobalCtxt`.
     pub(crate) current_gcx: CurrentGcx,
+
+    /// A jobserver reference which we pass on to `GlobalCtxt`.
     pub(crate) jobserver_proxy: Arc<Proxy>,
 }