Skip to content

Commit 5d716fd

Browse files
committed
Add a comment to Compiler.
It took me a while to work this out.
1 parent cf13d91 commit 5d716fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_interface/src/interface.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ use std::result;
2525

2626
pub type Result<T> = result::Result<T, ErrorGuaranteed>;
2727

28-
/// Represents a compiler session.
28+
/// Represents a compiler session. Note that every `Compiler` contains a
29+
/// `Session`, but `Compiler` also contains some things that cannot be in
30+
/// `Session`, due to `Session` being in a crate that has many fewer
31+
/// dependencies than this crate.
2932
///
3033
/// Can be used to run `rustc_interface` queries.
3134
/// Created by passing [`Config`] to [`run_compiler`].

0 commit comments

Comments
 (0)