about summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-01 22:10:45 -0700
committerbors <bors@rust-lang.org>2013-08-01 22:10:45 -0700
commitbbcce8d95c582d3f918fe4e978d6a715efd991e9 (patch)
tree6c0a714130897160fc6ef8a3d17671aed2bc8b90 /src/libsyntax/codemap.rs
parentecefeb03ccecdcb306e5cc3c76b04670073a82fa (diff)
parent234acad404535868ecd7f5b48c3e120c4ea559c9 (diff)
downloadrust-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.rs3
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};