Merge VariantData and VariantData_
This commit is contained in:
parent
a5225cbe92
commit
46750d0409
28 changed files with 141 additions and 161 deletions
|
|
@ -1853,7 +1853,7 @@ impl Clean<Item> for doctree::Variant {
|
|||
source: self.whence.clean(cx),
|
||||
visibility: None,
|
||||
stability: self.stab.clean(cx),
|
||||
def_id: cx.map.local_def_id(self.def.id),
|
||||
def_id: cx.map.local_def_id(self.def.id()),
|
||||
inner: VariantItem(Variant {
|
||||
kind: struct_def_to_variant_kind(&self.def, cx),
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
variants: def.variants.iter().map(|v| Variant {
|
||||
name: v.node.name,
|
||||
attrs: v.node.attrs.clone(),
|
||||
stab: self.stability(v.node.data.id),
|
||||
stab: self.stability(v.node.data.id()),
|
||||
def: v.node.data.clone(),
|
||||
whence: v.span,
|
||||
}).collect(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue