Skip to content

Commit 5f744f3

Browse files
camelidjyn514
andcommitted
Explain ResolvedPath vs hir::Path
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 962e451 commit 5f744f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/types.rs

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

0 commit comments

Comments
 (0)