Skip to content

Commit c5af2c5

Browse files
committed
---
yaml --- r: 277551 b: refs/heads/try c: 8a9ad72 h: refs/heads/master i: 277549: 0134223 277547: fb821b4 277543: 942eecc 277535: 20ba911
1 parent 83a5430 commit c5af2c5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: ba12ed06edf119c1d543158b8d0ac7d7ec503d82
4+
refs/heads/try: 8a9ad72c1d67261049aac1d067529da48adcc644
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libsyntax/errors/snippet/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use codemap::{CharPos, CodeMap, FileMap, LineInfo, Span};
1414
use std::cmp;
1515
use std::rc::Rc;
1616
use std::mem;
17-
use std::ops::Range;
1817

1918
mod test;
2019

@@ -744,10 +743,6 @@ fn overlaps(a1: &Annotation,
744743
a2: &Annotation)
745744
-> bool
746745
{
747-
between(a1.start_col, a2.start_col .. a2.end_col) ||
748-
between(a2.start_col, a1.start_col .. a1.end_col)
749-
}
750-
751-
fn between(v: usize, range: Range<usize>) -> bool {
752-
v >= range.start && v < range.end
746+
(a2.start_col .. a2.end_col).contains(a1.start_col) ||
747+
(a1.start_col .. a1.end_col).contains(a2.start_col)
753748
}

branches/try/src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#![feature(str_escape)]
3434
#![feature(unicode)]
3535
#![feature(question_mark)]
36+
#![feature(range_contains)]
3637

3738
extern crate serialize;
3839
extern crate term;

0 commit comments

Comments
 (0)