Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c91a704

Browse files
committedNov 4, 2017
fixed range warning
1 parent 98e4b68 commit c91a704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/librustc/ty/maps/on_disk_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl<'a> CacheDecoder<'a> {
165165
fn find_filemap_prev_bytepos(&self,
166166
prev_bytepos: BytePos)
167167
-> Option<(BytePos, StableFilemapId)> {
168-
for (start, id) in self.prev_filemap_starts.range(BytePos(0) ... prev_bytepos).rev() {
168+
for (start, id) in self.prev_filemap_starts.range(BytePos(0) ..= prev_bytepos).rev() {
169169
return Some((*start, *id))
170170
}
171171

0 commit comments

Comments
 (0)
Please sign in to comment.