Skip to content

Commit b8e3939

Browse files
committed
---
yaml --- r: 227747 b: refs/heads/try c: cffaf0e h: refs/heads/master i: 227745: 0695994 227743: c425fac v: v3
1 parent fd359a5 commit b8e3939

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: a006a82724d1efec712f0f0d337aeeaf3f14258c
4+
refs/heads/try: cffaf0e7a82e7b95bf76f37ad074451409a995e9
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libsyntax/parse/lexer/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -729,18 +729,18 @@ impl<'a> StringReader<'a> {
729729
'n' | 'r' | 't' | '\\' | '\'' | '"' | '0' => true,
730730
'x' => self.scan_byte_escape(delim, !ascii_only),
731731
'u' if self.curr_is('{') => {
732-
let valid = self.scan_unicode_escape(delim);
733-
if valid && ascii_only {
734-
self.err_span_(
735-
escaped_pos,
736-
self.last_pos,
737-
"unicode escape sequences cannot be used as a byte or in \
738-
a byte string"
739-
);
740-
false
741-
} else {
742-
valid
743-
}
732+
let valid = self.scan_unicode_escape(delim);
733+
if valid && ascii_only {
734+
self.err_span_(
735+
escaped_pos,
736+
self.last_pos,
737+
"unicode escape sequences cannot be used as a byte or in \
738+
a byte string"
739+
);
740+
false
741+
} else {
742+
valid
743+
}
744744
}
745745
'\n' if delim == '"' => {
746746
self.consume_whitespace();
@@ -852,7 +852,7 @@ impl<'a> StringReader<'a> {
852852

853853
if valid && (char::from_u32(accum_int).is_none() || count == 0) {
854854
self.err_span_(start_bpos, self.last_pos, "illegal unicode character escape");
855-
valid= false;
855+
valid = false;
856856
}
857857

858858

0 commit comments

Comments
 (0)