Fix tests and rustdoc
This commit is contained in:
parent
c480386391
commit
cdcbdfdf0a
11 changed files with 28 additions and 24 deletions
|
|
@ -4012,6 +4012,8 @@ where F: Fn(DefId) -> Def {
|
|||
def: def_ctor(def_id),
|
||||
segments: hir::HirVec::from_vec(apb.names.iter().map(|s| hir::PathSegment {
|
||||
ident: ast::Ident::from_str(&s),
|
||||
id: None,
|
||||
def: None,
|
||||
args: None,
|
||||
infer_types: false,
|
||||
}).collect())
|
||||
|
|
|
|||
|
|
@ -186,6 +186,8 @@ impl<'a, 'tcx, 'rcx, 'cstore> DocContext<'a, 'tcx, 'rcx, 'cstore> {
|
|||
|
||||
segments.push(hir::PathSegment::new(
|
||||
real_name.unwrap_or(last.ident),
|
||||
None,
|
||||
None,
|
||||
self.generics_to_path_params(generics.clone()),
|
||||
false,
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue