Skip to content

Commit 8aaf087

Browse files
committed
---
yaml --- r: 218354 b: refs/heads/master c: f28f79b h: refs/heads/master v: v3
1 parent 5599df0 commit 8aaf087

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 374af4aea7878127ca52cbc271fb1237b4afe223
2+
refs/heads/master: f28f79b79615fc77e65ec42c4e2a3960659150c9
33
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,12 +1566,13 @@ impl<'a> Parser<'a> {
15661566
// Assumes that the leading `<` has been parsed already.
15671567
pub fn parse_qualified_path(&mut self, mode: PathParsingMode)
15681568
-> PResult<(QSelf, ast::Path)> {
1569+
let span = self.last_span;
15691570
let self_type = try!(self.parse_ty_sum());
15701571
let mut path = if try!(self.eat_keyword(keywords::As)) {
15711572
try!(self.parse_path(LifetimeAndTypesWithoutColons))
15721573
} else {
15731574
ast::Path {
1574-
span: self.span,
1575+
span: span,
15751576
global: false,
15761577
segments: vec![]
15771578
}
@@ -1598,9 +1599,6 @@ impl<'a> Parser<'a> {
15981599
};
15991600
path.segments.extend(segments);
16001601

1601-
if path.segments.len() == 1 {
1602-
path.span.lo = self.last_span.lo;
1603-
}
16041602
path.span.hi = self.last_span.hi;
16051603

16061604
Ok((qself, path))

trunk/src/test/run-make/save-analysis/foo.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,3 +364,18 @@ impl<'a> Pattern<'a> for CharEqPattern {
364364
}
365365

366366
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+
}

0 commit comments

Comments
 (0)