about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2020-04-01 10:57:35 +0200
committerGitHub <noreply@github.com>2020-04-01 10:57:35 +0200
commitf1fa8cbde0835612997d4f3640ba7a94035e91ec (patch)
tree1244c473ec20889374478814eed0779773c57ae4 /src/doc/rustc-dev-guide
parent22ee98a04a732dc92f8b61fb90e3fa578dd2d4e8 (diff)
downloadrust-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.md4
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