diff options
| author | David Tolnay <dtolnay@gmail.com> | 2024-12-14 17:02:09 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2024-12-19 10:48:46 -0800 |
| commit | ff65d62922631bd00af13b905fd3abd9c971ae27 (patch) | |
| tree | faf65bb9ed240bdcf52da00bd74c0a354e794bc5 /src/librustdoc/formats | |
| parent | 6bdfd12ee9f09c48e7ec00403d5be10d3b7b6b2c (diff) | |
| download | rust-ff65d62922631bd00af13b905fd3abd9c971ae27.tar.gz rust-ff65d62922631bd00af13b905fd3abd9c971ae27.zip | |
Rename TyAssocTypeItem -> RequiredAssocTypeItem
Diffstat (limited to 'src/librustdoc/formats')
| -rw-r--r-- | src/librustdoc/formats/cache.rs | 4 | ||||
| -rw-r--r-- | src/librustdoc/formats/item_type.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs index a87979ab186..2ad8c832daf 100644 --- a/src/librustdoc/formats/cache.rs +++ b/src/librustdoc/formats/cache.rs @@ -340,7 +340,7 @@ impl DocFolder for CacheBuilder<'_, '_> { | clean::RequiredAssocConstItem(..) | clean::ProvidedAssocConstItem(..) | clean::ImplAssocConstItem(..) - | clean::TyAssocTypeItem(..) + | clean::RequiredAssocTypeItem(..) | clean::AssocTypeItem(..) | clean::StrippedItem(..) | clean::KeywordItem => { @@ -454,7 +454,7 @@ fn add_item_to_search_index(tcx: TyCtxt<'_>, cache: &mut Cache, item: &clean::It } clean::TyMethodItem(..) | clean::RequiredAssocConstItem(..) - | clean::TyAssocTypeItem(..) + | clean::RequiredAssocTypeItem(..) | clean::StructFieldItem(..) | clean::VariantItem(..) => { // Don't index if containing module is stripped (i.e., private), diff --git a/src/librustdoc/formats/item_type.rs b/src/librustdoc/formats/item_type.rs index 8f5e26d0104..f51292a5d5d 100644 --- a/src/librustdoc/formats/item_type.rs +++ b/src/librustdoc/formats/item_type.rs @@ -99,7 +99,7 @@ impl<'a> From<&'a clean::Item> for ItemType { clean::RequiredAssocConstItem(..) | clean::ProvidedAssocConstItem(..) | clean::ImplAssocConstItem(..) => ItemType::AssocConst, - clean::TyAssocTypeItem(..) | clean::AssocTypeItem(..) => ItemType::AssocType, + clean::RequiredAssocTypeItem(..) | clean::AssocTypeItem(..) => ItemType::AssocType, clean::ForeignTypeItem => ItemType::ForeignType, clean::KeywordItem => ItemType::Keyword, clean::TraitAliasItem(..) => ItemType::TraitAlias, |
