Skip to content

Commit f8490de

Browse files
committed
---
yaml --- r: 219502 b: refs/heads/snap-stage3 c: f21682b h: refs/heads/master v: v3
1 parent 5e22741 commit f8490de

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,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: 5c5753e876a437bb779e031e1a2c5dff59323028
3+
refs/heads/snap-stage3: f21682ba2de795543370570c5efb7ef48ac74a88
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/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)