@@ -355,7 +355,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
355
355
}
356
356
357
357
clean:: ImportItem ( ref import) => {
358
- let ( stab , stab_tags) = if let Some ( import_def_id) = import. source . did {
358
+ let stab_tags = if let Some ( import_def_id) = import. source . did {
359
359
let ast_attrs = cx. tcx ( ) . get_attrs_unchecked ( import_def_id) ;
360
360
let import_attrs = Box :: new ( clean:: Attributes :: from_ast ( ast_attrs) ) ;
361
361
@@ -367,15 +367,12 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
367
367
..myitem. clone ( )
368
368
} ;
369
369
370
- let stab = import_item. stability_class ( cx. tcx ( ) ) ;
371
370
let stab_tags = Some ( extra_info_tags ( & import_item, item, cx. tcx ( ) ) ) ;
372
- ( stab , stab_tags)
371
+ stab_tags
373
372
} else {
374
- ( None , None )
373
+ None
375
374
} ;
376
375
377
- let add = if stab. is_some ( ) { " " } else { "" } ;
378
-
379
376
w. write_str ( ITEM_TABLE_ROW_OPEN ) ;
380
377
let id = match import. kind {
381
378
clean:: ImportKind :: Simple ( s) => {
@@ -391,11 +388,10 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
391
388
} ;
392
389
write ! (
393
390
w,
394
- "<div class=\" item-left{add}{stab} \" {id}>\
391
+ "<div class=\" item-left\" {id}>\
395
392
<code>{vis}{imp}</code>\
396
393
</div>\
397
394
{stab_tags_before}{stab_tags}{stab_tags_after}",
398
- stab = stab. unwrap_or_default( ) ,
399
395
vis = visibility_print_with_space( myitem. visibility( tcx) , myitem. item_id, cx) ,
400
396
imp = import. print( cx) ,
401
397
) ;
@@ -417,9 +413,6 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
417
413
_ => "" ,
418
414
} ;
419
415
420
- let stab = myitem. stability_class ( cx. tcx ( ) ) ;
421
- let add = if stab. is_some ( ) { " " } else { "" } ;
422
-
423
416
let visibility_emoji = match myitem. visibility ( tcx) {
424
417
Some ( ty:: Visibility :: Restricted ( _) ) => {
425
418
"<span title=\" Restricted Visibility\" > 🔒</span> "
@@ -437,7 +430,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
437
430
} ;
438
431
write ! (
439
432
w,
440
- "<div class=\" item-left{add}{stab} \" >\
433
+ "<div class=\" item-left\" >\
441
434
<a class=\" {class}\" href=\" {href}\" title=\" {title}\" >{name}</a>\
442
435
{visibility_emoji}\
443
436
{unsafety_flag}\
@@ -448,8 +441,6 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
448
441
visibility_emoji = visibility_emoji,
449
442
stab_tags = extra_info_tags( myitem, item, cx. tcx( ) ) ,
450
443
class = myitem. type_( ) ,
451
- add = add,
452
- stab = stab. unwrap_or_default( ) ,
453
444
unsafety_flag = unsafety_flag,
454
445
href = item_path( myitem. type_( ) , myitem. name. unwrap( ) . as_str( ) ) ,
455
446
title = [ myitem. type_( ) . to_string( ) , full_path( cx, myitem) ]
0 commit comments