File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use crate::clean::{
16
16
use crate :: core:: DocContext ;
17
17
18
18
#[ instrument( level = "debug" , skip( cx) ) ]
19
+ #[ allow( dead_code) ]
19
20
pub ( crate ) fn synthesize_auto_trait_impls < ' tcx > (
20
21
cx : & mut DocContext < ' tcx > ,
21
22
item_def_id : DefId ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use thin_vec::{ThinVec, thin_vec};
14
14
use tracing:: { debug, warn} ;
15
15
use { rustc_ast as ast, rustc_hir as hir} ;
16
16
17
- use crate :: clean:: auto_trait:: synthesize_auto_trait_impls;
18
17
use crate :: clean:: blanket_impl:: synthesize_blanket_impls;
19
18
use crate :: clean:: render_macro_matchers:: render_macro_matcher;
20
19
use crate :: clean:: {
@@ -476,17 +475,11 @@ pub(crate) fn synthesize_auto_trait_and_blanket_impls(
476
475
cx : & mut DocContext < ' _ > ,
477
476
item_def_id : DefId ,
478
477
) -> impl Iterator < Item = Item > + use < > {
479
- let auto_impls = cx
480
- . sess ( )
481
- . prof
482
- . generic_activity ( "synthesize_auto_trait_impls" )
483
- . run ( || synthesize_auto_trait_impls ( cx, item_def_id) ) ;
484
- let blanket_impls = cx
485
- . sess ( )
478
+ cx. sess ( )
486
479
. prof
487
480
. generic_activity ( "synthesize_blanket_impls" )
488
- . run ( || synthesize_blanket_impls ( cx, item_def_id) ) ;
489
- auto_impls . into_iter ( ) . chain ( blanket_impls )
481
+ . run ( || synthesize_blanket_impls ( cx, item_def_id) )
482
+ . into_iter ( )
490
483
}
491
484
492
485
/// If `res` has a documentation page associated, store it in the cache.
You can’t perform that action at this time.
0 commit comments