File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 = 0 u;
442- let mut b = vec :: len ( f. lines ) ;
442+ let mut b = f. lines . len ( ) ;
443443 while b - a > 1 u {
444444 let m = ( a + b) / 2 u;
445445 if f. lines [ m] > pos { b = m; } else { a = m; }
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ use hashmap::linear::LinearMap;
1818use dvec:: DVec ;
1919
2020pub 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 []
2626pub 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 }
You can’t perform that action at this time.
0 commit comments