File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
test/run-make/save-analysis Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 374af4aea7878127ca52cbc271fb1237b4afe223
2
+ refs/heads/master: f28f79b79615fc77e65ec42c4e2a3960659150c9
3
3
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
4
4
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -1566,12 +1566,13 @@ impl<'a> Parser<'a> {
1566
1566
// Assumes that the leading `<` has been parsed already.
1567
1567
pub fn parse_qualified_path ( & mut self , mode : PathParsingMode )
1568
1568
-> PResult < ( QSelf , ast:: Path ) > {
1569
+ let span = self . last_span ;
1569
1570
let self_type = try!( self . parse_ty_sum ( ) ) ;
1570
1571
let mut path = if try!( self . eat_keyword ( keywords:: As ) ) {
1571
1572
try!( self . parse_path ( LifetimeAndTypesWithoutColons ) )
1572
1573
} else {
1573
1574
ast:: Path {
1574
- span : self . span ,
1575
+ span : span,
1575
1576
global : false ,
1576
1577
segments : vec ! [ ]
1577
1578
}
@@ -1598,9 +1599,6 @@ impl<'a> Parser<'a> {
1598
1599
} ;
1599
1600
path. segments . extend ( segments) ;
1600
1601
1601
- if path. segments . len ( ) == 1 {
1602
- path. span . lo = self . last_span . lo ;
1603
- }
1604
1602
path. span . hi = self . last_span . hi ;
1605
1603
1606
1604
Ok ( ( qself, path) )
Original file line number Diff line number Diff line change @@ -364,3 +364,18 @@ impl<'a> Pattern<'a> for CharEqPattern {
364
364
}
365
365
366
366
struct CharSearcher < ' a > ( <CharEqPattern as Pattern < ' a > >:: Searcher ) ;
367
+
368
+ pub trait Error {
369
+ }
370
+
371
+ impl Error + ' static {
372
+ pub fn is < T : Error + ' static > ( & self ) -> bool {
373
+ panic ! ( )
374
+ }
375
+ }
376
+
377
+ impl Error + ' static + Send {
378
+ pub fn is < T : Error + ' static > ( & self ) -> bool {
379
+ <Error + ' static >:: is :: < T > ( self )
380
+ }
381
+ }
You can’t perform that action at this time.
0 commit comments