Skip to content

Commit 498f7bd

Browse files
authored
add link for Resolver::resolve_crate (#653)
1 parent af7286d commit 498f7bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/name-resolution.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ source to relevant places where the name was introduced. It also generates
2828
helpful error messages, like typo suggestions, traits to import or lints about
2929
unused items.
3030

31-
A successful run of the second phase (`Resolver::resolve_crate`) creates kind
31+
A successful run of the second phase ([`Resolver::resolve_crate`]) creates kind
3232
of an index the rest of the compilation may use to ask about the present names
3333
(through the `hir::lowering::Resolver` interface).
3434

3535
The name resolution lives in the `librustc_resolve` crate, with the meat in
3636
`lib.rs` and some helpers or symbol-type specific logic in the other modules.
3737

38+
[`Resolver::resolve_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/struct.Resolver.html#method.resolve_crate
39+
3840
## Namespaces
3941

4042
Different kind of symbols live in different namespaces ‒ e.g. types don't

0 commit comments

Comments
 (0)