Skip to content

Commit b35bd94

Browse files
committed
Start a code index
1 parent bfcdce6 commit b35bd94

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@
2828
- [Parameter Environments](./param_env.md)
2929
- [Generating LLVM IR](./trans.md)
3030
- [Glossary](./glossary.md)
31+
- [Code Index](./code-index.md)

src/code-index.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code Index
2+
3+
rustc has a lot of important data structures. This is an attempt to give some
4+
guidance on where to learn more about some of the key data structures of the
5+
compiler.
6+
7+
Item | Kind | Short description | Chapter | Declaration
8+
----------------|----------|-----------------------------|--------------------|-------------------
9+
`TyCtxt<'cx, 'tcx, 'tcx>` | type | The "typing context". This is the central data structure in the compiler. It is the context that you use to perform all manner of queries. | [The `ty` modules](ty.html) | [src/librustc/ty/context.rs](https://github.com/rust-lang/rust/blob/master/src/librustc/ty/context.rs)

0 commit comments

Comments
 (0)