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;
18
18
use rustc_middle:: ty;
19
19
use rustc_middle:: ty:: DefIdTree ;
20
20
use rustc_middle:: ty:: TyCtxt ;
21
+ use rustc_span:: symbol:: kw;
21
22
use rustc_span:: { sym, Symbol } ;
22
23
use rustc_target:: spec:: abi:: Abi ;
23
24
@@ -679,7 +680,7 @@ fn resolved_path<'cx>(
679
680
680
681
if print_all {
681
682
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 ( ) } ) ?;
683
684
}
684
685
}
685
686
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