@@ -171,10 +171,6 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
171
171
/// the hashmap because certain items (traits and types) need to have their mappings for trait
172
172
/// implementations filled out before they're inserted.
173
173
fn item ( & mut self , item : clean:: Item ) -> Result < ( ) , Error > {
174
- // FIXME(CraftSpider): We skip children of local blanket implementations, as we'll have
175
- // already seen the actual generic impl, and the generated ones don't need documenting.
176
- // This is necessary due to the visibility, return type, and self arg of the generated
177
- // impls not quite matching, and will no longer be necessary when the mismatch is fixed.
178
174
let local_blanket_impl = match item. def_id {
179
175
clean:: ItemId :: Blanket { impl_id, .. } => impl_id. is_local ( ) ,
180
176
clean:: ItemId :: Auto { .. }
@@ -183,6 +179,10 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
183
179
} ;
184
180
185
181
// Flatten items that recursively store other items
182
+ // FIXME(CraftSpider): We skip children of local blanket implementations, as we'll have
183
+ // already seen the actual generic impl, and the generated ones don't need documenting.
184
+ // This is necessary due to the visibility, return type, and self arg of the generated
185
+ // impls not quite matching, and will no longer be necessary when the mismatch is fixed.
186
186
if !local_blanket_impl {
187
187
item. kind . inner_items ( ) . for_each ( |i| self . item ( i. clone ( ) ) . unwrap ( ) ) ;
188
188
}
0 commit comments