|
1 | 1 | use crate::clean::auto_trait::AutoTraitFinder;
|
2 | 2 | use crate::clean::blanket_impl::BlanketImplFinder;
|
3 | 3 | use crate::clean::{
|
4 |
| - inline, Clean, Crate, ExternalCrate, FnDecl, FnRetTy, Generic, GenericArg, |
5 |
| - GenericArgs, GenericBound, Generics, GetDefId, ImportSource, Item, ItemKind, Lifetime, |
6 |
| - MacroKind, Path, PathSegment, Primitive, PrimitiveType, ResolvedPath, Type, TypeBinding, |
7 |
| - TypeKind, WherePredicate, |
| 4 | + inline, Clean, Crate, ExternalCrate, FnDecl, FnRetTy, Generic, GenericArg, GenericArgs, |
| 5 | + GenericBound, Generics, GetDefId, ImportSource, Item, ItemKind, Lifetime, MacroKind, Path, |
| 6 | + PathSegment, Primitive, PrimitiveType, ResolvedPath, Type, TypeBinding, TypeKind, |
| 7 | + WherePredicate, |
8 | 8 | };
|
9 | 9 | use crate::core::DocContext;
|
10 | 10 |
|
@@ -73,20 +73,9 @@ crate fn krate(mut cx: &mut DocContext<'_>) -> Crate {
|
73 | 73 | cx,
|
74 | 74 | )
|
75 | 75 | }));
|
76 |
| - m.items.extend(keywords.into_iter() |
77 |
| - .map(|(def_id, kw, _)| Item::from_def_id_and_parts(def_id, Some(kw.clone()), ItemKind::KeywordItem(kw), cx) |
78 |
| - )); |
79 |
| - /* |
80 |
| - source: Span::empty(), |
81 |
| - name: Some(kw.clone()), |
82 |
| - attrs, |
83 |
| - visibility: Visibility::Public, |
84 |
| - stability: get_stability(cx, def_id), |
85 |
| - deprecation: get_deprecation(cx, def_id), |
86 |
| - def_id, |
87 |
| - kind: ItemKind::KeywordItem(kw), |
| 76 | + m.items.extend(keywords.into_iter().map(|(def_id, kw)| { |
| 77 | + Item::from_def_id_and_parts(def_id, Some(kw.clone()), ItemKind::KeywordItem(kw), cx) |
88 | 78 | }));
|
89 |
| - */ |
90 | 79 | }
|
91 | 80 |
|
92 | 81 | Crate {
|
|
0 commit comments