Skip to content

Commit 574d188

Browse files
committed
---
yaml --- r: 187741 b: refs/heads/tmp c: 0c6d1f3 h: refs/heads/master i: 187739: 3f35562 v: v3
1 parent 59a2e61 commit 574d188

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 72d5f39be7e7fe59f827345fce423535a343c432
37+
refs/heads/tmp: 0c6d1f3b3d22f45c53c8be0a799a6cc42bc752d5
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/tmp/src/libsyntax/print/pprust.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,9 +2048,12 @@ impl<'a> State<'a> {
20482048
{
20492049
try!(word(&mut self.s, "<"));
20502050
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+
}
20542057
try!(word(&mut self.s, ">"));
20552058
try!(word(&mut self.s, "::"));
20562059
let item_segment = path.segments.last().unwrap();

0 commit comments

Comments
 (0)