summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2012-06-08 21:18:41 -0400
committerBen Striegel <ben.striegel@gmail.com>2012-06-08 21:18:41 -0400
commit89e424d373766c74f3da94c91bc8d3ac29b8fa43 (patch)
treec66b01cb586bf22553aef059c2c52452754e69d4 /src/libcore
parentd182c14247b05316f38809276098dc3bcf7b7f02 (diff)
downloadrust-89e424d373766c74f3da94c91bc8d3ac29b8fa43.tar.gz
rust-89e424d373766c74f3da94c91bc8d3ac29b8fa43.zip
Inline `range` for all integral types
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/int-template.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/int-template.rs b/src/libcore/int-template.rs
index 556b9944dde..2ea166cfc36 100644
--- a/src/libcore/int-template.rs
+++ b/src/libcore/int-template.rs
@@ -38,6 +38,7 @@ pure fn is_negative(x: T) -> bool { x < 0 as T }
 pure fn is_nonpositive(x: T) -> bool { x <= 0 as T }
 pure fn is_nonnegative(x: T) -> bool { x >= 0 as T }
 
+#[inline(always)]
 #[doc = "Iterate over the range [`lo`..`hi`)"]
 fn range(lo: T, hi: T, it: fn(T) -> bool) {
     let mut i = lo;