Skip to content

Commit 6515371

Browse files
committed
QPath docs: mention how to resolve them
1 parent f49f388 commit 6515371

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/hir/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,10 @@ pub enum ExprKind {
16981698
}
16991699

17001700
/// Represents an optionally `Self`-qualified value/type path or associated extension.
1701+
///
1702+
/// To resolve the path to a `DefId`, call [`qpath_res`].
1703+
///
1704+
/// [`qpath_res`]: ty/struct.TypeckTables.html#method.qpath_res
17011705
#[derive(RustcEncodable, RustcDecodable, Debug, HashStable)]
17021706
pub enum QPath {
17031707
/// Path to a definition, optionally "fully-qualified" with a `Self`

0 commit comments

Comments
 (0)