We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
char_at()
record_width
1 parent 6fc409e commit 4465b2fCopy full SHA for 4465b2f
src/libsyntax/str.rs
@@ -8,6 +8,7 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
+#[inline]
12
pub fn char_at(s: &str, byte: usize) -> char {
13
s[byte..].chars().next().unwrap()
14
}
src/libsyntax_pos/lib.rs
@@ -1047,6 +1047,7 @@ impl FileMap {
1047
self.multibyte_chars.borrow_mut().push(mbc);
1048
1049
1050
+ #[inline]
1051
pub fn record_width(&self, pos: BytePos, ch: char) {
1052
let width = match ch {
1053
'\t' =>
0 commit comments