From 271115f85d2e28e8340d046264f445d5d98ac031 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 1 Apr 2020 10:57:35 +0200 Subject: [PATCH] add link for Resolver::resolve_crate (#653) --- src/name-resolution.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/name-resolution.md b/src/name-resolution.md index 6dfbd91a..431a8f1d 100644 --- a/src/name-resolution.md +++ b/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