diff options
| author | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
| commit | bbcce8d95c582d3f918fe4e978d6a715efd991e9 (patch) | |
| tree | 6c0a714130897160fc6ef8a3d17671aed2bc8b90 /src/libsyntax/codemap.rs | |
| parent | ecefeb03ccecdcb306e5cc3c76b04670073a82fa (diff) | |
| parent | 234acad404535868ecd7f5b48c3e120c4ea559c9 (diff) | |
| download | rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.tar.gz rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.zip | |
auto merge of #8216 : thestinger/rust/range, r=huonw
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index d89057890f1..04b9fdce666 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -22,7 +22,6 @@ source code snippets, etc. */ use std::cmp; -use std::uint; use extra::serialize::{Encodable, Decodable, Encoder, Decoder}; pub trait Pos { @@ -364,7 +363,7 @@ impl CodeMap { let lo = self.lookup_char_pos(sp.lo); let hi = self.lookup_char_pos(sp.hi); let mut lines = ~[]; - for uint::range(lo.line - 1u, hi.line as uint) |i| { + foreach i in range(lo.line - 1u, hi.line as uint) { lines.push(i); }; return @FileLines {file: lo.file, lines: lines}; |
