Skip to content

Commit 9f8c8e4

Browse files
committed
Add module-level docs to rustc_middle::ty
1 parent 29e3212 commit 9f8c8e4

File tree

1 file changed

+11
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+11
-0
lines changed

compiler/rustc_middle/src/ty/mod.rs

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//! Defines how the compiler represents types internally.
2+
//!
3+
//! Two important entities in this module are:
4+
//!
5+
//! - [`rustc_middle::ty::Ty`], used to represent the semantics of a type.
6+
//! - [`rustc_middle::ty::TyCtxt`], the central data structure in the compiler.
7+
//!
8+
//! For more information, see ["The `ty` module: representing types"] in the ructc-dev-guide.
9+
//!
10+
//! ["The `ty` module: representing types"]: https://rustc-dev-guide.rust-lang.org/ty.html
11+
112
// ignore-tidy-filelength
213
pub use self::fold::{TypeFoldable, TypeFolder, TypeVisitor};
314
pub use self::AssocItemContainer::*;

0 commit comments

Comments
 (0)