Rename Type::ResolvedPath
to Type::Path
At last! The new name is shorter, simpler, and consistent with `hir::Ty`.
This commit is contained in:
parent
d81deb33fa
commit
79c718f1d5
9 changed files with 37 additions and 38 deletions
|
@ -186,7 +186,7 @@ crate fn build_deref_target_impls(cx: &mut DocContext<'_>, items: &[Item], ret:
|
|||
for &did in prim.impls(tcx).iter().filter(|did| !did.is_local()) {
|
||||
inline::build_impl(cx, None, did, None, ret);
|
||||
}
|
||||
} else if let Type::ResolvedPath { path } = target {
|
||||
} else if let Type::Path { path } = target {
|
||||
let did = path.def_id();
|
||||
if !did.is_local() {
|
||||
inline::build_impls(cx, None, did, None, ret);
|
||||
|
@ -361,7 +361,7 @@ crate fn resolve_type(cx: &mut DocContext<'_>, path: Path) -> Type {
|
|||
Res::Def(DefKind::TyParam, _) if path.segments.len() == 1 => Generic(path.segments[0].name),
|
||||
_ => {
|
||||
let _ = register_res(cx, path.res);
|
||||
Type::ResolvedPath { path }
|
||||
Type::Path { path }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue