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:: {
@@ -476,17 +475,11 @@ pub(crate) fn synthesize_auto_trait_and_blanket_impls(
476475 cx : & mut DocContext < ' _ > ,
477476 item_def_id : DefId ,
478477) -> 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 ( )
486479 . prof
487480 . 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 ( )
490483}
491484
492485/// If `res` has a documentation page associated, store it in the cache.
You can’t perform that action at this time.
0 commit comments