1
Fork 0

Explain ResolvedPath vs hir::Path

Co-authored-by: Joshua Nelson <github@jyn.dev>
This commit is contained in:
Noah Lev 2021-09-29 11:43:14 -07:00
parent 962e451443
commit 5f744f33f6

View file

@ -1376,7 +1376,7 @@ crate struct PolyTrait {
crate enum Type {
/// A named type, which could be a trait.
///
/// This is mostly Rustdoc's version of [`hir::Path`].
/// This is mostly Rustdoc's version of [`hir::Path`]. It has to be different because Rustdoc's [`PathSegment`] can contain cleaned generics.
ResolvedPath { path: Path, did: DefId },
/// A `dyn Trait` object: `dyn for<'a> Trait<'a> + Send + 'static`
DynTrait(Vec<PolyTrait>, Option<Lifetime>),