diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index d3c042fb05dc..75e17cd6a9b0 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -39,7 +39,7 @@ pure fn is_nonnegative(x: T) -> bool { x >= 0 as T } #[inline(always)] /// Iterate over the range [`lo`..`hi`) -fn range(lo: T, hi: T, it: fn(T) -> bool) { +pure fn range(lo: T, hi: T, it: fn(T) -> bool) { let mut i = lo; while i < hi { if !it(i) { break }