Skip to content

Commit ffeddf5

Browse files
committed
---
yaml --- r: 80709 b: refs/heads/try c: a6be8d3 h: refs/heads/master i: 80707: 1913305 v: v3
1 parent b54e32b commit ffeddf5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5-
refs/heads/try: 248765a746237e7292d30dce072799e076e4f9cf
5+
refs/heads/try: a6be8d353bc25e160bc988e91744571547d12cab
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libstd/fmt/parse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ impl<'self> Parser<'self> {
554554
/// characters.
555555
fn word(&mut self) -> &'self str {
556556
let start = match self.cur.clone().next() {
557-
Some((pos, c)) if char::is_alphabetic(c) => {
557+
Some((pos, c)) if char::is_XID_start(c) => {
558558
self.cur.next();
559559
pos
560560
}
@@ -563,7 +563,7 @@ impl<'self> Parser<'self> {
563563
let mut end;
564564
loop {
565565
match self.cur.clone().next() {
566-
Some((_, c)) if char::is_alphanumeric(c) => {
566+
Some((_, c)) if char::is_XID_continue(c) => {
567567
self.cur.next();
568568
}
569569
Some((pos, _)) => { end = pos; break }

branches/try/src/test/run-pass/ifmt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pub fn main() {
8787
t!(format!("{foo} {1} {bar} {0}", 0, 1, foo=2, bar=3), "2 1 3 0");
8888
t!(format!("{} {0:s}", "a"), "a a");
8989
t!(format!("{} {0}", "a"), "a a");
90+
t!(format!("{foo_bar}", foo_bar=1), "1");
9091

9192
// Methods should probably work
9293
t!(format!("{0, plural, =1{a#} =2{b#} zero{c#} other{d#}}", 0u), "c0");

0 commit comments

Comments
 (0)