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::{
1616use crate :: core:: DocContext ;
1717
1818#[ instrument( level = "debug" , skip( cx) ) ]
19+ #[ allow( dead_code) ]
1920pub ( crate ) fn synthesize_auto_trait_impls < ' tcx > (
2021 cx : & mut DocContext < ' tcx > ,
2122 item_def_id : DefId ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use thin_vec::{ThinVec, thin_vec};
1414use tracing:: { debug, warn} ;
1515use { rustc_ast as ast, rustc_hir as hir} ;
1616
17- use crate :: clean:: auto_trait:: synthesize_auto_trait_impls;
1817use crate :: clean:: blanket_impl:: synthesize_blanket_impls;
1918use crate :: clean:: render_macro_matchers:: render_macro_matcher;
2019use crate :: clean:: {
@@ -495,17 +494,11 @@ pub(crate) fn synthesize_auto_trait_and_blanket_impls(
495494 cx : & mut DocContext < ' _ > ,
496495 item_def_id : DefId ,
497496) -> 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 ( )
505498 . prof
506499 . 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 ( )
509502}
510503
511504/// If `res` has a documentation page associated, store it in the cache.
You can’t perform that action at this time.
0 commit comments