about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlona Enraght-Moony <code@alona.page>2024-05-24 17:17:25 +0000
committerAlona Enraght-Moony <code@alona.page>2024-05-24 17:17:25 +0000
commit9f8b1caf2957f281f88577ff62b20811d5fcb419 (patch)
tree94f0c8ed1d3df2409daa8ab62e17aaa720b46d8b
parent0e682e9875458ebf811206a48b688e07d762d9bb (diff)
downloadrust-9f8b1caf2957f281f88577ff62b20811d5fcb419.tar.gz
rust-9f8b1caf2957f281f88577ff62b20811d5fcb419.zip
Add intra-doc-links to rustc_middle crate-level docs.
-rw-r--r--compiler/rustc_middle/src/lib.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/lib.rs b/compiler/rustc_middle/src/lib.rs
index e52a5863fd0..ea7b8baf3f2 100644
--- a/compiler/rustc_middle/src/lib.rs
+++ b/compiler/rustc_middle/src/lib.rs
@@ -4,15 +4,16 @@
 //! has their own README with further details).
 //!
 //! - **HIR.** The "high-level (H) intermediate representation (IR)" is
-//!   defined in the `hir` module.
+//!   defined in the [`hir`] module.
 //! - **MIR.** The "mid-level (M) intermediate representation (IR)" is
-//!   defined in the `mir` module. This module contains only the
+//!   defined in the [`mir`] module. This module contains only the
 //!   *definition* of the MIR; the passes that transform and operate
 //!   on MIR are found in `rustc_const_eval` crate.
 //! - **Types.** The internal representation of types used in rustc is
-//!   defined in the `ty` module. This includes the **type context**
-//!   (or `tcx`), which is the central context during most of
-//!   compilation, containing the interners and other things.
+//!   defined in the [`ty`] module. This includes the
+//!   [**type context**][ty::TyCtxt] (or `tcx`), which is the central
+//!   context during most of compilation, containing the interners and
+//!   other things.
 //!
 //! For more information about how rustc works, see the [rustc dev guide].
 //!