Skip to content

Commit c5bc5c6

Browse files
committed
Resolver trait moved
1 parent e2c733c commit c5bc5c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/name-resolution.md

Lines changed: 4 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
@@ -35,6 +35,8 @@ of an index the rest of the compilation may use to ask about the present names
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`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_lowering/trait.Resolver.html
39+
3840
## Namespaces
3941

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

0 commit comments

Comments
 (0)