File tree 1 file changed +4
-4
lines changed
src/librustdoc/html/render
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,11 @@ impl<'tcx> Context<'tcx> {
169
169
170
170
fn render_item ( & self , it : & clean:: Item , is_module : bool ) -> String {
171
171
let mut title = String :: new ( ) ;
172
- if is_module {
172
+ if ! is_module {
173
173
title. push_str ( & it. name . unwrap ( ) . as_str ( ) ) ;
174
174
}
175
175
if !it. is_primitive ( ) && !it. is_keyword ( ) {
176
- if is_module {
176
+ if ! is_module {
177
177
title. push_str ( " in " ) ;
178
178
}
179
179
// No need to include the namespace for primitive types and keywords
@@ -597,7 +597,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
597
597
598
598
info ! ( "Recursing into {}" , self . dst. display( ) ) ;
599
599
600
- let buf = self . render_item ( item, false ) ;
600
+ let buf = self . render_item ( item, true ) ;
601
601
// buf will be empty if the module is stripped and there is no redirect for it
602
602
if !buf. is_empty ( ) {
603
603
self . shared . ensure_dir ( & self . dst ) ?;
@@ -640,7 +640,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
640
640
self . render_redirect_pages = item. is_stripped ( ) ;
641
641
}
642
642
643
- let buf = self . render_item ( & item, true ) ;
643
+ let buf = self . render_item ( & item, false ) ;
644
644
// buf will be empty if the item is stripped and there is no redirect for it
645
645
if !buf. is_empty ( ) {
646
646
let name = item. name . as_ref ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments