File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use rustc_hir::def_id::DefId;
1818use rustc_middle:: ty;
1919use rustc_middle:: ty:: DefIdTree ;
2020use rustc_middle:: ty:: TyCtxt ;
21+ use rustc_span:: symbol:: kw;
2122use rustc_span:: { sym, Symbol } ;
2223use rustc_target:: spec:: abi:: Abi ;
2324
@@ -679,7 +680,7 @@ fn resolved_path<'cx>(
679680
680681 if print_all {
681682 for seg in & path. segments [ ..path. segments . len ( ) - 1 ] {
682- write ! ( w, "{}::" , seg. name) ?;
683+ write ! ( w, "{}::" , if seg. name == kw :: PathRoot { "" } else { seg . name . as_str ( ) } ) ?;
683684 }
684685 }
685686 if w. alternate ( ) {
Original file line number Diff line number Diff line change 1+ // @has issue_95873/index.html "//*[@class='item-left import-item']" "pub use ::std as x;"
2+ pub use :: std as x;
You can’t perform that action at this time.
0 commit comments