Skip to content

Commit 77c4677

Browse files
committed
---
yaml --- r: 138466 b: refs/heads/try2 c: a07192f h: refs/heads/master v: v3
1 parent fbb7184 commit 77c4677

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 934c938f90662522c4a8a86bd58d7618207f5c2a
8+
refs/heads/try2: a07192fadd794b1eaaec85541886e07578002b74
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libsyntax/codemap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pub struct FileMap {
242242
/// The start position of this source in the CodeMap
243243
start_pos: BytePos,
244244
/// Locations of lines beginnings in the source code
245-
mut lines: ~[BytePos],
245+
lines: @mut ~[BytePos],
246246
/// Locations of multi-byte characters in the source code
247247
multibyte_chars: DVec<MultiByteChar>
248248
}
@@ -312,7 +312,7 @@ pub impl CodeMap {
312312
let filemap = @FileMap {
313313
name: filename, substr: substr, src: src,
314314
start_pos: BytePos(start_pos),
315-
mut lines: ~[],
315+
lines: @mut ~[],
316316
multibyte_chars: DVec()
317317
};
318318

@@ -439,7 +439,7 @@ priv impl CodeMap {
439439
let idx = self.lookup_filemap_idx(pos);
440440
let f = self.files[idx];
441441
let mut a = 0u;
442-
let mut b = vec::len(f.lines);
442+
let mut b = f.lines.len();
443443
while b - a > 1u {
444444
let m = (a + b) / 2u;
445445
if f.lines[m] > pos { b = m; } else { a = m; }

branches/try2/src/libsyntax/util/interner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ use hashmap::linear::LinearMap;
1818
use dvec::DVec;
1919

2020
pub struct Interner<T> {
21-
priv mut map: LinearMap<T, uint>,
21+
priv map: @mut LinearMap<T, uint>,
2222
priv vect: DVec<T>,
2323
}
2424

2525
// when traits can extend traits, we should extend index<uint,T> to get []
2626
pub impl<T:Eq + IterBytes + Hash + Const + Copy> Interner<T> {
2727
static fn new() -> Interner<T> {
2828
Interner {
29-
map: LinearMap::new(),
29+
map: @mut LinearMap::new(),
3030
vect: DVec(),
3131
}
3232
}

0 commit comments

Comments
 (0)