dtolnay / syn

Parser for Rust source code
Apache License 2.0
2.88k stars 311 forks source link

Fix maximum allowed \x escape in character literal #1620

Closed dtolnay closed 6 months ago

dtolnay commented 6 months ago

'\x80' is not allowed (proc-macro2 already enforces this).

error: out of range hex escape
 --> src/main.rs:2:14
  |
2 |     let _ = '\x80';
  |              ^^^^ must be a character in the range [\x00-\x7f]