]> git.lizzy.rs Git - rust.git/commit
syntax: Handle \r\n in byte string literals
authorAlex Crichton <alex@alexcrichton.com>
Tue, 5 Aug 2014 22:13:57 +0000 (15:13 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 6 Aug 2014 00:02:55 +0000 (17:02 -0700)
commit74ae05ad90d1e809663702f374bba6e62671692c
treea5348b2b49958d8e3be793c28582223e63984bae
parent6da38890f1f734799dc06460edf26c560db59a8e
syntax: Handle \r\n in byte string literals

This ended up passing through the lexer but dying later on in parsing when it
wasn't handled. The strategy taken was to copy the `str_lit` funciton, but adapt
it for bytes.

Closes #16278
src/libsyntax/parse/mod.rs
src/test/run-pass/.gitattributes
src/test/run-pass/issue-16278.rs [new file with mode: 0644]