]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_interface/src/interface.rs
Rollup merge of #104129 - notriddle:notriddle/102576-js-notable-trait, r=Manishearth
[rust.git] / compiler / rustc_interface / src / interface.rs
index a3bf7cde9ff71d31193d83498c2fece1bf651992..89aaa0b95e41b24a680cffa4ad4b86d3b4d84612 100644 (file)
 
 pub type Result<T> = result::Result<T, ErrorGuaranteed>;
 
-/// Represents a compiler session.
+/// Represents a compiler session. Note that every `Compiler` contains a
+/// `Session`, but `Compiler` also contains some things that cannot be in
+/// `Session`, due to `Session` being in a crate that has many fewer
+/// dependencies than this crate.
 ///
 /// Can be used to run `rustc_interface` queries.
 /// Created by passing [`Config`] to [`run_compiler`].