add link for Resolver::resolve_crate (#653)

This commit is contained in:
Tshepang Lekhonkhobe 2020-04-01 10:57:35 +02:00 committed by GitHub
parent 8edc4bc160
commit 271115f85d
1 changed files with 3 additions and 1 deletions

View File

@ -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 helpful error messages, like typo suggestions, traits to import or lints about
unused items. 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 of an index the rest of the compilation may use to ask about the present names
(through the `hir::lowering::Resolver` interface). (through the `hir::lowering::Resolver` interface).
The name resolution lives in the `librustc_resolve` crate, with the meat in 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. `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 ## Namespaces
Different kind of symbols live in different namespaces e.g. types don't Different kind of symbols live in different namespaces e.g. types don't