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:: {
@@ -495,17 +494,11 @@ pub(crate) fn synthesize_auto_trait_and_blanket_impls(
495
494
cx : & mut DocContext < ' _ > ,
496
495
item_def_id : DefId ,
497
496
) -> impl Iterator < Item = Item > + use < > {
498
- let auto_impls = cx
499
- . sess ( )
500
- . prof
501
- . generic_activity ( "synthesize_auto_trait_impls" )
502
- . run ( || synthesize_auto_trait_impls ( cx, item_def_id) ) ;
503
- let blanket_impls = cx
504
- . sess ( )
497
+ cx. sess ( )
505
498
. prof
506
499
. generic_activity ( "synthesize_blanket_impls" )
507
- . run ( || synthesize_blanket_impls ( cx, item_def_id) ) ;
508
- auto_impls . into_iter ( ) . chain ( blanket_impls )
500
+ . run ( || synthesize_blanket_impls ( cx, item_def_id) )
501
+ . into_iter ( )
509
502
}
510
503
511
504
/// If `res` has a documentation page associated, store it in the cache.
You can’t perform that action at this time.
0 commit comments