QPath docs: mention how to resolve them

This commit is contained in:
Ralf Jung 2019-11-04 09:50:59 +01:00
parent f49f388713
commit 65153710e1

View File

@ -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`