diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2020-04-01 10:57:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 10:57:35 +0200 |
| commit | f1fa8cbde0835612997d4f3640ba7a94035e91ec (patch) | |
| tree | 1244c473ec20889374478814eed0779773c57ae4 /src/doc/rustc-dev-guide | |
| parent | 22ee98a04a732dc92f8b61fb90e3fa578dd2d4e8 (diff) | |
| download | rust-f1fa8cbde0835612997d4f3640ba7a94035e91ec.tar.gz rust-f1fa8cbde0835612997d4f3640ba7a94035e91ec.zip | |
add link for Resolver::resolve_crate (#653)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/name-resolution.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/name-resolution.md b/src/doc/rustc-dev-guide/src/name-resolution.md index 6dfbd91a86c..431a8f1d3fd 100644 --- a/src/doc/rustc-dev-guide/src/name-resolution.md +++ b/src/doc/rustc-dev-guide/src/name-resolution.md @@ -28,13 +28,15 @@ source to relevant places where the name was introduced. It also generates helpful error messages, like typo suggestions, traits to import or lints about unused items. -A successful run of the second phase (`Resolver::resolve_crate`) creates kind +A successful run of the second phase ([`Resolver::resolve_crate`]) creates kind of an index the rest of the compilation may use to ask about the present names (through the `hir::lowering::Resolver` interface). The name resolution lives in the `librustc_resolve` crate, with the meat in `lib.rs` and some helpers or symbol-type specific logic in the other modules. +[`Resolver::resolve_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/struct.Resolver.html#method.resolve_crate + ## Namespaces Different kind of symbols live in different namespaces ‒ e.g. types don't |
