File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
branches/tmp/src/libsyntax/print Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
- refs/heads/tmp: 72d5f39be7e7fe59f827345fce423535a343c432
37
+ refs/heads/tmp: 0c6d1f3b3d22f45c53c8be0a799a6cc42bc752d5
38
38
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change @@ -2048,9 +2048,12 @@ impl<'a> State<'a> {
2048
2048
{
2049
2049
try!( word ( & mut self . s , "<" ) ) ;
2050
2050
try!( self . print_type ( & qself. ty ) ) ;
2051
- try!( space ( & mut self . s ) ) ;
2052
- try!( self . word_space ( "as" ) ) ;
2053
- try!( self . print_path ( & path, false , 1 ) ) ;
2051
+ if qself. position > 0 {
2052
+ try!( space ( & mut self . s ) ) ;
2053
+ try!( self . word_space ( "as" ) ) ;
2054
+ let depth = path. segments . len ( ) - qself. position ;
2055
+ try!( self . print_path ( & path, false , depth) ) ;
2056
+ }
2054
2057
try!( word ( & mut self . s , ">" ) ) ;
2055
2058
try!( word ( & mut self . s , "::" ) ) ;
2056
2059
let item_segment = path. segments . last ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments