Split AssocConstItem into ProvidedAssocConstItem and ImplAssocConstItem
This commit is contained in:
parent
57e1a47dc4
commit
044885c8ae
11 changed files with 62 additions and 34 deletions
|
|
@ -343,7 +343,7 @@ fn from_clean_item(item: clean::Item, renderer: &JsonRenderer<'_>) -> ItemEnum {
|
|||
ItemEnum::AssocConst { type_: (*ty).into_json(renderer), value: None }
|
||||
}
|
||||
// FIXME(generic_const_items): Add support for generic associated consts.
|
||||
AssocConstItem(ci) => ItemEnum::AssocConst {
|
||||
ProvidedAssocConstItem(ci) | ImplAssocConstItem(ci) => ItemEnum::AssocConst {
|
||||
type_: ci.type_.into_json(renderer),
|
||||
value: Some(ci.kind.expr(renderer.tcx)),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue