diff options
| author | Ralf Jung <post@ralfj.de> | 2019-11-04 09:50:59 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-11-04 09:50:59 +0100 |
| commit | 65153710e1cc46a33b65f90cd92732bc9c77cee5 (patch) | |
| tree | d933a03d3a4f4a4aea9101eaeabf8b4618769544 | |
| parent | f49f38871389041671cc710a044e8360091840a3 (diff) | |
| download | rust-65153710e1cc46a33b65f90cd92732bc9c77cee5.tar.gz rust-65153710e1cc46a33b65f90cd92732bc9c77cee5.zip | |
QPath docs: mention how to resolve them
| -rw-r--r-- | src/librustc/hir/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index 0edc41e6b48..d28624907d7 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -1698,6 +1698,10 @@ pub enum ExprKind { } /// Represents an optionally `Self`-qualified value/type path or associated extension. +/// +/// To resolve the path to a `DefId`, call [`qpath_res`]. +/// +/// [`qpath_res`]: ty/struct.TypeckTables.html#method.qpath_res #[derive(RustcEncodable, RustcDecodable, Debug, HashStable)] pub enum QPath { /// Path to a definition, optionally "fully-qualified" with a `Self` |
