Skip to content

Commit 610d8e8

Browse files
authored
Resolver trait moved (#652)
1 parent 498f7bd commit 610d8e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/name-resolution.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ namespaces and therefore can co-exist.
1919

2020
The name resolution in Rust is a two-phase process. In the first phase, which runs
2121
during macro expansion, we build a tree of modules and resolve imports. Macro
22-
expansion and name resolution communicate with each other via the `Resolver`
23-
trait, defined in `librustc_ast`.
22+
expansion and name resolution communicate with each other via the
23+
[`Resolver`] trait.
2424

2525
The input to the second phase is the syntax tree, produced by parsing input
2626
files and expanding macros. This phase produces links from all the names in the
@@ -36,6 +36,7 @@ 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

3838
[`Resolver::resolve_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/struct.Resolver.html#method.resolve_crate
39+
[`Resolver`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_lowering/trait.Resolver.html
3940

4041
## Namespaces
4142

0 commit comments

Comments
 (0)