1
Fork 0

Add some intra-doc links to compiler docs

This commit is contained in:
Joshua Nelson 2020-12-22 09:54:23 -05:00
parent 50a90975c0
commit 9cd992f394
5 changed files with 13 additions and 5 deletions

View file

@ -25,8 +25,9 @@ use std::sync::{Arc, Mutex};
pub type Result<T> = result::Result<T, ErrorReported>;
/// Represents a compiler session.
///
/// Can be used to run `rustc_interface` queries.
/// Created by passing `Config` to `run_compiler`.
/// Created by passing [`Config`] to [`run_compiler`].
pub struct Compiler {
pub(crate) sess: Lrc<Session>,
codegen_backend: Lrc<Box<dyn CodegenBackend>>,