diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-12-20 01:36:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 01:36:47 -0500 |
| commit | f14d69c85370bc5c18c2c7528cbe652212f24552 (patch) | |
| tree | 7ffdb8552ae1c8a02ba2eaf23188a418c56d0e21 /src/librustdoc/fold.rs | |
| parent | a53204f978488fb8b81b0cf85f8cef73ab7e9bb5 (diff) | |
| parent | 7ee31ebd55f536a5fad9f31784cc85a6ec48ae74 (diff) | |
| download | rust-f14d69c85370bc5c18c2c7528cbe652212f24552.tar.gz rust-f14d69c85370bc5c18c2c7528cbe652212f24552.zip | |
Rollup merge of #134321 - dtolnay:docassocconst, r=fmease
Hide `= _` as associated constant value inside impl blocks Closes #134320. ### Before: <img src="https://github.com/user-attachments/assets/19d28811-45d2-4563-9726-f40c6af411c6" width="300"> <img src="https://github.com/user-attachments/assets/1ecf8764-97ce-47f0-87fa-3b174d2fc578" width="300"> ### After: <img src="https://github.com/user-attachments/assets/6408c4ca-b1c4-42e4-884b-248833a4865f" width="300"> <img src="https://github.com/user-attachments/assets/df2f6981-16f6-409f-8abb-73c0a4a71d6b" width="300"> r? `@fmease`
Diffstat (limited to 'src/librustdoc/fold.rs')
| -rw-r--r-- | src/librustdoc/fold.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librustdoc/fold.rs b/src/librustdoc/fold.rs index 95e495205ae..c03d16ad081 100644 --- a/src/librustdoc/fold.rs +++ b/src/librustdoc/fold.rs @@ -82,7 +82,7 @@ pub(crate) trait DocFolder: Sized { | StaticItem(_) | ConstantItem(..) | TraitAliasItem(_) - | TyMethodItem(_) + | RequiredMethodItem(_) | MethodItem(_, _) | StructFieldItem(_) | ForeignFunctionItem(..) @@ -91,9 +91,10 @@ pub(crate) trait DocFolder: Sized { | MacroItem(_) | ProcMacroItem(_) | PrimitiveItem(_) - | TyAssocConstItem(..) - | AssocConstItem(..) - | TyAssocTypeItem(..) + | RequiredAssocConstItem(..) + | ProvidedAssocConstItem(..) + | ImplAssocConstItem(..) + | RequiredAssocTypeItem(..) | AssocTypeItem(..) | KeywordItem => kind, } |
