Skip to content

Commit 0a21d24

Browse files
committed
---
yaml --- r: 47201 b: refs/heads/try c: a07192f h: refs/heads/master i: 47199: ce36630 v: v3
1 parent f64c27f commit 0a21d24

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: 934c938f90662522c4a8a86bd58d7618207f5c2a
5+
refs/heads/try: a07192fadd794b1eaaec85541886e07578002b74
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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)