about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/str.rs b/src/libsyntax/str.rs
index d0f47629b10..281861918fd 100644
--- a/src/libsyntax/str.rs
+++ b/src/libsyntax/str.rs
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[inline]
 pub fn char_at(s: &str, byte: usize) -> char {
     s[byte..].chars().next().unwrap()
 }