Remove hir::Ident
This commit is contained in:
parent
8310de856d
commit
aad347c4f7
32 changed files with 123 additions and 226 deletions
|
|
@ -1626,7 +1626,7 @@ impl Clean<Type> for hir::Ty {
|
|||
segments: segments.into(),
|
||||
};
|
||||
Type::QPath {
|
||||
name: p.segments.last().unwrap().identifier.name.clean(cx),
|
||||
name: p.segments.last().unwrap().name.clean(cx),
|
||||
self_type: box qself.ty.clean(cx),
|
||||
trait_: box resolve_type(cx, trait_path.clean(cx), self.id)
|
||||
}
|
||||
|
|
@ -2064,7 +2064,7 @@ pub struct PathSegment {
|
|||
impl Clean<PathSegment> for hir::PathSegment {
|
||||
fn clean(&self, cx: &DocContext) -> PathSegment {
|
||||
PathSegment {
|
||||
name: self.identifier.name.clean(cx),
|
||||
name: self.name.clean(cx),
|
||||
params: self.parameters.clean(cx)
|
||||
}
|
||||
}
|
||||
|
|
@ -2073,7 +2073,7 @@ impl Clean<PathSegment> for hir::PathSegment {
|
|||
fn path_to_string(p: &hir::Path) -> String {
|
||||
let mut s = String::new();
|
||||
let mut first = true;
|
||||
for i in p.segments.iter().map(|x| x.identifier.name.as_str()) {
|
||||
for i in p.segments.iter().map(|x| x.name.as_str()) {
|
||||
if !first || p.global {
|
||||
s.push_str("::");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue