@@ -34,8 +34,8 @@ mod span_map;
3434mod templates;
3535mod write_shared;
3636
37- crate use context:: * ;
38- crate use span_map:: { collect_spans_and_sources, LinkFromSrc } ;
37+ crate use self :: context:: * ;
38+ crate use self :: span_map:: { collect_spans_and_sources, LinkFromSrc } ;
3939
4040use std:: collections:: VecDeque ;
4141use std:: default:: Default ;
@@ -54,6 +54,7 @@ use rustc_hir::def::CtorKind;
5454use rustc_hir:: def_id:: DefId ;
5555use rustc_hir:: Mutability ;
5656use rustc_middle:: middle:: stability;
57+ use rustc_middle:: ty;
5758use rustc_middle:: ty:: TyCtxt ;
5859use rustc_span:: {
5960 symbol:: { kw, sym, Symbol } ,
@@ -2034,8 +2035,8 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
20342035 let out = Escape ( & i_display) ;
20352036 let encoded = small_url_encode ( format ! ( "{:#}" , i. print( cx) ) ) ;
20362037 let prefix = match it. inner_impl ( ) . polarity {
2037- clean :: ImplPolarity :: Positive => "" ,
2038- clean :: ImplPolarity :: Negative => "!" ,
2038+ ty :: ImplPolarity :: Positive | ty :: ImplPolarity :: Reservation => "" ,
2039+ ty :: ImplPolarity :: Negative => "!" ,
20392040 } ;
20402041 let generated =
20412042 format ! ( "<a href=\" #impl-{}\" >{}{}</a>" , encoded, prefix, out) ;
0 commit comments